use new vgabios.
v3 cover use new vgabios.
Hi,
This patch series will put the new vgabios into use for stdvga and vmware_vga. The vgabios patches this patch series depends on have just been posted to the list.
For obvious reasons it depends on the new vgabios binaries being present, i.e. vgabios patches being committed to vgabios.git, subtree being updated and vgabios binaries being recompiled + committed to qemu.git.
Changes in v3:
* rebase to master.
* added proper signed-off.
Changes in v2:
* rebase to master, resolve video.x removal conflict.
* add a new clean up patch, removes bits which where used by video.x code only.
please pull,
Gerd
The following changes since commit 7d72e76228351d18a856f1e4f5365b59d3205dc3:
intel-hda: documentation update (2010-11-02 00:41:04 +0300)
are available in the git repository at:
git://anongit.freedesktop.org/spice/qemu vgabios.3
Gerd Hoffmann (4):
Add new vgabios binaries to blobs list.
switch stdvga to pci vgabios
switch vmware_vga to pci vgabios
more stdvga cleanups.
Makefile | 5 +++-- hw/mips_malta.c | 2 +- hw/pc.c | 2 +- hw/pc.h | 3 +-- hw/ppc_newworld.c | 2 +- hw/ppc_oldworld.c | 2 +- hw/ppc_prep.c | 2 +- hw/sun4u.c | 2 +- hw/vga-pci.c | 43 ++++++++----------------------------------- hw/vga.c | 2 -- hw/vga_int.h | 2 -- hw/vmware_vga.c | 7 +------ 12 files changed, 19 insertions(+), 55 deletions(-)
PATCH v3 1/4 Add new vgabios binaries to blobs list.
--- Makefile | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
Makefile +3 -2
@@ -178,8 +178,9 @@ ar de en-us fi fr-be hr it lv nl pl ru th \ common de-ch es fo fr-ca hu ja mk nl-be pt sl tr ifdef INSTALL_BLOBS -BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ -openbios-sparc32 openbios-sparc64 openbios-ppc \ +BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin \ +vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin \ +ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc \ gpxe-eepro100-80861209.rom \ gpxe-eepro100-80861229.rom \ pxe-e1000.bin \
Signature · 1 line
1.7.1
PATCH v3 2/4 switch stdvga to pci vgabios
In reply to Gerd HoffmannMake stdvga provide the new vgabios binary (with pcibios support) using the PCI option rom bar. Seabios will happily load it from there. The new vga bios will also lookup the framebuffer address in pci config space, so the magic bochs lfb @ 0xe0000000 is not needed any more -> zap it.
Without the patch:
# dmesg | grep framebuffer vesafb: framebuffer at 0xe0000000, mapped to 0xf7e80000, using 1875k, total 8192k # lspci -vs2 00:02.0 VGA compatible controller: Technical Corp. Device 1111 (prog-if 00 [VGA controller]) Subsystem: Qumranet, Inc. Device 1100 Physical Slot: 2 Flags: fast devsel Memory at f0000000 (32-bit, prefetchable) [size=8M] Expansion ROM at <unassigned> [disabled]
With patch applied:
# dmesg | grep framebuffer vesafb: framebuffer at 0xf0000000, mapped to 0xf7e80000, using 1875k, total 8192k # lspci -vs2 00:02.0 VGA compatible controller: Technical Corp. Device 1111 (prog-if 00 [VGA controller]) Subsystem: Qumranet, Inc. Device 1100 Physical Slot: 2 Flags: fast devsel Memory at f0000000 (32-bit, prefetchable) [size=8M] Expansion ROM at f0800000 [disabled] [size=64K]
cheers,
Gerd
--- hw/vga-pci.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
hw/vga-pci.c +3 -4
@@ -103,11 +103,10 @@ static int pci_vga_initfn(PCIDevice *dev) bios_total_size <<=1 ;pci_register_bar (&d->dev,PCI_ROM_SLOT , bios_total_size,PCI_BASE_ADDRESS_MEM_PREFETCH , vga_map); + }else { +if (dev->romfile ==NULL ) + dev->romfile =qemu_strdup ("vgabios-stdvga.bin" ); } - -vga_init_vbe (s); -/* ROM BIOS */ -rom_add_vga (VGABIOS_FILENAME );return 0 ; }
Signature · 1 line
1.7.1
Re: [Qemu-devel] [PATCH v3 2/4] switch stdvga to pci vgabios
Quoted 20 lines · Gerd Hoffmann
Make stdvga provide the new vgabios binary (with pcibios support) using the PCI option rom bar. Seabios will happily load it from there. The new vga bios will also lookup the framebuffer address in pci config space, so the magic bochs lfb @
0xe0000000is not needed any more -> zap it.Without the patch:
# dmesg | grep framebuffer vesafb: framebuffer at 0xe0000000, mapped to 0xf7e80000, using 1875k, total 8192k # lspci -vs2 00:02.0 VGA compatible controller: Technical Corp. Device 1111 (prog-if 00 [VGA controller]) Subsystem: Qumranet, Inc. Device 1100 Physical Slot: 2 Flags: fast devsel Memory at f0000000 (32-bit, prefetchable) [size=8M] Expansion ROM at<unassigned> [disabled]With patch applied:
Quoted 10 lines
# dmesg | grep framebuffer vesafb: framebuffer at 0xf0000000, mapped to 0xf7e80000, using 1875k, total 8192k # lspci -vs2 00:02.0 VGA compatible controller: Technical Corp. Device 1111 (prog-if 00 [VGA controller]) Subsystem: Qumranet, Inc. Device 1100 Physical Slot: 2 Flags: fast devsel Memory at f0000000 (32-bit, prefetchable) [size=8M] Expansion ROM at f0800000 [disabled] [size=64K]
This is a guest visible change... does it need -M 0.13 support? Will live migration from 0.13 to 0.14 work?
Signature · 1 line
error compiling committee.c: too many arguments to function
Re: [Qemu-devel] [PATCH v3 2/4] switch stdvga to pci vgabios
Hi,
Quoted 1 line
This is a guest visible change... does it need -M 0.13 support?
Yes, it will. I have a patch in flight which actually adds the 0.13 machine type, when this is merged I can add compat properties to handle this.
Quoted 2 lines
Will
live migration from 0.13 to 0.14 work?
Hmm. Guess we probably have to keep the magic framebuffer @ 0xe0000000 for -M pc-0.13 to make migration work.
cheers,
Gerd
PATCH v3 3/4 switch vmware_vga to pci vgabios
In reply to Gerd Hoffmann--- hw/vmware_vga.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
hw/vmware_vga.c +1 -6
@@ -114,14 +114,12 @@ struct pci_vmsvga_state_s {# define SVGA_IO_BASE SVGA_LEGACY_BASE_PORT# define SVGA_IO_MUL 1# define SVGA_FIFO_SIZE 0x10000 -# define SVGA_MEM_BASE 0xe0000000# define SVGA_PCI_DEVICE_ID PCI_DEVICE_ID_VMWARE_SVGA2#else # define SVGA_ID SVGA_ID_1# define SVGA_IO_BASE SVGA_LEGACY_BASE_PORT# define SVGA_IO_MUL 4# define SVGA_FIFO_SIZE 0x10000 -# define SVGA_MEM_BASE 0xe0000000# define SVGA_PCI_DEVICE_ID PCI_DEVICE_ID_VMWARE_SVGA#endif
@@ -1219,10 +1217,6 @@ static void vmsvga_init(struct vmsvga_state_s *s, int vga_ram_size)vga_init (&s->vga);vmstate_register (NULL ,0 , &vmstate_vga_common, &s->vga); -vga_init_vbe (&s->vga); - -rom_add_vga (VGABIOS_FILENAME ); -vmsvga_reset (s); }
@@ -1320,6 +1314,7 @@ static PCIDeviceInfo vmsvga_info = { .qdev.size = sizeof(struct pci_vmsvga_state_s), .qdev.vmsd = &vmstate_vmware_vga, .init = pci_vmsvga_initfn, + .romfile = "vgabios-vmware.bin", };static void vmsvga_register (void )
Signature · 1 line
1.7.1
PATCH v3 4/4 more stdvga cleanups.
In reply to Gerd Hoffmannvideo.x is gone now. It was the only user of the
vga bios_offset + bios_size logic. Zap it.
--- hw/mips_malta.c | 2 +- hw/pc.c | 2 +- hw/pc.h | 3 +-- hw/ppc_newworld.c | 2 +- hw/ppc_oldworld.c | 2 +- hw/ppc_prep.c | 2 +- hw/sun4u.c | 2 +- hw/vga-pci.c | 42 ++++++++---------------------------------- hw/vga.c | 2 -- hw/vga_int.h | 2 -- 10 files changed, 15 insertions(+), 46 deletions(-)
hw/mips_malta.c +1 -1
@@ -977,7 +977,7 @@ void mips_malta_init (ram_addr_t ram_size, }else if (vmsvga_enabled) {pci_vmsvga_init (pci_bus); }else if (std_vga_enabled) { -pci_vga_init (pci_bus,0 ,0 ); +pci_vga_init (pci_bus); } }
hw/pc.c +1 -1
@@ -993,7 +993,7 @@ void pc_vga_init(PCIBus *pci_bus)fprintf (stderr,"%s: vmware_vga: no PCI bus\n" , __FUNCTION__); }else if (std_vga_enabled) {if (pci_bus) { -pci_vga_init (pci_bus,0 ,0 ); +pci_vga_init (pci_bus); }else {isa_vga_init (); }
hw/pc.h +1 -2
@@ -154,8 +154,7 @@ enum vga_retrace_method {extern enum vga_retrace_method vga_retrace_method;int isa_vga_init (void ); -int pci_vga_init (PCIBus *bus, -unsigned long vga_bios_offset,int vga_bios_size); +int pci_vga_init (PCIBus *bus);int isa_vga_mm_init (target_phys_addr_t vram_base,target_phys_addr_t ctrl_base,int it_shift);
hw/ppc_newworld.c +1 -1
@@ -316,7 +316,7 @@ static void ppc_core99_init (ram_addr_t ram_size, machine_arch =ARCH_MAC99 ; }/* init basic PC hardware */ -pci_vga_init (pci_bus,0 ,0 ); +pci_vga_init (pci_bus); escc_mem_index =escc_init (0x80013000 , pic[0x25 ], pic[0x24 ], serial_hds[0 ], serial_hds[1 ],ESCC_CLOCK ,4 );
hw/ppc_oldworld.c +1 -1
@@ -227,7 +227,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,0 ,0 ); +pci_vga_init (pci_bus); escc_mem_index =escc_init (0x80013000 , pic[0x0f ], pic[0x10 ], serial_hds[0 ], serial_hds[1 ],ESCC_CLOCK ,4 );
hw/ppc_prep.c +1 -1
@@ -694,7 +694,7 @@ static void ppc_prep_init (ram_addr_t ram_size,cpu_register_physical_memory (0x80000000 ,0x00800000 , PPC_io_memory);/* init basic PC hardware */ -pci_vga_init (pci_bus,0 ,0 ); +pci_vga_init (pci_bus);// openpic = openpic_init(0x00000000, 0xF0000000, 1); // pit = pit_init(0x40, i8259[0]); rtc_init (2000 ,NULL );
hw/sun4u.c +1 -1
@@ -767,7 +767,7 @@ static void sun4uv_init(ram_addr_t RAM_size, pci_bus =pci_apb_init (APB_SPECIAL_BASE ,APB_MEM_BASE , irq, &pci_bus2, &pci_bus3); isa_mem_base =APB_PCI_IO_BASE ; -pci_vga_init (pci_bus,0 ,0 ); +pci_vga_init (pci_bus);// XXX Should be pci_bus3 pci_ebus_init (pci_bus,-1 );
hw/vga-pci.c +8 -34
64 lines not on this page · raw message
hw/vga.c +0 -2
@@ -1934,8 +1934,6 @@ void vga_common_reset(VGACommonState *s) s->map_addr =0 ; s->map_end =0 ; s->lfb_vram_mapped =0 ; - s->bios_offset =0 ; - s->bios_size =0 ; s->sr_index =0 ;memset (s->sr,'\0' ,sizeof (s->sr)); s->gr_index =0 ;
hw/vga_int.h +0 -2
@@ -112,8 +112,6 @@ typedef struct VGACommonState {uint32_t map_addr;uint32_t map_end;uint32_t lfb_vram_mapped;/* whether 0xa0000 is mapped as ram */ -uint32_t bios_offset; -uint32_t bios_size;uint32_t latch;uint8_t sr_index;uint8_t sr[256 ];
Signature · 1 line
1.7.1
Quoted 10 lines · Gerd Hoffmann
Hi,This patch series will put the new vgabios into use for stdvga and
vmware_vga. The vgabios patches this patch series depends on have just been posted to the list.For obvious reasons it depends on the new vgabios binaries being present, i.e. vgabios patches being committed to vgabios.git, subtree being updated and vgabios binaries being recompiled + committed to qemu.git.
[ ... ]
Quoted 6 lines
The following changes since commit
7d72e76228351d18a856f1e4f5365b59d3205dc3:intel-hda: documentation update (2010-11-02 00:41:04 +0300)are available in the git repository at:
git://anongit.freedesktop.org/spice/qemuvgabios.3
Ping?
cheers,
Gerd