Skip to content
Commit 93196765 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

selftests: kvm: do not set guest mode flag



Setting KVM_STATE_NESTED_GUEST_MODE enables various consistency checks
on VMCS12 and therefore causes KVM_SET_NESTED_STATE to fail spuriously
with -EINVAL.  Do not set the flag so that we're sure to cover the
conditions included by the test, and cover the case where VMCS12 is
set and KVM_SET_NESTED_STATE is called with invalid VMCS12 contents.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 3d9fdc25
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment