Enum hypervisor::kvm::KvmCap

source ·
#[repr(u32)]
pub enum KvmCap {
Show 107 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, ArmMte = 205, BusLockDetect = 193, MemNoncoherentDma = 236,
}
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

§

ArmMte = 205

§

BusLockDetect = 193

§

MemNoncoherentDma = 236

Trait Implementations§

source§

impl Clone for KvmCap

source§

fn clone(&self) -> KvmCap

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for KvmCap

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for KvmCap

source§

fn eq(&self, other: &KvmCap) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<HypervisorCap> for KvmCap

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(cap: HypervisorCap) -> Result<KvmCap>

Performs the conversion.
source§

impl Copy for KvmCap

source§

impl Eq for KvmCap

source§

impl StructuralPartialEq for KvmCap

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: 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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.