]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaff05c854b55b3f6a483f557182543edfb3ebf54
treedf36edae4b8426061119b876fcbd3f0d0eb2251a
parentaf6724c73c9dfcc6b8acaf9172759ff042087e61
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