diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2018-07-19 10:31:00 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-07-20 17:44:57 +0200 |
commit | 0a06d4256674c4e041945b52044941995fee237d (patch) | |
tree | 4c478511a57fd1a59a683d685bbe3905a8eb6d68 /arch/powerpc/configs/44x/virtex5_defconfig | |
parent | 28c20cc73b9cc4288c86c2a3fc62af4087de4b19 (diff) |
KVM: vmx: use local variable for current_vmptr when emulating VMPTRST
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>
Diffstat (limited to 'arch/powerpc/configs/44x/virtex5_defconfig')
0 files changed, 0 insertions, 0 deletions