Re: [PATCH v3 5/6] KVM: introduce gfn_to_hva_read/kvm_read_hva/kvm_read_hva_atomic

2012-06-18 Thread Avi Kivity
On 06/12/2012 05:48 AM, Xiao Guangrong wrote: This set of functions is only used to read data from host space, read is a special case in the later patch +/* + * The hva returned by this function is only allowed to be read. + * It should pair with kvm_read_hva() or kvm_read_hva_atomic().

Re: [PATCH v3 5/6] KVM: introduce gfn_to_hva_read/kvm_read_hva/kvm_read_hva_atomic

2012-06-18 Thread Xiao Guangrong
On 06/18/2012 06:16 PM, Avi Kivity wrote: On 06/12/2012 05:48 AM, Xiao Guangrong wrote: This set of functions is only used to read data from host space, read is a special case in the later patch +/* + * The hva returned by this function is only allowed to be read. + * It should pair with

[PATCH v3 5/6] KVM: introduce gfn_to_hva_read/kvm_read_hva/kvm_read_hva_atomic

2012-06-11 Thread Xiao Guangrong
This set of functions is only used to read data from host space, read is a special case in the later patch Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- virt/kvm/kvm_main.c | 29 + 1 files changed, 25 insertions(+), 4 deletions(-) diff --git