KVM: x86: fix broken read emulation spans a page boundary
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Wed, 13 Jul 2011 06:31:08 +0000 (14:31 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:17:17 +0000 (19:17 +0300)
commitca7d58f375c650cf36900cb1da1ca2cc99b13393
treedf36edae4b8426061119b876fcbd3f0d0eb2251a
parent9be3be1f153e90ea4e1e5b6ed1d72a73d44318d1
KVM: x86: fix broken read emulation spans a page boundary

If the range spans a page boundary, the mmio access can be broke, fix it as
write emulation.

And we already get the guest physical address, so use it to read guest data
directly to avoid walking guest page table again

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