Module hypervisor::x86_64

source ·

Structs

  • Hold the CPU feature configurations that are needed to setup a vCPU.
  • A container for the list of cpu id entries for the hypervisor and underlying cpu.
  • A CpuId Entry contains supported feature information for the given processor. This can be modified by the hypervisor to pass additional information to the guest kernel about the hypervisor or vm. Information is returned in the eax, ebx, ecx and edx registers by the cpu for a given function and index/subfunction (passed into the cpu via the eax and ecx register respectively).
  • State of a VCPU’s debug registers.
  • State of a global descriptor table or interrupt descriptor table.
  • State of a VCPU’s floating point unit.
  • Represents a IOAPIC redirection table entry.
  • Represents the state of the IOAPIC.
  • The LapicState represents the state of an x86 CPU’s Local APIC. The Local APIC consists of 64 128-bit registers, but only the first 32-bits of each register can be used, so this structure only stores the first 32-bits of each register.
  • Represents the state of the PIC.
  • The PitChannelState represents the state of one of the PIT’s three counters.
  • The PitState represents the state of the PIT (aka the Programmable Interval Timer). The state is simply the state of it’s three channels.
  • State of a VCPU’s general purpose registers.
  • State of a memory segment.
  • State of a VCPU’s special registers.
  • Initial state for x86_64 VCPUs.
  • x86 specific vCPU snapshot.
  • State of the VCPU’s x87 FPU, MMX, XMM, YMM registers. May contain more state depending on enabled extensions.

Enums

  • The hybrid type for intel hybrid CPU.
  • The level of a level-triggered interrupt: asserted or deasserted.
  • The PitRWMode enum represents the access mode of a PIT channel. Reads and writes to the Pit happen over Port-mapped I/O, which happens one byte at a time, but the count values and latch values are two bytes. So the access mode controls which of the two bytes will be read when.
  • The PitRWState enum represents the state of reading to or writing from a channel. This is related to the PitRWMode, it mainly gives more detail about the state of the channel with respect to PitRWMode::Both.

Constants

Traits

  • A trait for managing cpuids for an x86_64 hypervisor and for checking its capabilities.
  • A wrapper around creating and using a VCPU on x86_64.
  • A wrapper for using a VM on x86_64 and getting/setting its state.

Functions

Type Definitions