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

KVM: nVMX: Return -EINVAL when signaling failure in pre-VM-Entry helpers



Convert all top-level nested VM-Enter consistency check functions to
return 0/-EINVAL instead of failure codes, since now they can only
ever return one failure code.

This also does not give the false impression that failure information is
always consumed and/or relevant, e.g. vmx_set_nested_state() only
cares whether or not the checks were successful.

nested_check_host_control_regs() can also now be inlined into its caller,
nested_vmx_check_host_state, since the two have effectively become the
same function.

Based on a patch by Sean Christopherson.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 5478ba34
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