libvirt/xen-pv-cdrom.patch
James Fehlig fe8f4e8203 Accepting request 354651 from home:jfehlig:branches:Virtualization
- Update to libvirt 1.3.1
  - CVE-2015-5313
  - Many incremental improvements and bug fixes, see
    http://libvirt.org/news.html
  - Dropped patches: 034e47c3-CVE-2015-5313.patch,
    ace1ee22-qemuxml2argv-test.patch, add-with-login-shell.patch,
    virt-aa-helper-rw-mounts.patch

OBS-URL: https://build.opensuse.org/request/show/354651
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=508
2016-01-18 19:32:30 +00:00

22 lines
960 B
Diff

Index: libvirt-1.3.1/src/xenconfig/xen_sxpr.c
===================================================================
--- libvirt-1.3.1.orig/src/xenconfig/xen_sxpr.c
+++ libvirt-1.3.1/src/xenconfig/xen_sxpr.c
@@ -390,7 +390,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;
@@ -440,7 +440,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"));