KVM: nVMX: check for invalid hdr.vmx.flags
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jul 2020 12:55:09 +0000 (08:55 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jul 2020 13:04:50 +0000 (09:04 -0400)
commit5e105c88ab4859bc1aedd29e8d2f55e599427035
tree47660c0aef5e3bbf49b967395b3a7ccfba42664a
parent0f02bd0ade9a552492463c0159abbe26c4d92b40
KVM: nVMX: check for invalid hdr.vmx.flags

hdr.vmx.flags is meant for future extensions to the ABI, rejecting
invalid flags is necessary to avoid broken half-loads of the
nVMX state.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c