[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qxl: Export "mode" as a property
From: |
Alexander Larsson |
Subject: |
[Qemu-devel] [PATCH] qxl: Export "mode" as a property |
Date: |
Mon, 19 Nov 2012 14:11:51 +0100 |
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
- [Qemu-devel] [PATCH] qxl: Export "mode" as a property,
Alexander Larsson <=
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Gerd Hoffmann, 2012/11/20
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Daniel P. Berrange, 2012/11/20
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Gerd Hoffmann, 2012/11/20
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Alon Levy, 2012/11/20
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Alexander Larsson, 2012/11/20
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Gerd Hoffmann, 2012/11/20
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Alexander Larsson, 2012/11/20
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Gerd Hoffmann, 2012/11/20
- Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Alexander Larsson, 2012/11/20
Re: [Qemu-devel] [PATCH] qxl: Export "mode" as a property, Markus Armbruster, 2012/11/20