class GuestConfig
Defined at line 3007 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_types.h
The configuration required to start up a guest. When adding a new field, consider updating
fuchsia.virtualization.GuestDescriptor which is an informational snapshot of this table.
Public Methods
void GuestConfig (GuestConfig && )
Defined at line 3013 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_types.h
void GuestConfig (Storage_ storage)
void GuestConfig ()
Defined at line 3012 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_types.h
bool IsEmpty ()
const std::optional< ::fuchsia_virtualization::KernelType> & kernel_type ()
Type of kernel to load. Cannot be changed from the command-line.
::std::optional< ::fuchsia_virtualization::KernelType> & kernel_type ()
Type of kernel to load. Cannot be changed from the command-line.
GuestConfig & kernel_type (std::optional< ::fuchsia_virtualization::KernelType> value)
Type of kernel to load. Cannot be changed from the command-line.
const std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> & kernel ()
File to load the kernel from. Cannot be changed from the command-line.
::std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> & kernel ()
File to load the kernel from. Cannot be changed from the command-line.
GuestConfig & kernel (std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> value)
File to load the kernel from. Cannot be changed from the command-line.
const std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> & ramdisk ()
File to load the initial RAM disk from. Cannot be changed from the
command-line.
::std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> & ramdisk ()
File to load the initial RAM disk from. Cannot be changed from the
command-line.
GuestConfig & ramdisk (std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> value)
File to load the initial RAM disk from. Cannot be changed from the
command-line.
const std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> & dtb_overlay ()
File to load the dtb overlay for a Linux kernel from. Cannot be changed
from the command-line.
::std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> & dtb_overlay ()
File to load the dtb overlay for a Linux kernel from. Cannot be changed
from the command-line.
GuestConfig & dtb_overlay (std::optional< ::fidl::ClientEnd< ::fuchsia_io::File>> value)
File to load the dtb overlay for a Linux kernel from. Cannot be changed
from the command-line.
const std::optional< ::std::string> & cmdline ()
Kernel command-line to use. Cannot be changed from the command-line.
::std::optional< ::std::string> & cmdline ()
Kernel command-line to use. Cannot be changed from the command-line.
GuestConfig & cmdline (std::optional< ::std::string> value)
Kernel command-line to use. Cannot be changed from the command-line.
const std::optional< ::std::vector< ::std::string>> & cmdline_add ()
Additional kernel command-lines to append to the main command-line.
::std::optional< ::std::vector< ::std::string>> & cmdline_add ()
Additional kernel command-lines to append to the main command-line.
GuestConfig & cmdline_add (std::optional< ::std::vector< ::std::string>> value)
Additional kernel command-lines to append to the main command-line.
const std::optional<uint8_t> & cpus ()
The number of CPUs to provide to a guest.
::std::optional<uint8_t> & cpus ()
The number of CPUs to provide to a guest.
GuestConfig & cpus (std::optional<uint8_t> value)
The number of CPUs to provide to a guest.
const std::optional<uint64_t> & guest_memory ()
Amount of guest memory required, in bytes. This value may be rounded up depending on
the system configuration.
::std::optional<uint64_t> & guest_memory ()
Amount of guest memory required, in bytes. This value may be rounded up depending on
the system configuration.
GuestConfig & guest_memory (std::optional<uint64_t> value)
Amount of guest memory required, in bytes. This value may be rounded up depending on
the system configuration.
const std::optional< ::std::vector< ::fuchsia_virtualization::BlockSpec>> & block_devices ()
A list of block devices to give a guest. Cannot be changed from the
command-line.
::std::optional< ::std::vector< ::fuchsia_virtualization::BlockSpec>> & block_devices ()
A list of block devices to give a guest. Cannot be changed from the
command-line.
GuestConfig & block_devices (std::optional< ::std::vector< ::fuchsia_virtualization::BlockSpec>> value)
A list of block devices to give a guest. Cannot be changed from the
command-line.
const std::optional< ::std::vector< ::fuchsia_virtualization::NetSpec>> & net_devices ()
A list of specifications for network devices.
::std::optional< ::std::vector< ::fuchsia_virtualization::NetSpec>> & net_devices ()
A list of specifications for network devices.
GuestConfig & net_devices (std::optional< ::std::vector< ::fuchsia_virtualization::NetSpec>> value)
A list of specifications for network devices.
const std::optional<bool> & default_net ()
"11: wayland_device WaylandDevice" was removed
"12: magma_device MagmaDevice" was removed
Whether to add a default network device.
::std::optional<bool> & default_net ()
"11: wayland_device WaylandDevice" was removed
"12: magma_device MagmaDevice" was removed
Whether to add a default network device.
GuestConfig & default_net (std::optional<bool> value)
"11: wayland_device WaylandDevice" was removed
"12: magma_device MagmaDevice" was removed
Whether to add a default network device.
void GuestConfig (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
GuestConfig & operator= (GuestConfig && )
Defined at line 3014 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_types.h
const std::optional<bool> & virtio_balloon ()
Enable virtio-balloon.
::std::optional<bool> & virtio_balloon ()
Enable virtio-balloon.
GuestConfig & virtio_balloon (std::optional<bool> value)
Enable virtio-balloon.
const std::optional<bool> & virtio_console ()
Enable virtio-console.
::std::optional<bool> & virtio_console ()
Enable virtio-console.
GuestConfig & virtio_console (std::optional<bool> value)
Enable virtio-console.
const std::optional<bool> & virtio_gpu ()
Enable virtio-gpu.
::std::optional<bool> & virtio_gpu ()
Enable virtio-gpu.
GuestConfig & virtio_gpu (std::optional<bool> value)
Enable virtio-gpu.
const std::optional<bool> & virtio_rng ()
Enable virtio-rng.
::std::optional<bool> & virtio_rng ()
Enable virtio-rng.
GuestConfig & virtio_rng (std::optional<bool> value)
Enable virtio-rng.
const std::optional<bool> & virtio_vsock ()
Enable virtio-vsock.
::std::optional<bool> & virtio_vsock ()
Enable virtio-vsock.
GuestConfig & virtio_vsock (std::optional<bool> value)
Enable virtio-vsock.
const std::optional<bool> & virtio_sound ()
Enable virtio-sound.
::std::optional<bool> & virtio_sound ()
Enable virtio-sound.
GuestConfig & virtio_sound (std::optional<bool> value)
Enable virtio-sound.
const std::optional<bool> & virtio_sound_input ()
Enable input streams (capture) for virtio-sound.
::std::optional<bool> & virtio_sound_input ()
Enable input streams (capture) for virtio-sound.
GuestConfig & virtio_sound_input (std::optional<bool> value)
Enable input streams (capture) for virtio-sound.
const std::optional< ::std::vector< ::fuchsia_virtualization::Listener>> & vsock_listeners ()
Host ports to listen for guest initiated vsock connections on. This can be used for
simplicity if a Listener is known at config creation time, or if a Listener must be
available at the moment of guest creation for timing reasons.
To add a Listener after a guest starts, see HostVsockEndpoint::Listen.
::std::optional< ::std::vector< ::fuchsia_virtualization::Listener>> & vsock_listeners ()
Host ports to listen for guest initiated vsock connections on. This can be used for
simplicity if a Listener is known at config creation time, or if a Listener must be
available at the moment of guest creation for timing reasons.
To add a Listener after a guest starts, see HostVsockEndpoint::Listen.
GuestConfig & vsock_listeners (std::optional< ::std::vector< ::fuchsia_virtualization::Listener>> value)
Host ports to listen for guest initiated vsock connections on. This can be used for
simplicity if a Listener is known at config creation time, or if a Listener must be
available at the moment of guest creation for timing reasons.
To add a Listener after a guest starts, see HostVsockEndpoint::Listen.
const std::optional<bool> & virtio_mem ()
Enable virtio-mem
::std::optional<bool> & virtio_mem ()
Enable virtio-mem
GuestConfig & virtio_mem (std::optional<bool> value)
Enable virtio-mem
const std::optional<uint64_t> & virtio_mem_block_size ()
Size of the dynamically (un)pluggable memory block.
Memory can be (un)plugged at this granularity.
Smaller block size increases changes of successful unplug at the cost of increasing
the size of tracking bitmap.
::std::optional<uint64_t> & virtio_mem_block_size ()
Size of the dynamically (un)pluggable memory block.
Memory can be (un)plugged at this granularity.
Smaller block size increases changes of successful unplug at the cost of increasing
the size of tracking bitmap.
GuestConfig & virtio_mem_block_size (std::optional<uint64_t> value)
Size of the dynamically (un)pluggable memory block.
Memory can be (un)plugged at this granularity.
Smaller block size increases changes of successful unplug at the cost of increasing
the size of tracking bitmap.
const std::optional<uint64_t> & virtio_mem_region_size ()
Size of the entire dynamically pluggable memory region
::std::optional<uint64_t> & virtio_mem_region_size ()
Size of the entire dynamically pluggable memory region
GuestConfig & virtio_mem_region_size (std::optional<uint64_t> value)
Size of the entire dynamically pluggable memory region
const std::optional<uint64_t> & virtio_mem_region_alignment ()
Required alignment of the dynamically pluggable memory region
::std::optional<uint64_t> & virtio_mem_region_alignment ()
Required alignment of the dynamically pluggable memory region
GuestConfig & virtio_mem_region_alignment (std::optional<uint64_t> value)
Required alignment of the dynamically pluggable memory region
Friends
class MemberVisitor
class NaturalTableCodingTraits