[PATCH 0/8] KVM: cleanup linux/kvm.h

From: Paolo Bonzini
Date: Wed Jan 31 2024 - 18:39:08 EST


More cleanups of KVM's main header:

* remove thoroughly obsolete APIs

* move architecture-dependent stuff to uapi/asm/kvm.h

* small cleanups to __KVM_HAVE_* symbols

Paolo

Paolo Bonzini (8):
KVM: remove more traces of device assignment UAPI
KVM: x86: move x86-specific structs to uapi/asm/kvm.h
KVM: powerpc: move powerpc-specific structs to uapi/asm/kvm.h
KVM: s390: move s390-specific structs to uapi/asm/kvm.h
KVM: arm64: move ARM-specific defines to uapi/asm/kvm.h
kvm: replace __KVM_HAVE_READONLY_MEM with Kconfig symbol
KVM: define __KVM_HAVE_GUEST_DEBUG unconditionally
KVM: remove unnecessary #ifdef

arch/arm64/include/uapi/asm/kvm.h | 7 +-
arch/arm64/kvm/Kconfig | 1 +
arch/loongarch/include/uapi/asm/kvm.h | 2 -
arch/loongarch/kvm/Kconfig | 1 +
arch/mips/include/uapi/asm/kvm.h | 2 -
arch/mips/kvm/Kconfig | 1 +
arch/powerpc/include/uapi/asm/kvm.h | 45 +-
arch/riscv/include/uapi/asm/kvm.h | 1 -
arch/riscv/kvm/Kconfig | 1 +
arch/s390/include/uapi/asm/kvm.h | 315 +++++++++++-
arch/x86/include/uapi/asm/kvm.h | 264 +++++++++-
arch/x86/kvm/Kconfig | 1 +
include/uapi/linux/kvm.h | 692 +-------------------------
virt/kvm/Kconfig | 3 +
virt/kvm/kvm_main.c | 2 +-
15 files changed, 642 insertions(+), 696 deletions(-)

--
2.39.0