diff options
author | 2012-03-06 17:50:10 +0200 | |
---|---|---|
committer | 2012-03-14 15:30:38 -0500 | |
commit | 9512e4a9edef2d9b59eb10a03184cd90a34f62d5 (patch) | |
tree | d451f0def30fb1c9546a4322845e86fd24fdd39d /hw/lm32_boards.c | |
parent | Merge remote-tracking branch 'kiszka/queues/slirp' into staging (diff) | |
download | qemu-9512e4a9edef2d9b59eb10a03184cd90a34f62d5.tar.xz qemu-9512e4a9edef2d9b59eb10a03184cd90a34f62d5.zip |
kvmvapic: align start address as well as size
The kvmvapic code remaps a section of ROM as RAM to allow the guest to
maintain state there. It is careful to align the section size to a page
boundary, to avoid creating subpages, but neglects to do the same for
the start address. These leads to an assert later on when the memory
core tries to create a page which is half RAM and half ROM.
Fix by aligning the start address to a page boundary.
This can be triggered by running qemu-system-x86_64 -enable-kvm -vga none.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/lm32_boards.c')
0 files changed, 0 insertions, 0 deletions