Home
last modified time | relevance | path

Searched full:api (Results 1 – 25 of 41) sorted by relevance

12

/cloud-hypervisor/docs/
H A Dapi.md1 - [Cloud Hypervisor API](#cloud-hypervisor-api)
2 - [External API](#external-api)
3 - [REST API](#rest-api)
4 - [REST API Location and availability](#rest-api-location-and-availability)
5 - [REST API Endpoints](#rest-api-endpoints)
8 - [REST API Examples](#rest-api-examples)
14 - [D-Bus API](#d-bus-api)
15 - [D-Bus API Location and availability](#d-bus-api-location-and-availability)
16 - [D-Bus API Interface](#d-bus-api-interface)
18 …- [REST API, D-Bus API and CLI Architectural Relationship](#rest-api-and-cli-architectural-relatio…
[all …]
H A Dhotplug.md15 2. Making a HTTP API request to the VMM to ask for the additional vCPUs to be added.
30 --api-socket=/tmp/ch-socket
34 Notice the addition of `--api-socket=/tmp/ch-socket` and a `max` parameter on `--cpus boot=4,max=8`.
36 To ask the VMM to add additional vCPUs then use the resize API:
39 ./ch-remote --api-socket=/tmp/ch-socket resize --cpus 8
56 Removing CPUs works similarly by reducing the number in the "desired_vcpus" field of the resize API
59 ./ch-remote --api-socket=/tmp/ch-socket resize --cpus 2
71 2. Making a HTTP API request to the VMM to ask for a new amount of RAM to be assigned to the VM. In…
88 --api-socket=/tmp/ch-socket
92 Before issuing the API request it is necessary to run the following command inside the VM to make i…
[all …]
H A Dlive_migration.md22 --serial tty --console off --api-socket=/tmp/api1
28 $ target/release/cloud-hypervisor --api-socket=/tmp/api2
34 $ target/release/ch-remote --api-socket=/tmp/api2 receive-migration unix:/tmp/sock
40 $ target/release/ch-remote --api-socket=/tmp/api1 send-migration --local unix:/tmp/sock
84 dst $ cloud-hypervisor --api-socket /tmp/api
90 dst $ ch-remote --api-socket=/tmp/api receive-migration unix:/tmp/sock
110 --api-socket /tmp/api
128 src $ ch-remote --api-socket=/tmp/api send-migration unix:/tmp/sock
144 dst $ cloud-hypervisor --api-socket /tmp/api
150 dst $ ch-remote --api-socket=/tmp/api receive-migration tcp:0.0.0.0:{port}
[all …]
H A Dsnapshot_restore.md17 --api-socket /tmp/cloud-hypervisor.sock \
28 ./ch-remote --api-socket=/tmp/cloud-hypervisor.sock pause
35 ./ch-remote --api-socket=/tmp/cloud-hypervisor.sock snapshot file:///home/foo/snapshot
71 --api-socket /tmp/cloud-hypervisor.sock \
79 ./cloud-hypervisor --api-socket /tmp/cloud-hypervisor.sock
82 ./ch-remote --api-socket=/tmp/cloud-hypervisor.sock restore source_url=file:///home/foo/snapshot
90 ./ch-remote --api-socket=/tmp/cloud-hypervisor.sock resume
102 ./cloud-hypervisor --api-socket /tmp/cloud-hypervisor.sock
105 ./ch-remote --api-socket=/tmp/cloud-hypervisor.sock restore source_url=file:///home/foo/snapshot ne…
H A Dreleases.md16 - [REST API](api.md#rest-api)
17 - [Command line options](api.md#command-line-interface)
49 …ce incompatible changes along with support for new features. Changes to the [API](api.md#rest-api),
50 [CLI options](api.md#command-line-interface) and [device model](device_model.md)
H A Dlandlock.md20 Please following [Kernel-Support](https://docs.kernel.org/userspace-api/landlock.html#kernel-suppor…
44 ### API subsection
87 --api-socket /tmpXXXX/ch.socket \
97 ./ch-remote --api-socket /tmpXXXX/ch.socket \
H A Diommu.md239 via the equivalents in `PlatformConfig` for the API.
245 --api-socket=/tmp/api \
260 ./ch-remote --api-socket=/tmp/api add-device path=/sys/bus/pci/devices/0000:00:04.0,iommu=on,pci_se…
H A Dprofiling.md28 --api-socket=/tmp/api1
55 --api-socket=/tmp/api1
/cloud-hypervisor/vmm/src/api/
H A Dmod.rs7 //! The internal VMM API for Cloud Hypervisor.
9 //! This API is a synchronous, [mpsc](https://doc.rust-lang.org/std/sync/mpsc/)
14 //! The main Cloud Hypervisor thread creates an API event file descriptor
15 //! to notify the VMM thread about pending API commands, together with an
16 //! API mpsc channel. The former is the IPC control plane, the latter is the
19 //! of both the API event file descriptor and the channel Sender. Then it must
24 //! encapsulates the response channel Sender, for the VMM API server to be
26 //! 3. The thread writes to the API event file descriptor to notify the VMM
27 //! API server about a pending command.
28 //! 4. The thread reads the response back from the VMM API server, from the
[all …]
/cloud-hypervisor/vmm/src/api/http/
H A Dmod.rs28 use crate::api::VmCoredump;
29 use crate::api::{
46 /// API request receive error
66 /// Error from internal API
67 #[error("Error from API")]
71 const HTTP_ROOT: &str = "/api/v1";
73 /// Creates the error response's JSON body meant to be sent back to an API client.
91 // TODO: Move `api` module from `vmm` to dedicated crate and use a common type definition in error_response()
104 /// associated API request down to the VMM API server to e.g. create
106 /// API server and translate that into an HTTP response.
[all …]
H A Dhttp_endpoint.rs14 use crate::api::http::{error_response, EndpointHandler, HttpError};
16 use crate::api::VmCoredump;
17 use crate::api::{
27 // /api/v1/vm.create handler
58 match crate::api::VmCreate in handle_request()
331 // /api/v1/vm.info handler
342 Method::Get => match crate::api::VmInfo in handle_request()
360 // /api/v1/vmm.info handler
371 Method::Get => match crate::api::VmmPing in handle_request()
390 // /api/v1/vmm.shutdown handler
[all …]
/cloud-hypervisor/scripts/
H A Dtest-util.sh126 …FW_URL=$(curl --silent https://api.github.com/repos/cloud-hypervisor/rust-hypervisor-firmware/rele…
128 --header "X-GitHub-Api-Version: 2022-11-28" | grep "browser_download_url" |
132 …FW_URL=$(curl --silent https://api.github.com/repos/cloud-hypervisor/rust-hypervisor-firmware/rele…
146 …KERNEL_URLS=$(curl --silent https://api.github.com/repos/cloud-hypervisor/linux/releases/tags/${KE…
148 …--header "X-GitHub-Api-Version: 2022-11-28" | grep "browser_download_url" | grep -o 'https://.*[^ …
151 …KERNEL_URLS=$(curl --silent https://api.github.com/repos/cloud-hypervisor/linux/releases/tags/${KE…
H A Drun_openapi_tests.sh5 …PWD}":/local openapitools/openapi-generator-cli validate -i /local/vmm/src/api/openapi/cloud-hyper…
/cloud-hypervisor/
H A Drelease-notes.md67 …- [Enabled Features Reported via API Endpoint and CLI](#enabled-features-reported-via-api-endpoint…
89 - [D-Bus based API](#d-bus-based-api)
95 - [API Changes](#api-changes)
246 …- [`--api-socket` supports file descriptor parameter](#--api-socket-supports-file-descriptor-param…
272 - [Enhanced "info" API](#enhanced-info-api)
297 - [HTTP API Responses](#http-api-responses)
315 - [Command Line and API Changes](#command-line-and-api-changes)
325 - [Command Line and API Changes](#command-line-and-api-changes-1)
355 - [HTTP based API](#http-based-api)
467 * Fix seccomp filters related to http-api thread (#6967)
[all …]
/cloud-hypervisor/hypervisor/src/
H A Dhypervisor.rs48 /// API version error
50 #[error("Failed to get API Version")]
63 /// API version is not compatible
65 #[error("Incompatible API version")]
/cloud-hypervisor/src/bin/
H A Dch-remote.rs38 #[error("dbus api client error")]
756 let resize = vmm::api::VmResizeData { in resize_config()
766 let resize_zone = vmm::api::VmResizeZoneData { in resize_zone_config()
792 let remove_device_data = vmm::api::VmRemoveDeviceData { id: id.to_owned() }; in remove_device_config()
846 let snapshot_config = vmm::api::VmSnapshotConfig { in snapshot_config()
870 let coredump_config = vmm::api::VmCoredumpData { in coredump_config()
878 let receive_migration_data = vmm::api::VmReceiveMigrationData { in receive_migration_data()
886 let send_migration_data = vmm::api::VmSendMigrationData { in send_migration_data()
912 Arg::new("api-socket") in get_cli_args()
913 .long("api-socket") in get_cli_args()
[all …]
/cloud-hypervisor/vmm/src/api/dbus/
H A Dmod.rs22 use crate::api::VmCoredump;
23 use crate::api::{
181 // as a workaround, we make the *call to the internal API* conditionally
347 // Retrieve seccomp filter for API thread in start_dbus_thread()
354 // Apply seccomp filter for API thread. in start_dbus_thread()
389 error!("dbus-api thread panicked"); in start_dbus_thread()
/cloud-hypervisor/fuzz/fuzz_targets/
H A Dhttp_api.rs15 use vmm::api::http::*;
16 use vmm::api::{
292 epoll.add_event(&api_evt, EpollDispatch::Api).unwrap(); in http_receiver_stub()
315 EpollDispatch::Api => { in http_receiver_stub()
/cloud-hypervisor/api_client/src/
H A Dlib.rs27 // TODO: Move `api` module from `vmm` to dedicated crate and use a common type definition
139 /// Make an API request using the fully qualified command name.
151 "{method} /api/v1/{full_command} HTTP/1.1\r\nHost: localhost\r\nAccept: */*\r\n" in simple_api_full_command_with_fds_and_response()
/cloud-hypervisor/src/
H A Dmain.rs24 use vmm::api::dbus::{dbus_api_graceful_shutdown, DBusApiOptions};
25 use vmm::api::http::http_api_graceful_shutdown;
26 use vmm::api::ApiAction;
46 #[error("Failed to create API EventFd")]
60 VmCreate(#[source] vmm::api::ApiError),
62 VmBoot(#[source] vmm::api::ApiError),
64 VmRestore(#[source] vmm::api::ApiError),
71 #[error("Error parsing --api-socket")]
97 #[error("Failed to gracefully shutdown http api")]
190 Arg::new("api-socket") in get_cli_options_sorted()
[all …]
/cloud-hypervisor/tests/
H A Dintegration.rs81 // API socket
106 vec![format!("--api-socket={}", api_socket.as_str())] in guest_args()
143 // Start cloud-hypervisor with no VM parameters, only the API server running.
144 // From the API: Create a VM, boot it and check that it looks as expected.
154 // Verify API server is running in _test_api_create_boot()
187 // Start cloud-hypervisor with no VM parameters, only the API server running.
188 // From the API: Create a VM, boot it and check it can be shutdown and then
199 // Verify API server is running in _test_api_shutdown()
253 // Start cloud-hypervisor with no VM parameters, only the API server running.
254 // From the API: Create a VM, boot it and check it can be deleted and then recreated
[all …]
/cloud-hypervisor/vmm/src/
H A Dlib.rs28 use api::dbus::{DBusApiOptions, DBusApiShutdownChannels};
29 use api::http::HttpApiHandle;
49 use crate::api::{
70 pub mod api; module
100 /// API request receive error
101 #[error("Error receiving API request")]
104 /// API response send error
105 #[error("Error sending API request")]
178 /// Error creating API server
181 #[error("Error creating API server: {0}")]
[all …]
/cloud-hypervisor/.github/workflows/
H A Dopenapi.yaml14 /usr/local/bin/docker-entrypoint.sh validate -i vmm/src/api/openapi/cloud-hypervisor.yaml
H A Dintegration-metrics.yaml22 …run: 'curl -X PUT https://ch-metrics.azurewebsites.net/api/publishmetrics -H "x-functions-key: $ME…
/cloud-hypervisor/.reuse/
H A Ddep510 …oml .git* fuzz/Cargo.lock fuzz/.gitignore resources/linux-config-* vmm/src/api/openapi/cloud-hyper…

12