Crate hypervisor
source ·Expand description
A crate for abstracting the underlying kernel hypervisor used in crosvm.
Re-exports§
Modules§
Structs§
- The state of the paravirtual clock.
- Parameters describing an MMIO or PIO from the guest.
- A single route for an IRQ.
- Range of GPA space. Starting from
guest_address
up tosize
. - A Vcpu shutdown may signify an error, such as a double or triple fault, or hypervisor specific reasons. This error covers all such cases.
- Handle to a virtual CPU that may be used to request a VM exit from within a signal handler.
Enums§
- This is intended for use with virtio-balloon, where a guest driver determines unused ranges and requests they be freed. Use without the guest’s knowledge is sure to break something.
- Used in
Vm::register_ioevent
to indicate a size and optionally value to match. - A device type to create with
Vm.create_device
. - An address either in programmable I/O space or in memory mapped I/O space.
- Operation for Io and Mmio
- A source of IRQs in an
IrqRoute
. - The source chip of an
IrqSource
- The MPState represents the state of a processor.
- Signal to the hypervisor on kernels that support the KVM_CAP_USER_CONFIGURE_NONCOHERENT_DMA (or equivalent) that during user memory region (memslot) configuration, a guest page’s memtype should be considered in SLAT effective memtype determination rather than implicitly respecting only the host page’s memtype.
- Whether the VM should be run in protected mode or not.
- A reason why a VCPU exited. One of these returns every time
Vcpu::run
is called.
Traits§
- A trait for checking hypervisor capabilities.
- A virtual CPU holding a virtualized hardware thread’s state, such as registers and interrupt state, which may be used to execute virtual machines.
- Signal-safe mechanism for requesting an immediate VCPU exit.
- A wrapper for using a VM and getting/setting its state.
Type Aliases§
- An index in the list of guest-mapped memory regions.