2015-06-09 03:42:34

by Xiao Guangrong

[permalink] [raw]
Subject: Re: [PATCH v2 10/13] KVM: x86: use vcpu-specific functions to read/write/translate GFNs



On 05/28/2015 01:05 AM, Paolo Bonzini wrote:
> 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: Xiao Guangrong <[email protected]>