]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Wrap vcpu_nested_state_get/set functions with x86 guard
authorThomas Huth <thuth@redhat.com>
Thu, 23 May 2019 09:31:14 +0000 (11:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2019 19:27:17 +0000 (21:27 +0200)
commit04b4b73a16bb41c036a0203343e12a2c30b06774
treebeffa4cf2b1fd0c3c1f87b20bea9bad2464ce8f0
parent9ab0626bf53a295e9cd39de5005e09b623d486c8
KVM: selftests: Wrap vcpu_nested_state_get/set functions with x86 guard

struct kvm_nested_state is only available on x86 so far. To be able
to compile the code on other architectures as well, we need to wrap
the related code with #ifdefs.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/kvm_util.c