[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aIEoNpe-LFoH6LBm@google.com>
Date: Wed, 23 Jul 2025 11:21:42 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Zack Rusin <zack.rusin@...adcom.com>
Cc: linux-kernel@...r.kernel.org, Doug Covelli <doug.covelli@...adcom.com>,
Paolo Bonzini <pbonzini@...hat.com>, Shuah Khan <shuah@...nel.org>,
Namhyung Kim <namhyung@...nel.org>, Joel Stanley <joel@....id.au>,
Isaku Yamahata <isaku.yamahata@...el.com>, Arnaldo Carvalho de Melo <acme@...hat.com>, kvm@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH v2 5/5] KVM: selftests: x86: Add a test for KVM_CAP_X86_VMWARE_HYPERCALL
On Tue, Apr 22, 2025, Zack Rusin wrote:
> Add a testcase to exercise KVM_CAP_X86_VMWARE_HYPERCALL and validate
> that KVM exits to userspace on hypercalls and registers are correctly
> preserved.
>
> Signed-off-by: Zack Rusin <zack.rusin@...adcom.com>
> Cc: Doug Covelli <doug.covelli@...adcom.com>
> Cc: Paolo Bonzini <pbonzini@...hat.com>
> Cc: Shuah Khan <shuah@...nel.org>
> Cc: Sean Christopherson <seanjc@...gle.com>
> Cc: Namhyung Kim <namhyung@...nel.org>
> Cc: Joel Stanley <joel@....id.au>
> Cc: Zack Rusin <zack.rusin@...adcom.com>
> Cc: Isaku Yamahata <isaku.yamahata@...el.com>
> Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
> Cc: linux-kernel@...r.kernel.org
> Cc: kvm@...r.kernel.org
> Cc: linux-kselftest@...r.kernel.org
> ---
> tools/include/uapi/linux/kvm.h | 3 +
> tools/testing/selftests/kvm/Makefile.kvm | 1 +
> .../selftests/kvm/x86/vmware_hypercall_test.c | 121 ++++++++++++++++++
> 3 files changed, 125 insertions(+)
> create mode 100644 tools/testing/selftests/kvm/x86/vmware_hypercall_test.c
>
> diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h
> index 502ea63b5d2e..3b3ad1827245 100644
> --- a/tools/include/uapi/linux/kvm.h
> +++ b/tools/include/uapi/linux/kvm.h
> @@ -933,6 +933,9 @@ struct kvm_enable_cap {
> #define KVM_CAP_PRE_FAULT_MEMORY 236
> #define KVM_CAP_X86_APIC_BUS_CYCLES_NS 237
> #define KVM_CAP_X86_GUEST_MODE 238
> +#define KVM_CAP_X86_VMWARE_BACKDOOR 239
> +#define KVM_CAP_X86_VMWARE_HYPERCALL 240
> +#define KVM_CAP_X86_VMWARE_NESTED_BACKDOOR_L0 241
Can I bribe/convince you to port KVM-Unit-Tests' x86/vmware_backdoors.c to a KVM
selftest that verifies KVM's behavior for the various combination of module param
and capability values?
Powered by blists - more mailing lists