align vga rom to 4k boundary.
commitf360bdf1c79a8c52c554533e6dc1c72dad3bc0ef
authorGlauber Costa <glommer@redhat.com>
Wed, 24 Jun 2009 13:28:30 +0000 (24 14:28 +0100)
committerMark McLoughlin <markmc@redhat.com>
Fri, 11 Sep 2009 10:38:02 +0000 (11 11:38 +0100)
tree7d9feb30e85b784a771d744c88a39c9a339662ac
parenta2c147510b00da2dcc5d9bfeb8f1b16904957b4d
align vga rom to 4k boundary.

Instead of aligning to 2k boundary, as required by the bios,
align to 4k boundary, as required by kvm memory functions. Without
this patch, starting kvm with -vga std option fails with:

create_userspace_phys_mem: Invalid argument
kvm_cpu_register_physical_memory: failed

as described by: https://bugzilla.redhat.com/494376

It does not fail with cirrus vga, because it is naturally aligned.
This problem does not seem to affect upstream qemu.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Fedora-patch: qemu-roms-more-room-fix-vga-align.patch
hw/pc.c