]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
KVM: introduce gfn_to_hva_read/kvm_read_hva/kvm_read_hva_atomic
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 21 Aug 2012 02:59:53 +0000 (10:59 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 22 Aug 2012 12:08:53 +0000 (15:08 +0300)
commit86ab8cffb498077e926957f099b064db3751c1de
tree95209c3c8c31eeb52774994d545a035efd444eb0
parent037d92dc5d4691ae7cf44699c55ca83b1b441992
KVM: introduce gfn_to_hva_read/kvm_read_hva/kvm_read_hva_atomic

This set of functions is only used to read data from host space, in the
later patch, we will only get a readonly hva in gfn_to_hva_read, and
the function name is a good hint to let gfn_to_hva_read to pair with
kvm_read_hva()/kvm_read_hva_atomic()

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c