Skip to content

Commit 645fe6f

Browse files
committed
cap: add KvmCapStealTime capability
This capability is used for kvm steal time feature. Signed-off-by: xuejun-xj <[email protected]>
1 parent 998887e commit 645fe6f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
## Changed
66
- [[#234](https://github.com/rust-vmm/kvm-ioctls/issues/234)] vcpu: export
77
reg_size as a public method.
8+
- [[#239](https://github.com/rust-vmm/kvm-ioctls/pull/239)] cap: add KvmCapStealTime
9+
capability.
810

911
# v0.15.0
1012

src/cap.rs

+2
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,6 @@ pub enum Cap {
162162
ArmPtrAuthAddress = KVM_CAP_ARM_PTRAUTH_ADDRESS,
163163
#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
164164
ArmPtrAuthGeneric = KVM_CAP_ARM_PTRAUTH_GENERIC,
165+
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
166+
StealTime = KVM_CAP_STEAL_TIME,
165167
}

0 commit comments

Comments
 (0)