]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xen: Also add sub-type for driver=tap2 in xen-xm
authorPhilipp Hahn <hahn@univention.de>
Thu, 19 May 2016 06:24:55 +0000 (08:24 +0200)
committerJim Fehlig <jfehlig@suse.com>
Tue, 7 Jun 2016 19:59:58 +0000 (13:59 -0600)
commitfafcc64a079eebc34c244570823c81b08c931311
tree23709bd9a1554b2f8f54d3cadb79774d5f742746
parent62aff792acded46995adab56069d3bd0d9e61062
xen: Also add sub-type for driver=tap2 in xen-xm

tap2 only handles 'aio', but not 'raw', which must be explicitly given:

| $ virsh domxml-to-native yyy.xml > yyy.xm
| $ xm new yyy.xm
| Error: tap:/srv/xen/xxx.img not a valid disk type
| $ sed -i -e 's/tap2:/&aio:/' yyy.xm
| $ xm new yyy.xm

Fix reading and writing "xen-xm" format for "tap2" by handling it the
same as "tap".
src/xenconfig/xen_xm.c