KVM: x86: introduce vcpu_mmio_gva_to_gpa to cleanup the code
commitaf7cc7d1ee422a612f6785e347a893d44cc892ea
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 11 Jul 2011 19:22:46 +0000 (12 03:22 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Jul 2011 08:50:25 +0000 (24 11:50 +0300)
tree8897ab6ef96d67a0a42cbd30aed66a50356cd3d4
parentffb61bb3bca33ff8e68d11d7cb6b27ac0f74a2c0
KVM: x86: introduce vcpu_mmio_gva_to_gpa to cleanup the code

Introduce vcpu_mmio_gva_to_gpa to translate the gva to gpa, we can use it
to cleanup the code between read emulation and write emulation

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c