Enum kvm_ioctls::Cap

source ·
#[repr(u32)]
pub enum Cap {
Show 115 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, MaxVcpuId = 128, 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, X86Smm = 117, SplitIrqchip = 121, ArmPmuV3 = 126, ImmediateExit = 136, ArmVmIPASize = 165, MsiDevid = 131, HypervSynic = 123, HypervSynic2 = 148, DebugHwBps = 119, DebugHwWps = 120, GetMsrFeatures = 153, CoalescedPio = 162, X86UserSpaceMsr = 188,
}
Expand description

Capabilities exposed by KVM.

The capabilities list can be used in conjunction with Kvm::check_extension() to check if a particular capability is available.

The list of capabilities is based on the the KVM_CAP_* defines from the Linux KVM header.

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

§

MaxVcpuId = 128

§

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

§

X86Smm = 117

§

SplitIrqchip = 121

§

ArmPmuV3 = 126

§

ImmediateExit = 136

§

ArmVmIPASize = 165

§

MsiDevid = 131

§

HypervSynic = 123

§

HypervSynic2 = 148

§

DebugHwBps = 119

§

DebugHwWps = 120

§

GetMsrFeatures = 153

§

CoalescedPio = 162

§

X86UserSpaceMsr = 188

Trait Implementations§

source§

impl Clone for Cap

source§

fn clone(&self) -> Cap

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 Cap

source§

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

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

impl PartialEq for Cap

source§

fn eq(&self, other: &Cap) -> 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 Copy for Cap

source§

impl Eq for Cap

source§

impl StructuralPartialEq for Cap

Auto Trait Implementations§

§

impl Freeze for Cap

§

impl RefUnwindSafe for Cap

§

impl Send for Cap

§

impl Sync for Cap

§

impl Unpin for Cap

§

impl UnwindSafe for Cap

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
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.