Skip to content

Commit 5d9cb71

Browse files
committed
KVM: arm64: move ARM-specific defines to uapi/asm/kvm.h
While this in principle breaks userspace code that mentions KVM_ARM_DEV_* on architectures other than aarch64, this seems unlikely to be a problem considering that run->s.regs.device_irq_level is only defined on that architecture. Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 71cd774 commit 5d9cb71

File tree

2 files changed

+5
-7
lines changed
  • arch/arm64/include/uapi/asm
  • include/uapi/linux

2 files changed

+5
-7
lines changed

arch/arm64/include/uapi/asm/kvm.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ struct kvm_sync_regs {
162162
__u64 device_irq_level;
163163
};
164164

165+
/* Bits for run->s.regs.device_irq_level */
166+
#define KVM_ARM_DEV_EL1_VTIMER (1 << 0)
167+
#define KVM_ARM_DEV_EL1_PTIMER (1 << 1)
168+
#define KVM_ARM_DEV_PMU (1 << 2)
169+
165170
/*
166171
* PMU filter structure. Describe a range of events with a particular
167172
* action. To be used with KVM_ARM_VCPU_PMU_V3_FILTER.

include/uapi/linux/kvm.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,13 +1384,6 @@ struct kvm_enc_region {
13841384
#define KVM_GET_SREGS2 _IOR(KVMIO, 0xcc, struct kvm_sregs2)
13851385
#define KVM_SET_SREGS2 _IOW(KVMIO, 0xcd, struct kvm_sregs2)
13861386

1387-
/* Available with KVM_CAP_ARM_USER_IRQ */
1388-
1389-
/* Bits for run->s.regs.device_irq_level */
1390-
#define KVM_ARM_DEV_EL1_VTIMER (1 << 0)
1391-
#define KVM_ARM_DEV_EL1_PTIMER (1 << 1)
1392-
#define KVM_ARM_DEV_PMU (1 << 2)
1393-
13941387
#define KVM_DIRTY_LOG_MANUAL_PROTECT_ENABLE (1 << 0)
13951388
#define KVM_DIRTY_LOG_INITIALLY_SET (1 << 1)
13961389

0 commit comments

Comments
 (0)