class Guest

Defined at line 7972 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/hlcpp/fuchsia/virtualization/cpp/fidl.h

The guest client API providing high level access to guest features. When the guest terminates,

this channel will contain a ZX_OK epitaph on a clean shutdown, a ZX_ERR_INTERNAL epitaph on

an unexpected shutdown, and no epitaph if the component crashed.

Public Members

static const char[] Name_

Public Methods

void ~Guest ()
void GetConsole (GetConsoleCallback callback)

Get a guest console.

The details regarding what output is produced and what input is accepted

are determined by each guest, but will typically be a read/write socket

with a shell.

Returns error DEVICE_NOT_PRESENT if the guest was started without a console device.

void GetSerial (GetSerialCallback callback)

Get the socket for low-level guest debug logs.

The details regarding what output is produced and what input is accepted

are determined by each guest, but will typically be a read-only socket

with the guest kernel's serial logs.

void GetHostVsockEndpoint (::fidl::InterfaceRequest< ::fuchsia::virtualization::HostVsockEndpoint> endpoint, GetHostVsockEndpointCallback callback)

Get the vsock endpoint for the guest.

This endpoint can be used to register listeners for guest initiated connections, and

to initiate connections from a client. If listeners need to be registered before the guest

starts so that they are immediately available, set them via the guest config instead of

using this endpoint.

Returns error DEVICE_NOT_PRESENT if the guest was started without a vsock device.

void GetBalloonController (::fidl::InterfaceRequest< ::fuchsia::virtualization::BalloonController> controller, GetBalloonControllerCallback callback)

Get the balloon controller endpoint for the guest.

Returns error DEVICE_NOT_PRESENT if the guest was started without a balloon device.

void GetMemController (::fidl::InterfaceRequest< ::fuchsia::virtualization::MemController> controller, GetMemControllerCallback callback)

Get the mem controller endpoint for the guest.

Returns error DEVICE_NOT_PRESENT if the guest was started without a mem device.