Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xen for openSUSE:Factory checked in 
at 2021-12-16 21:18:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xen (Old)
 and      /work/SRC/openSUSE:Factory/.xen.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xen"

Thu Dec 16 21:18:42 2021 rev:308 rq:940365 version:4.16.0_02

Changes:
--------
--- /work/SRC/openSUSE:Factory/xen/xen.changes  2021-12-03 20:35:32.584191426 
+0100
+++ /work/SRC/openSUSE:Factory/.xen.new.2520/xen.changes        2021-12-16 
21:18:48.302509658 +0100
@@ -1,0 +2,7 @@
+Thu Dec  9 09:36:20 MST 2021 - carn...@suse.com
+
+- bsc#1193307 - pci backend does not exist when attach a vf to a pv
+  guest
+  libxl-PCI-defer-backend-wait.patch
+
+-------------------------------------------------------------------

New:
----
  libxl-PCI-defer-backend-wait.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xen.spec ++++++
--- /var/tmp/diff_new_pack.A3cfjc/_old  2021-12-16 21:18:49.978510296 +0100
+++ /var/tmp/diff_new_pack.A3cfjc/_new  2021-12-16 21:18:49.982510297 +0100
@@ -217,6 +217,7 @@
 Patch467:       xenstore-run-in-studomain.patch
 Patch468:       libxl.helper_done-crash.patch
 Patch469:       libxl.LIBXL_HOTPLUG_TIMEOUT.patch
+Patch470:       libxl-PCI-defer-backend-wait.patch
 # python3 conversion patches
 Patch500:       build-python3-conversion.patch
 Patch501:       migration-python3-conversion.patch

++++++ libxl-PCI-defer-backend-wait.patch ++++++
libxl/PCI: defer backend wait upon attaching to PV guest

Attempting to wait when the backend hasn't been created yet can't work:
the function will complain "Backend ... does not exist". Move the
waiting past the creation of the backend (and that of other related
nodes), hoping that there are no other dependencies that would now be
broken.

Fixes: 0fdb48ffe7a1 ("libxl: Make sure devices added by pci-attach are 
reflected in the config")
Signed-off-by: Jan Beulich <jbeul...@suse.com>

--- unstable.orig/tools/libs/light/libxl_pci.c  2021-11-17 12:05:49.000000000 
+0100
+++ unstable/tools/libs/light/libxl_pci.c       2021-12-09 17:02:15.265069154 
+0100
@@ -157,11 +157,6 @@ static int libxl__device_pci_add_xenstor
     if (domtype == LIBXL_DOMAIN_TYPE_INVALID)
         return ERROR_FAIL;
 
-    if (!starting && domtype == LIBXL_DOMAIN_TYPE_PV) {
-        if (libxl__wait_for_backend(gc, be_path, GCSPRINTF("%d", 
XenbusStateConnected)) < 0)
-            return ERROR_FAIL;
-    }
-
     back = flexarray_make(gc, 16, 1);
 
     LOGD(DEBUG, domid, "Adding new pci device to xenstore");
@@ -213,6 +208,9 @@ static int libxl__device_pci_add_xenstor
         if (rc < 0) goto out;
     }
 
+    if (!starting && domtype == LIBXL_DOMAIN_TYPE_PV)
+        rc = libxl__wait_for_backend(gc, be_path, GCSPRINTF("%d", 
XenbusStateConnected));
+
 out:
     libxl__xs_transaction_abort(gc, &t);
     if (lock) libxl__unlock_file(lock);

Reply via email to