From: Alexander Larsson <alexl@redhat.com>
To: qemu-devel@nongnu.org
Cc: Alexander Larsson <alexl@redhat.com>
Subject: [Qemu-devel] [PATCH] qxl: Export "mode" as a property
Date: Mon, 19 Nov 2012 14:11:51 +0100 [thread overview]
Message-ID: <1353330711-20207-1-git-send-email-alexl@redhat.com> (raw)
This way you can easily tell from qemu if the guest is using
a qxl driver or not.
---
hw/qxl.c | 1 +
hw/qxl.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/qxl.c b/hw/qxl.c
index 1d16863..98af0bb 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -2261,6 +2261,7 @@ static Property qxl_properties[] = {
DEFINE_PROP_UINT32("vram64_size_mb", PCIQXLDevice, vram_size_mb, -1),
DEFINE_PROP_UINT32("vgamem_mb", PCIQXLDevice, vgamem_size_mb, 16),
DEFINE_PROP_INT32("surfaces", PCIQXLDevice, ssd.num_surfaces, 1024),
+ DEFINE_PROP_UINT32("mode", PCIQXLDevice, mode, 0),
DEFINE_PROP_END_OF_LIST(),
};
diff --git a/hw/qxl.h b/hw/qxl.h
index e583cfb..c4414ba 100644
--- a/hw/qxl.h
+++ b/hw/qxl.h
@@ -34,7 +34,7 @@ typedef struct PCIQXLDevice {
uint32_t guest_bug;
- enum qxl_mode mode;
+ uint32_t mode;
uint32_t cmdflags;
int generation;
uint32_t revision;
--
1.7.12.1
next reply other threads:[~2012-11-19 13:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-19 13:11 Alexander Larsson [this message]
2012-11-20 7:50 ` [Qemu-devel] [PATCH] qxl: Export "mode" as a property Gerd Hoffmann
2012-11-20 9:07 ` Daniel P. Berrange
2012-11-20 9:15 ` Gerd Hoffmann
2012-11-20 9:35 ` Alexander Larsson
2012-11-20 10:17 ` Gerd Hoffmann
2012-11-20 10:30 ` Alexander Larsson
2012-11-20 10:53 ` Gerd Hoffmann
2012-11-20 11:41 ` Alexander Larsson
2012-11-20 9:49 ` Alon Levy
2012-11-20 9:48 ` Markus Armbruster
2012-11-20 9:51 ` Alexander Larsson
2012-11-20 10:28 ` Gerd Hoffmann
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=1353330711-20207-1-git-send-email-alexl@redhat.com \
--to=alexl@redhat.com \
--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).