E linux distro kernel.
https://universe.0xinfinity.dev/distro/kernel/atom?h=0x221E-v0.0-v7.02021-06-17T17:09:45ZKVM: selftests: Move evmcs.h to x86_64/2021-06-17T17:09:45ZVitaly Kuznetsovvkuznets@redhat.com2021-05-21T09:52:03Zurn:sha1:d504df3c913bb91dda41fffaebbb5bfd6d8c4b07
evmcs.h is x86_64 only thing, move it to x86_64/ subdirectory.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210521095204.2161214-30-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
KVM: selftests: Fix build for evmcs.h2020-05-06T10:51:36ZPeter Xupeterx@redhat.com2020-05-04T22:06:07Zurn:sha1:8ffdaf9155ebe517cdec5edbcca19ba6e7ee9c3c
I got this error when building kvm selftests:
/usr/bin/ld: /home/xz/git/linux/tools/testing/selftests/kvm/libkvm.a(vmx.o):/home/xz/git/linux/tools/testing/selftests/kvm/include/evmcs.h:222: multiple definition of `current_evmcs'; /tmp/cco1G48P.o:/home/xz/git/linux/tools/testing/selftests/kvm/include/evmcs.h:222: first defined here
/usr/bin/ld: /home/xz/git/linux/tools/testing/selftests/kvm/libkvm.a(vmx.o):/home/xz/git/linux/tools/testing/selftests/kvm/include/evmcs.h:223: multiple definition of `current_vp_assist'; /tmp/cco1G48P.o:/home/xz/git/linux/tools/testing/selftests/kvm/include/evmcs.h:223: first defined here
I think it's because evmcs.h is included both in a test file and a lib file so
the structs have multiple declarations when linking. After all it's not a good
habit to declare structs in the header files.
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20200504220607.99627-1-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
KVM: selftests: define and use EVMCS_VERSION2020-03-16T17:19:31ZVitaly Kuznetsovvkuznets@redhat.com2020-03-09T15:52:14Zurn:sha1:7bcf732e74e740fa1a535088e83d4e36f450e4b2
KVM allows to use revision_id from MSR_IA32_VMX_BASIC as eVMCS revision_id
to workaround a bug in genuine Hyper-V (see the comment in
nested_vmx_handle_enlightened_vmptrld()), this shouldn't be used by
default. Switch to using KVM_EVMCS_VERSION(1).
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
selftests: kvm: provide common function to enable eVMCS2019-08-15T07:16:02ZPaolo Bonzinipbonzini@redhat.com2019-08-14T16:02:41Zurn:sha1:65efa61dc0d536d5f0602c33ee805a57cc07e9dc
There are two tests already enabling eVMCS and a third is coming.
Add a function that enables the capability and tests the result.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
KVM: selftests: add Enlightened VMCS test2018-10-16T22:30:21ZVitaly Kuznetsovvkuznets@redhat.com2018-10-16T16:50:11Zurn:sha1:18178ff862170ee4c9fd7450173c6fba9e3c4c3a
Modify test library and add eVMCS test. This includes nVMX save/restore
testing.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>