]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7d5f5fa51561ec3548c2b300ade953b397b4a9f
tree43eb2a573bb85cb87584ae6a320cdb11632c82ab
parent731591376a454441f8c393588cfa25c607ef74f9
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