KVM: x86: Move gpa_val and gpa_available into the emulator context
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 18 Feb 2020 23:03:09 +0000 (15:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:12 +0000 (17:57 +0100)
commit744e699c7e9913a9b1f825f189ab547c4da0d182
tree43eb2a573bb85cb87584ae6a320cdb11632c82ab
parent92daa48b34d784748b575ae424def4ea7f024b2f
KVM: x86: Move gpa_val and gpa_available into the emulator context

Move the GPA tracking into the emulator context now that the context is
guaranteed to be initialized via __init_emulate_ctxt() prior to
dereferencing gpa_{available,val}, i.e. now that seeing a stale
gpa_available will also trigger a WARN due to an invalid context.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c