commit | 54bf36aac520315385fe7623a5c3a698e993ceda | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Apr 08 15:39:23 2015 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Jun 05 17:26:36 2015 +0200 |
tree | e2885af8aa45f6053d8df9c06a8fb4010a4df338 | |
parent | e4cd1da944ed9d2acd2e4ccabf61ec443735f6db [diff] |
KVM: x86: use vcpu-specific functions to read/write/translate GFNs We need to hide SMRAM from guests not running in SMM. Therefore, all uses of kvm_read_guest* and kvm_write_guest* must be changed to check whether the VCPU is in system management mode and use a different set of memslots. Switch from kvm_* to the newly-introduced kvm_vcpu_*, which call into kvm_arch_vcpu_memslots_id. Reviewed-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>