Resume execution of a VCPU.
#include <zircon/syscalls.h> #include <zircon/syscalls/port.h> zx_status_t zx_vcpu_resume(zx_handle_t handle, zx_port_packet_t* packet);
zx_vcpu_resume() begins or resumes execution of handle, and blocks until it has
paused execution. On pause of execution, packet is populated with reason for
the pause. After handling the reason, execution may be resumed by calling
N.B. Execution of a handle must be resumed on the same thread it was created on.
handle must be of type ZX_OBJ_TYPE_VCPU and have ZX_RIGHT_EXECUTE.
zx_vcpu_resume() returns ZX_OK on success. On failure, an error value is
ZX_ERR_ACCESS_DENIED handle does not have the ZX_RIGHT_EXECUTE right.
ZX_ERR_BAD_HANDLE handle is an invalid handle.
ZX_ERR_BAD_STATE handle is in a bad state, and can not be executed.
ZX_ERR_CANCELED handle execution was canceled while waiting on an event.
ZX_ERR_INTERNAL There was an error executing handle.
ZX_ERR_INVALID_ARGS packet is an invalid pointer.
ZX_ERR_NOT_SUPPORTED An unsupported operation was encountered while executing handle.
ZX_ERR_WRONG_TYPE handle is not a handle to a VCPU.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-11-21.