On 21.09.2012, at 07:39, Paul Mackerras wrote: > In the case where the host kernel is using a 64kB base page size and > the guest uses a 4k HPTE (hashed page table entry) to map an emulated > MMIO device, we were calculating the guest physical address wrongly. > We were calculating a gfn as the guest physical address shifted right > 16 bits (PAGE_SHIFT) but then only adding back in 12 bits from the > effective address, since the HPTE had a 4k page size. Thus the gpa > reported to userspace was missing 4 bits. > > Instead, we now compute the guest physical address from the HPTE > without reference to the host page size, and then compute the gfn > by shifting the gpa right PAGE_SHIFT bits. > > Reported-by: Alexey Kardashevskiy <aik@xxxxxxxxx> > Signed-off-by: Paul Mackerras <paulus@xxxxxxxxx> Thanks, applied to kvm-ppc-next. Alex -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html