+7
−8
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Do not expose the address of vmx->nested.current_vmptr to kvm_write_guest_virt_system() as the resulting __copy_to_user() call will trigger a WARN when CONFIG_HARDENED_USERCOPY is enabled. Opportunistically clean up variable names in handle_vmptrst() to improve readability, e.g. vmcs_gva is misleading as the memory operand of VMPTRST is plain memory, not a VMCS. Signed-off-by:Sean Christopherson <sean.j.christopherson@intel.com> Tested-by:
Peter Shier <pshier@google.com> Reviewed-by:
Peter Shier <pshier@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>