mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
* src/xend_internal.c: patch from Masayuki Sunou to avoid
attach-disk/attach-interface when < Xen 3.0.4 Daniel
This commit is contained in:
parent
0ee4415cc6
commit
b8906a43fa
@ -1,3 +1,8 @@
|
|||||||
|
Thu Aug 16 17:41:22 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/xend_internal.c: patch from Masayuki Sunou to avoid
|
||||||
|
attach-disk/attach-interface when < Xen 3.0.4
|
||||||
|
|
||||||
Thu Aug 16 15:24:30 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
Thu Aug 16 15:24:30 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/virsh.c: vshCommandOptInt was broken as it would not
|
* src/virsh.c: vshCommandOptInt was broken as it would not
|
||||||
|
@ -3091,6 +3091,13 @@ xenDaemonAttachDevice(virDomainPtr domain, char *xml)
|
|||||||
|
|
||||||
priv = (xenUnifiedPrivatePtr) domain->conn->privateData;
|
priv = (xenUnifiedPrivatePtr) domain->conn->privateData;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* on older Xen without the inactive guests management
|
||||||
|
* avoid doing this on inactive guests
|
||||||
|
*/
|
||||||
|
if ((domain->id < 0) && (priv->xendConfigVersion < 3))
|
||||||
|
return (-1);
|
||||||
|
|
||||||
str = virDomainGetOSType(domain);
|
str = virDomainGetOSType(domain);
|
||||||
if (strcmp(str, "linux"))
|
if (strcmp(str, "linux"))
|
||||||
hvm = 1;
|
hvm = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user