Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 161026 Details for
Bug 250789
New style PVFB config not processed correctly when starting guests with libvirt
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fixed handling of PVFB configs
libvirt-0.2.3-xm-config-pvfb.patch (text/plain), 3.15 KB, created by
Daniel Berrangé
on 2007-08-09 21:33:58 UTC
(
hide
)
Description:
Fixed handling of PVFB configs
Filename:
MIME Type:
Creator:
Daniel Berrangé
Created:
2007-08-09 21:33:58 UTC
Size:
3.15 KB
patch
obsolete
>diff -rup libvirt-0.2.3.orig/src/xm_internal.c libvirt-0.2.3.new/src/xm_internal.c >--- libvirt-0.2.3.orig/src/xm_internal.c 2007-07-24 14:32:41.000000000 -0400 >+++ libvirt-0.2.3.new/src/xm_internal.c 2007-08-09 12:46:58.000000000 -0400 >@@ -916,7 +916,8 @@ char *xenXMDomainFormatXML(virConnectPtr > } > if (xenXMConfigGetInt(conf, "sdl", &val) == 0 && val) > sdl = 1; >- } else { /* New PV guests use this format */ >+ } >+ if (!hvm && !sdl && !vnc) { /* New PV guests use this format */ > list = virConfGetValue(conf, "vfb"); > if (list && list->type == VIR_CONF_LIST && > list->list && list->list->type == VIR_CONF_STRING && >@@ -943,6 +944,8 @@ char *xenXMDomainFormatXML(virConnectPtr > sdl = 1; > } else if (!strncmp(key, "type=vnc", 8)) { > vnc = 1; >+ } else if (!strncmp(key, "vncunused=", 10)) { >+ vncunused = strtol(key+10, NULL, 10); > } else if (!strncmp(key, "vnclisten=", 10)) { > vnclisten = key + 10; > } else if (!strncmp(key, "vncpasswd=", 10)) { >@@ -950,11 +953,7 @@ char *xenXMDomainFormatXML(virConnectPtr > } else if (!strncmp(key, "keymap=", 7)) { > keymap = key + 7; > } else if (!strncmp(key, "vncdisplay=", 11)) { >- int port = strtol(key+11, NULL, 10); >- if (port == -1) >- vncunused = 1; >- else >- port = port - 5900; >+ vncdisplay = strtol(key+11, NULL, 10); > } > > while (nextkey && (nextkey[0] == ',' || >@@ -1879,7 +1897,7 @@ virConfPtr xenXMParseXMLToConfig(virConn > > } > >- if (hvm || priv->xendConfigVersion < 3) { >+ if (hvm || priv->xendConfigVersion < 2) { > if (xenXMConfigSetIntFromXPath(conn, conf, ctxt, "sdl", "string(count(/domain/devices/graphics[@type='sdl']))", 0, 0, > "cannot set the sdl parameter") < 0) > goto error; >@@ -1899,11 +1917,18 @@ virConfPtr xenXMParseXMLToConfig(virConn > "cannot set the keymap parameter") < 0) > goto error; > >- /* XXX vncdisplay */ >- /* >- if (xenXMConfigSetIntFromXPath(conn, conf, ctxt, "vncdisplay", "string(int(/domain/devices/graphics[@type='vnc']/@vncport) - 5900))", 0, 0) < 0) >- goto error; >- */ >+ obj = xmlXPathEval(BAD_CAST "string(/domain/devices/graphics[@type='vnc']/@port)", ctxt); >+ if ((obj != NULL) && (obj->type == XPATH_STRING) && >+ (obj->stringval != NULL)) { >+ int port = strtol((const char *)obj->stringval, NULL, 10); >+ if (port != -1) { >+ char portstr[50]; >+ snprintf(portstr, sizeof(portstr), "%d", port-5900); >+ if (xenXMConfigSetString(conf, "vncdisplay", portstr) < 0) >+ goto error; >+ } >+ } >+ xmlXPathFreeObject(obj); > } else { > virConfValuePtr vfb; > obj = xmlXPathEval(BAD_CAST "/domain/devices/graphics", ctxt);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 250789
:
160629
| 161026