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

Message ID 20240131225010.2872733-1-pbonzini@redhat.com
Headers
Series kvm: x86: fix macros that are not usable from userspace |

Message

Paolo Bonzini Jan. 31, 2024, 10:50 p.m. UTC
  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