提交 35adcfa6 编写于 作者: D Daniel P. Berrange

Support device_model & serial config settings for HVM guests

上级 b85e53cc
Thu Nov 16 19:36:12 EST 2006 Daniel Berrange <berrange@redhat.com>
* src/xm_internal.c: Add support for device_model parameter to
make HVM guests work. Also support serial console in HVM, since
it needs to be explicitly turned on, unlike PV.
Thu Nov 16 18:16:42 EST 2006 Daniel Berrange <berrange@redhat.com>
* src/xml.c: Mark 'msg' parameter in XML error handler as unused.
......
......@@ -579,6 +579,11 @@ char *xenXMDomainDumpXML(virDomainPtr domain, int flags ATTRIBUTE_UNUSED) {
virBufferAdd(buf, " <devices>\n", -1);
if (hvm) {
if (xenXMConfigGetString(entry->conf, "device_model", &str) == 0)
virBufferVSprintf(buf, " <emulator>%s</emulator>\n", str);
}
list = virConfGetValue(entry->conf, "disk");
while (list && list->type == VIR_CONF_LIST) {
virConfValuePtr el = list->list;
......@@ -732,6 +737,12 @@ char *xenXMDomainDumpXML(virDomainPtr domain, int flags ATTRIBUTE_UNUSED) {
virBufferAdd(buf, " <graphics type='sdl'/>\n", -1);
}
if (hvm) {
if (xenXMConfigGetString(entry->conf, "serial", &str) == 0 && !strcmp(str, "pty")) {
virBufferAdd(buf, " <console/>\n", -1);
}
}
virBufferAdd(buf, " </devices>\n", -1);
virBufferAdd(buf, "</domain>\n", -1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册