[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240131225010.2872733-1-pbonzini@redhat.com>
Date: Wed, 31 Jan 2024 17:50:07 -0500
From: Paolo Bonzini <pbonzini@...hat.com>
To: linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: dionnaglaze@...gle.com,
seanjc@...gle.com
Subject: [PATCH 0/3] kvm: x86: fix macros that are not usable from userspace
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
Powered by blists - more mailing lists