Lines Matching +full:add +full:- +full:user +full:- +full:device
3 // SPDX-License-Identifier: Apache-2.0
75 /// The error message contained in the response is supposed to be user-facing,
78 pub fn error_response(error: HttpError, status: StatusCode) -> Response { in error_response()
85 // See <https://github.com/rust-lang/rust/issues/141673> in error_response()
112 ) -> Response { in handle_request()
149 ) -> std::result::Result<Option<Body>, HttpError> { in put_handler()
158 ) -> std::result::Result<Option<Body>, HttpError> { in get_handler()
175 /// HTTP_ROUTES contain all the cloud-hypervisor HTTP routes.
182 endpoint!("/vm.add-device"),
186 endpoint!("/vm.add-user-device"),
190 endpoint!("/vm.add-disk"),
194 endpoint!("/vm.add-fs"),
198 endpoint!("/vm.add-net"),
202 endpoint!("/vm.add-pmem"),
206 endpoint!("/vm.add-vdpa"),
210 endpoint!("/vm.add-vsock"),
233 endpoint!("/vm.power-button"),
241 endpoint!("/vm.receive-migration"),
245 endpoint!("/vm.remove-device"),
253 endpoint!("/vm.resize-zone"),
265 endpoint!("/vm.send-migration"),
295 ) -> Response { in handle_http_request()
321 ) -> Result<HttpApiHandle> { in start_http_thread()
334 .name("http-server".to_string()) in start_http_thread()
353 error!("Error applying landlock to http-server thread: {:?}", e); in start_http_thread()
386 error!("http-server thread panicked"); in start_http_thread()
406 ) -> Result<HttpApiHandle> { in start_http_path_thread()
432 ) -> Result<HttpApiHandle> { in start_http_fd_thread()
446 pub fn http_api_graceful_shutdown(http_handle: HttpApiHandle) -> Result<()> { in http_api_graceful_shutdown()