From: Paolo Bonzini Date: Wed, 8 Apr 2015 13:39:23 +0000 (+0200) Subject: KVM: x86: use vcpu-specific functions to read/write/translate GFNs X-Git-Tag: omap-for-v4.2/fixes-rc1^2~138^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54bf36aac520315385fe7623a5c3a698e993ceda;p=pandora-kernel.git 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ář Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed