Enum hypervisor::kvm::cap::KvmCap
source · #[repr(u32)]pub enum KvmCap {
Show 109 variants
Irqchip = 0,
Hlt = 1,
MmuShadowCacheControl = 2,
UserMemory = 3,
SetTssAddr = 4,
Vapic = 6,
ExtCpuid = 7,
Clocksource = 8,
NrVcpus = 9,
NrMemslots = 10,
Pit = 11,
NopIoDelay = 12,
PvMmu = 13,
MpState = 14,
CoalescedMmio = 15,
SyncMmu = 16,
Iommu = 18,
DestroyMemoryRegionWorks = 21,
UserNmi = 22,
SetGuestDebug = 23,
ReinjectControl = 24,
IrqRouting = 25,
IrqInjectStatus = 26,
AssignDevIrq = 29,
JoinMemoryRegionsWorks = 30,
Mce = 31,
Irqfd = 32,
Pit2 = 33,
SetBootCpuId = 34,
PitState2 = 35,
Ioeventfd = 36,
SetIdentityMapAddr = 37,
XenHvm = 38,
AdjustClock = 39,
InternalErrorData = 40,
VcpuEvents = 41,
S390Psw = 42,
PpcSegstate = 43,
Hyperv = 44,
HypervVapic = 45,
HypervSpin = 46,
PciSegment = 47,
PpcPairedSingles = 48,
IntrShadow = 49,
Debugregs = 50,
X86RobustSinglestep = 51,
PpcOsi = 52,
PpcUnsetIrq = 53,
EnableCap = 54,
Xsave = 55,
Xcrs = 56,
PpcGetPvinfo = 57,
PpcIrqLevel = 58,
AsyncPf = 59,
TscControl = 60,
GetTscKhz = 61,
PpcBookeSregs = 62,
SpaprTce = 63,
PpcSmt = 64,
PpcRma = 65,
MaxVcpus = 66,
PpcHior = 67,
PpcPapr = 68,
SwTlb = 69,
OneReg = 70,
S390Gmap = 71,
TscDeadlineTimer = 72,
S390Ucontrol = 73,
SyncRegs = 74,
Pci23 = 75,
KvmclockCtrl = 76,
SignalMsi = 77,
PpcGetSmmuInfo = 78,
S390Cow = 79,
PpcAllocHtab = 80,
ReadonlyMem = 81,
IrqfdResample = 82,
PpcBookeWatchdog = 83,
PpcHtabFd = 84,
S390CssSupport = 85,
PpcEpr = 86,
ArmPsci = 87,
ArmSetDeviceAddr = 88,
DeviceCtrl = 89,
IrqMpic = 90,
PpcRtas = 91,
IrqXics = 92,
ArmEl132bit = 93,
SpaprMultitce = 94,
ExtEmulCpuid = 95,
HypervTime = 96,
IoapicPolarityIgnored = 97,
EnableCapVm = 98,
S390Irqchip = 99,
IoeventfdNoLength = 100,
VmAttributes = 101,
ArmPsci02 = 102,
PpcFixupHcall = 103,
PpcEnableHcall = 104,
CheckExtensionVm = 105,
S390UserSigp = 106,
ImmediateExit = 136,
ArmPmuV3 = 126,
ArmProtectedVm = 4_290_435_761,
X86ProtectedVm = 4_290_435_762,
ArmMte = 205,
BusLockDetect = 193,
MemNoncoherentDma = 236,
UserMemory2 = 231,
}
Expand description
A capability the kernel’s KVM interface can possibly expose.
Variants§
Irqchip = 0
Hlt = 1
MmuShadowCacheControl = 2
UserMemory = 3
SetTssAddr = 4
Vapic = 6
ExtCpuid = 7
Clocksource = 8
NrVcpus = 9
NrMemslots = 10
Pit = 11
NopIoDelay = 12
PvMmu = 13
MpState = 14
CoalescedMmio = 15
SyncMmu = 16
Iommu = 18
DestroyMemoryRegionWorks = 21
UserNmi = 22
SetGuestDebug = 23
ReinjectControl = 24
IrqRouting = 25
IrqInjectStatus = 26
AssignDevIrq = 29
JoinMemoryRegionsWorks = 30
Mce = 31
Irqfd = 32
Pit2 = 33
SetBootCpuId = 34
PitState2 = 35
Ioeventfd = 36
SetIdentityMapAddr = 37
XenHvm = 38
AdjustClock = 39
InternalErrorData = 40
VcpuEvents = 41
S390Psw = 42
PpcSegstate = 43
Hyperv = 44
HypervVapic = 45
HypervSpin = 46
PciSegment = 47
PpcPairedSingles = 48
IntrShadow = 49
Debugregs = 50
X86RobustSinglestep = 51
PpcOsi = 52
PpcUnsetIrq = 53
EnableCap = 54
Xsave = 55
Xcrs = 56
PpcGetPvinfo = 57
PpcIrqLevel = 58
AsyncPf = 59
TscControl = 60
GetTscKhz = 61
PpcBookeSregs = 62
SpaprTce = 63
PpcSmt = 64
PpcRma = 65
MaxVcpus = 66
PpcHior = 67
PpcPapr = 68
SwTlb = 69
OneReg = 70
S390Gmap = 71
TscDeadlineTimer = 72
S390Ucontrol = 73
SyncRegs = 74
Pci23 = 75
KvmclockCtrl = 76
SignalMsi = 77
PpcGetSmmuInfo = 78
S390Cow = 79
PpcAllocHtab = 80
ReadonlyMem = 81
IrqfdResample = 82
PpcBookeWatchdog = 83
PpcHtabFd = 84
S390CssSupport = 85
PpcEpr = 86
ArmPsci = 87
ArmSetDeviceAddr = 88
DeviceCtrl = 89
IrqMpic = 90
PpcRtas = 91
IrqXics = 92
ArmEl132bit = 93
SpaprMultitce = 94
ExtEmulCpuid = 95
HypervTime = 96
IoapicPolarityIgnored = 97
EnableCapVm = 98
S390Irqchip = 99
IoeventfdNoLength = 100
VmAttributes = 101
ArmPsci02 = 102
PpcFixupHcall = 103
PpcEnableHcall = 104
CheckExtensionVm = 105
S390UserSigp = 106
ImmediateExit = 136
ArmPmuV3 = 126
ArmProtectedVm = 4_290_435_761
X86ProtectedVm = 4_290_435_762
ArmMte = 205
BusLockDetect = 193
MemNoncoherentDma = 236
UserMemory2 = 231
Trait Implementations§
source§impl PartialEq for KvmCap
impl PartialEq for KvmCap
source§impl TryFrom<HypervisorCap> for KvmCap
impl TryFrom<HypervisorCap> for KvmCap
impl Copy for KvmCap
impl Eq for KvmCap
impl StructuralPartialEq for KvmCap
Auto Trait Implementations§
impl RefUnwindSafe for KvmCap
impl Send for KvmCap
impl Sync for KvmCap
impl Unpin for KvmCap
impl UnwindSafe for KvmCap
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.