Make page_find() return 0 for too-large addresses (Eduardo Habkost)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Sep 2008 15:56:30 +0000 (15:56 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Sep 2008 15:56:30 +0000 (15:56 +0000)
commitd7afef32377a52433c84d39843cbd62bf3c07d20
tree993cc3e06302d0d179bf5da2e846f2dac7b76c94
parentb76d08fe0504d2f8b5c8134313f320790369aed6
Make page_find() return 0 for too-large addresses (Eduardo Habkost)

On some cases, such as under KVM, tb_invalidate_phys_page_range()
may be called for large addresses, when qemu is configured to more than
4GB of RAM.

On these cases, qemu was crashing because it was using an index too
large for l1_map[], that supports only 32-bit addresses when compiling
without CONFIG_USER_ONLY.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5227 c046a42c-6fe2-441c-8c8c-71466251a162
exec.c