[RFC PATCH 6/6] KVM: X86: Allow KVM gmem hwpoison test cases

From: isaku . yamahata
Date: Wed Sep 13 2023 - 06:49:33 EST


From: Isaku Yamahata <isaku.yamahata@xxxxxxxxx>

Set HAVE_GENERIC_PRIVATE_MEM_HANDLE_ERROR and KVM_GENERIC_PRIVATE_MEM_BMAP
to allow test cases for KVM gmem.

Signed-off-by: Isaku Yamahata <isaku.yamahata@xxxxxxxxx>
---
arch/x86/kvm/Kconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig
index 029c76bcd1a5..46fdedde9c0f 100644
--- a/arch/x86/kvm/Kconfig
+++ b/arch/x86/kvm/Kconfig
@@ -82,6 +82,8 @@ config KVM_SW_PROTECTED_VM
depends on EXPERT
depends on X86_64
select KVM_GENERIC_PRIVATE_MEM
+ select HAVE_GENERIC_PRIVATE_MEM_HANDLE_ERROR
+ select KVM_GENERIC_PRIVATE_MEM_BMAP
help
Enable support for KVM software-protected VMs. Currently "protected"
means the VM can be backed with memory provided by
--
2.25.1