[kvm-devel] [PATCH] KVM: MMU: Fix host memory corruption on i386 with = 4GB ram

2007-03-11 Thread Avi Kivity
PAGE_MASK is an unsigned long, so using it to mask physical addresses on i386 (which are 64-bit wide) leads to truncation. This can result in page-private of unrelated memory pages being modified, with disasterous results. Fix by not using PAGE_MASK for physical addresses; instead calculate the

Re: [kvm-devel] [PATCH] KVM: MMU: Fix host memory corruption on i386 with = 4GB ram

2007-03-11 Thread Ingo Molnar
* Avi Kivity [EMAIL PROTECTED] wrote: PAGE_MASK is an unsigned long, so using it to mask physical addresses on i386 (which are 64-bit wide) leads to truncation. This can result in page-private of unrelated memory pages being modified, with disasterous results. Fix by not using