From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: billy lau <billylau@umich.edu>
Cc: xen-devel@lists.xensource.com, Jun Koi <junkoi2004@gmail.com>
Subject: Re: Disabling cirrus-vga
Date: Mon, 15 Dec 2008 12:06:28 +0000 [thread overview]
Message-ID: <49464844.6000107@eu.citrix.com> (raw)
In-Reply-To: <6b5ba5140812150258v524eac52rd62ebc1278f498c9@mail.gmail.com>
billy lau wrote:
> Basically, I have just commented out all calls to pci_cirrus_vga_init,
> isa_cirrus_vga_init, pci_vmsvga_init, pci_vga_init and isa_vga_init in
> hw/pc.c, and also load_image_targphys() for loading vgabios, like what
> you have suggested.
It works well for me, I tested it with a Linux HVM guest using the
serial port.
I used the following patch:
---
diff -r 0ea6bd53cfb6 hw/pc.c
--- a/hw/pc.c Thu Oct 23 10:26:02 2008 +0100
+++ b/hw/pc.c Mon Dec 15 12:05:54 2008 +0000
@@ -854,7 +854,7 @@
goto vga_bios_error;
vga_bios_offset = qemu_ram_alloc(65536);
- ret = load_image_targphys(buf, vga_bios_offset, vga_bios_size);
+ ret = vga_bios_size;
if (ret != vga_bios_size) {
vga_bios_error:
fprintf(stderr, "qemu: could not load VGA BIOS '%s'\n", buf);
@@ -930,31 +930,6 @@
register_ioport_write(0x80, 1, 1, ioport80_write, NULL);
register_ioport_write(0xf0, 1, 1, ioportF0_write, NULL);
-
- if (cirrus_vga_enabled) {
- if (pci_enabled) {
- pci_cirrus_vga_init(pci_bus,
- ds, phys_ram_base + vga_ram_addr,
- vga_ram_addr, vga_ram_size);
- } else {
- isa_cirrus_vga_init(ds, phys_ram_base + vga_ram_addr,
- vga_ram_addr, vga_ram_size);
- }
- } else if (vmsvga_enabled) {
- if (pci_enabled)
- pci_vmsvga_init(pci_bus, ds, phys_ram_base + vga_ram_addr,
- vga_ram_addr, vga_ram_size);
- else
- fprintf(stderr, "%s: vmware_vga: no PCI bus\n", __FUNCTION__);
- } else {
- if (pci_enabled) {
- pci_vga_init(pci_bus, ds, phys_ram_base + vga_ram_addr,
- vga_ram_addr, vga_ram_size, 0, 0);
- } else {
- isa_vga_init(ds, phys_ram_base + vga_ram_addr,
- vga_ram_addr, vga_ram_size);
- }
- }
#ifdef CONFIG_PASSTHROUGH
/* Pass-through Initialization
next prev parent reply other threads:[~2008-12-15 12:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-12 0:49 Disabling cirrus-vga billy lau
2008-12-12 1:09 ` Jun Koi
2008-12-12 5:30 ` billy lau
2008-12-12 10:33 ` Stefano Stabellini
2008-12-12 12:46 ` billy lau
2008-12-13 0:58 ` billy lau
2008-12-13 2:58 ` Jun Koi
2008-12-13 3:28 ` billy lau
2008-12-15 9:36 ` billy lau
2008-12-15 10:46 ` Stefano Stabellini
2008-12-15 10:58 ` billy lau
2008-12-15 12:06 ` Stefano Stabellini [this message]
2008-12-15 19:32 ` Trolle Selander
2008-12-16 11:03 ` Stefano Stabellini
2008-12-16 11:25 ` Daniel P. Berrange
2008-12-16 11:28 ` Stefano Stabellini
2008-12-18 1:45 ` Jun Koi
2008-12-18 10:27 ` Daniel P. Berrange
2008-12-18 10:38 ` billy lau
2008-12-18 11:38 ` Stefano Stabellini
2008-12-18 16:11 ` billy lau
2008-12-16 1:48 ` billy lau
2008-12-16 11:36 ` Stefano Stabellini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49464844.6000107@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=billylau@umich.edu \
--cc=junkoi2004@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.