Re: [Qemu-devel] [PATCH 05/30] memory: assert that PhysPageEntry's ptr does not overflow

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > While sized to 15 bits in PhysPageEntry, the ptr field is ORed into the > iotlb entries together with a page-aligned pointer. The ptr field must > not overflow into this page-aligned value, assert that it is smaller than > the page size. > > Signed-off

[Qemu-devel] [PATCH 05/30] memory: assert that PhysPageEntry's ptr does not overflow

2013-05-21 Thread Paolo Bonzini
While sized to 15 bits in PhysPageEntry, the ptr field is ORed into the iotlb entries together with a page-aligned pointer. The ptr field must not overflow into this page-aligned value, assert that it is smaller than the page size. Signed-off-by: Paolo Bonzini --- exec.c | 2 ++ 1 file changed,