[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] [PATCH 2/7] Fix graphics configuration inconsistency between xm and sxpr
- From: Markus Armbruster <armbru redhat com>
- To: libvir-list redhat com
- Cc:
- Subject: [libvirt] [PATCH 2/7] Fix graphics configuration inconsistency between xm and sxpr
- Date: Tue, 23 Dec 2008 16:05:12 +0100
xenDaemonFormatSxpr() generates old-style HVM graphics configuration
when xendConfigVersion is below 4. xenXMDomainConfigFormat() does
that always. Change it to make it consistent with
xenDaemonFormatSxpr().
Signed-off-by: Markus Armbruster <armbru redhat com>
---
src/xm_internal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xm_internal.c b/src/xm_internal.c
index b3be199..7cbfc7e 100644
--- a/src/xm_internal.c
+++ b/src/xm_internal.c
@@ -2049,7 +2049,7 @@ virConfPtr xenXMDomainConfigFormat(virConnectPtr conn,
}
if (def->graphics) {
- if (hvm || priv->xendConfigVersion < 3) {
+ if (priv->xendConfigVersion < (hvm ? 4 : 3)) {
if (def->graphics->type == VIR_DOMAIN_GRAPHICS_TYPE_SDL) {
if (xenXMConfigSetInt(conf, "sdl", 1) < 0)
goto no_memory;
--
1.5.4.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]