KVM: X86: Declare KVM_CAP_SET_GUEST_DEBUG properly
authorPeter Xu <peterx@redhat.com>
Tue, 5 May 2020 15:47:50 +0000 (11:47 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 May 2020 10:51:38 +0000 (06:51 -0400)
commit495907ec36def1d28a44e2d1b5a51affe716aacf
tree85e68a9c6ae3c373263ec9b9979f5bb28b8a74b9
parent8ffdaf9155ebe517cdec5edbcca19ba6e7ee9c3c
KVM: X86: Declare KVM_CAP_SET_GUEST_DEBUG properly

KVM_CAP_SET_GUEST_DEBUG should be supported for x86 however it's not declared
as supported.  My wild guess is that userspaces like QEMU are using "#ifdef
KVM_CAP_SET_GUEST_DEBUG" to check for the capability instead, but that could be
wrong because the compilation host may not be the runtime host.

The userspace might still want to keep the old "#ifdef" though to not break the
guest debug on old kernels.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20200505154750.126300-1-peterx@redhat.com>
[Do the same for PPC and s390. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c