From: Stefan Weil <weil@mail.berlios.de>
To: QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [Qemu] [PATCH] Additional VGA options for MIPS Malta
Date: Wed, 04 Feb 2009 19:41:06 +0100 [thread overview]
Message-ID: <4989E142.7080808@mail.berlios.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
Hi,
any of the VGA PCI cards supported by Qemu can be used not only by
PC guests but also by MIPS Malta guests.
This patch adds the missing code and updates the documentation.
It also allows to run Malta without any VGA card.
Regards
Stefan
[-- Attachment #2: malta-vga.patch --]
[-- Type: text/x-diff, Size: 1373 bytes --]
support all kinds of pci vga cards (including none)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Index: trunk/hw/mips_malta.c
===================================================================
--- trunk.orig/hw/mips_malta.c 2009-02-04 19:26:33.000000000 +0100
+++ trunk/hw/mips_malta.c 2009-02-04 19:27:34.000000000 +0100
@@ -941,8 +941,16 @@
network_init(pci_bus);
/* Optional PCI video card */
- pci_cirrus_vga_init(pci_bus, phys_ram_base + ram_size,
+ if (cirrus_vga_enabled) {
+ pci_cirrus_vga_init(pci_bus, phys_ram_base + ram_size,
+ ram_size, vga_ram_size);
+ } else if (vmsvga_enabled) {
+ pci_vmsvga_init(pci_bus, phys_ram_base + ram_size,
ram_size, vga_ram_size);
+ } else if (std_vga_enabled) {
+ pci_vga_init(pci_bus, phys_ram_base + ram_size,
+ ram_size, vga_ram_size, 0, 0);
+ }
}
QEMUMachine mips_malta_machine = {
Index: trunk/qemu-doc.texi
===================================================================
--- trunk.orig/qemu-doc.texi 2009-02-04 19:32:20.000000000 +0100
+++ trunk/qemu-doc.texi 2009-02-04 19:32:28.000000000 +0100
@@ -2700,7 +2700,7 @@
@item
Malta FPGA serial device
@item
-Cirrus VGA graphics card
+Cirrus (default) or any other PCI VGA graphics card
@end itemize
The ACER Pica emulation supports:
next reply other threads:[~2009-02-04 18:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-04 18:41 Stefan Weil [this message]
2009-02-06 21:37 ` [Qemu-devel] [Qemu] [PATCH] Additional VGA options for MIPS Malta Stefan Weil
2009-02-08 14:50 ` Aurelien Jarno
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=4989E142.7080808@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).