mirror of https://gitee.com/openkylin/libvirt.git
Add a QXL graphics card type to domain XML schema
* src/qemu_conf.c: Add dummy entry in enumeration * docs/schemas/domain.rng: Add 'qxl' as a type for the <video> tag * src/domain_conf.c, src/domain_conf.h: Add QXL to video type enumerations
This commit is contained in:
parent
5879c15dfd
commit
3cf5b6f720
|
@ -1154,7 +1154,8 @@ qemu-kvm -net nic,model=? /dev/null
|
|||
<dt><code>model</code></dt>
|
||||
<dd>
|
||||
The <code>model</code> element has a mandatory <code>type</code>
|
||||
attribute which takes the value "vga", "cirrus", "vmvga", "xen" or "vbox".
|
||||
attribute which takes the value "vga", "cirrus", "vmvga", "qxl",
|
||||
"xen" or "vbox", depending on the hypervisor features available.
|
||||
You can also provide the amount of video memory in kilobytes using
|
||||
<code>vram</code> and the number of screen with <code>heads</code>.
|
||||
</dd>
|
||||
|
|
|
@ -1169,6 +1169,7 @@
|
|||
<value>vmvga</value>
|
||||
<value>xen</value>
|
||||
<value>vbox</value>
|
||||
<value>qxl</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<optional>
|
||||
|
|
|
@ -252,7 +252,8 @@ VIR_ENUM_IMPL(virDomainVideo, VIR_DOMAIN_VIDEO_TYPE_LAST,
|
|||
"cirrus",
|
||||
"vmvga",
|
||||
"xen",
|
||||
"vbox")
|
||||
"vbox",
|
||||
"qxl")
|
||||
|
||||
VIR_ENUM_IMPL(virDomainInput, VIR_DOMAIN_INPUT_TYPE_LAST,
|
||||
"mouse",
|
||||
|
|
|
@ -482,6 +482,7 @@ enum virDomainVideoType {
|
|||
VIR_DOMAIN_VIDEO_TYPE_VMVGA,
|
||||
VIR_DOMAIN_VIDEO_TYPE_XEN,
|
||||
VIR_DOMAIN_VIDEO_TYPE_VBOX,
|
||||
VIR_DOMAIN_VIDEO_TYPE_QXL,
|
||||
|
||||
VIR_DOMAIN_VIDEO_TYPE_LAST
|
||||
};
|
||||
|
|
|
@ -92,7 +92,8 @@ VIR_ENUM_IMPL(qemuVideo, VIR_DOMAIN_VIDEO_TYPE_LAST,
|
|||
"cirrus",
|
||||
"vmware",
|
||||
"", /* no arg needed for xen */
|
||||
"" /* don't support vbox */);
|
||||
"", /* don't support vbox */
|
||||
"", /* Not implemented QXL yet */);
|
||||
|
||||
int qemudLoadDriverConfig(struct qemud_driver *driver,
|
||||
const char *filename) {
|
||||
|
|
Loading…
Reference in New Issue