[PATCH 0/3] kvm: x86: fix macros that are not usable from userspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



uapi headers cannot use BIT or GENMASK (or the corresponding long long
versions), since those macros are not defined in uapi headers.  Instead,
it is possible to use _BITUL/_BITULL, or the __GENMASK and __GENMASK_ULL
introduced at the beginning of this series.

Paolo

Dionna Glaze (1):
  kvm: x86: use a uapi-friendly macro for BIT

Paolo Bonzini (2):
  uapi: introduce uapi-friendly macros for GENMASK
  kvm: x86: use a uapi-friendly macro for GENMASK

 arch/arm64/include/uapi/asm/kvm.h      |  8 ++++----
 arch/x86/include/uapi/asm/kvm.h        | 14 ++++++++------
 arch/x86/include/uapi/asm/kvm_para.h   |  2 +-
 include/linux/bits.h                   |  8 +-------
 include/uapi/asm-generic/bitsperlong.h |  4 ++++
 include/uapi/linux/bits.h              | 15 +++++++++++++++
 6 files changed, 33 insertions(+), 18 deletions(-)
 create mode 100644 include/uapi/linux/bits.h

-- 
2.39.0





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux