SHA256
1
0
forked from pool/libvirt
libvirt/xen-pv-cdrom.patch
James Fehlig 36595c9b4c Accepting request 393490 from home:jfehlig:branches:Virtualization
- Update to libvirt 1.3.4
  - Add support for migration data compression in QEMU driver
  - Drop libvirtd.socket
  - Many incremental improvements and bug fixes, see
    http://libvirt.org/news.html
  - Dropped patches: 216650f1-libxl-build-fix.patch,
    6d8b6d28-mark-implicit-video-primary.patch,
    03e8d5fb-qemu-perf-memory-corruption.patch,
    libvirtd-systemd-socket.patch

OBS-URL: https://build.opensuse.org/request/show/393490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=526
2016-05-03 21:55:59 +00:00

22 lines
960 B
Diff

Index: libvirt-1.3.4/src/xenconfig/xen_sxpr.c
===================================================================
--- libvirt-1.3.4.orig/src/xenconfig/xen_sxpr.c
+++ libvirt-1.3.4/src/xenconfig/xen_sxpr.c
@@ -392,7 +392,7 @@ xenParseSxprVifRate(const char *rate, un
static int
xenParseSxprDisks(virDomainDefPtr def,
const struct sexpr *root,
- int hvm)
+ int hvm ATTRIBUTE_UNUSED)
{
const struct sexpr *cur, *node;
virDomainDiskDefPtr disk = NULL;
@@ -442,7 +442,6 @@ xenParseSxprDisks(virDomainDefPtr def,
/* There is a case without the uname to the CD-ROM device */
offset = strchr(dst, ':');
if (!offset ||
- !hvm ||
STRNEQ(offset, ":cdrom")) {
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("domain information incomplete, vbd has no src"));