KVM: Correctly handle writes crossing a page boundary
authorAvi Kivity <avi@qumranet.com>
Sun, 22 Jul 2007 15:48:54 +0000 (18:48 +0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 25 Jul 2007 11:29:17 +0000 (14:29 +0300)
commitb0fcd903e6f3f47189baddf3fe085bdf78c9644c
treec3c0e098b25d158973a7262865e74ae790a66772
parent0de085bb474f64e4fdb2f1ff3268590792648c7b
KVM: Correctly handle writes crossing a page boundary

Writes that are contiguous in virtual memory may not be contiguous in
physical memory; so split writes that straddle a page boundary.

Thanks to Aurelien for reporting the bug, patient testing, and a fix
to this very patch.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c