Skip to content

Commit 483342a

Browse files
committed
kvm-ioctls: Enable KVM_ENABLE_CAP on all architectures
Remove conditional compilation of KVM_ENABLE_CAP definition Signed-off-by: David Kleymann <[email protected]>
1 parent 231dc89 commit 483342a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

kvm-ioctls/src/ioctls/vm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ impl VmFd {
14151415
/// // Because an IOAPIC supports 24 pins, that's the reason why this test
14161416
/// // picked this number as reference.
14171417
/// cap.args[0] = 24;
1418+
/// #[cfg(target_arch = "x86_64")]
14181419
/// vm.enable_cap(&cap).unwrap();
14191420
/// ```
14201421
pub fn enable_cap(&self, cap: &kvm_enable_cap) -> Result<()> {

kvm-ioctls/src/kvm_ioctls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ ioctl_io_nr!(KVM_GET_TSC_KHZ, KVMIO, 0xa3);
224224
ioctl_io_nr!(KVM_RESET_DIRTY_RINGS, KVMIO, 0xc7);
225225

226226
/* Available with KVM_CAP_ENABLE_CAP */
227-
#[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))]
228227
ioctl_iow_nr!(KVM_ENABLE_CAP, KVMIO, 0xa3, kvm_enable_cap);
229228
/* Available with KVM_CAP_SIGNAL_MSI */
230229
#[cfg(any(

0 commit comments

Comments
 (0)