[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/3] PPC: Round VGA BIOS size to page boundary

From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH 3/3] PPC: Round VGA BIOS size to page boundary
Date: Thu, 23 Jul 2009 23:50:14 +0200

On 23.07.2009, at 23:31, Alexander Graf wrote:

When giving KVM a slot of a size not on page boundary, it chokes. So let's just round up the VGA BIOS size so nobody complains anymore and we don't need
to implement sub-page slots.

Required for booting a PPC guest in KVM.

Signed-off-by: Alexander Graf <address@hidden>
hw/ppc_newworld.c |    3 +++
hw/ppc_oldworld.c |    4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)


    if (linux_boot) {
@@ -310,6 +313,7 @@ static void ppc_heathrow_init (ram_addr_t ram_size,
    pic = heathrow_pic_init(&pic_mem_index, 1, heathrow_irqs);
    pci_bus = pci_grackle_init(0xfec00000, pic);
    pci_vga_init(pci_bus, vga_bios_offset, vga_bios_size);
+printf("Mapping VGA to 0x%lx - 0x%lx\n", vga_bios_offset, vga_bios_offset + vga_bios_size);

Don't do this at home kids :-).

Please skip the last chunk.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]