[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/9] softmmu/vl: Fence 'xenfb' if Xen support is not compiled in
From: |
Thomas Huth |
Subject: |
[PULL 3/9] softmmu/vl: Fence 'xenfb' if Xen support is not compiled in |
Date: |
Fri, 6 May 2022 16:37:44 +0200 |
The 'xenfb' parameter for the '-vga' command line option is currently
always enabled unconditionally (since the xenfb is not a proper QOM
device that could be tested via its class name). That means it also
shows up if Xen is not enabled at all, e.g. like this:
$ ./qemu-system-sparc -vga help
none no graphic card
xenfb Xen paravirtualized framebuffer
tcx TCX framebuffer (default)
cg3 CG3 framebuffer
Let's avoid this situation by fencing the parameter with the
CONFIG_XEN_BACKEND switch.
Message-Id: <20220427123316.329312-1-thuth@redhat.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
softmmu/vl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index c2919579fd..ad886fb878 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -934,10 +934,12 @@ static const VGAInterfaceInfo
vga_interfaces[VGA_TYPE_MAX] = {
.name = "CG3 framebuffer",
.class_names = { "cgthree" },
},
+#ifdef CONFIG_XEN_BACKEND
[VGA_XENFB] = {
.opt_name = "xenfb",
.name = "Xen paravirtualized framebuffer",
},
+#endif
};
static bool vga_interface_available(VGAInterfaceType t)
--
2.27.0
- [PULL 0/9] Misc patches, Thomas Huth, 2022/05/06
- [PULL 3/9] softmmu/vl: Fence 'xenfb' if Xen support is not compiled in,
Thomas Huth <=
- [PULL 4/9] qemu-options: Limit the -xen options to x86 and arm, Thomas Huth, 2022/05/06
- [PULL 1/9] disas: Remove old libopcode arm disassembler, Thomas Huth, 2022/05/06
- [PULL 5/9] doc: remove hxtool-conv.pl, Thomas Huth, 2022/05/06
- [PULL 2/9] disas: Remove old libopcode i386 disassembler, Thomas Huth, 2022/05/06
- [PULL 6/9] cirrus/win32: upgrade mingw base packages, Thomas Huth, 2022/05/06
- [PULL 9/9] Warn user if the vga flag is passed but no vga device is created, Thomas Huth, 2022/05/06
- [PULL 8/9] tests/vm: update openbsd to release 7.1, Thomas Huth, 2022/05/06
- [PULL 7/9] gitlab-ci: Upgrade mingw base package., Thomas Huth, 2022/05/06
- Re: [PULL 0/9] Misc patches, Peter Maydell, 2022/05/06