render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Pablo Greco 40546a
From 825720316c0f63b029673f883c79a45e49e0f8ab Mon Sep 17 00:00:00 2001
Pablo Greco 40546a
Message-Id: <825720316c0f63b029673f883c79a45e49e0f8ab@dist-git>
Pablo Greco 40546a
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
Pablo Greco 40546a
Date: Fri, 6 Mar 2020 15:51:49 +0100
Pablo Greco 40546a
Subject: [PATCH] RHEL: qemuCheckUnprivSGIO: use @sysfs_path to get unpriv_sgio
Pablo Greco 40546a
MIME-Version: 1.0
Pablo Greco 40546a
Content-Type: text/plain; charset=UTF-8
Pablo Greco 40546a
Content-Transfer-Encoding: 8bit
Pablo Greco 40546a
Pablo Greco 40546a
Downstream commit 65f4ff0e2c9a968b7ec65c8d751d4055cc212628
Pablo Greco 40546a
  RHEL: qemuSetUnprivSGIO: Actually use calculated
Pablo Greco 40546a
    @sysfs_path to set unpriv_sgio
Pablo Greco 40546a
removed the device_path -> sysfs_path conversion from
Pablo Greco 40546a
both virGetDeviceUnprivSGIO and virSetDeviceUnprivSGIO,
Pablo Greco 40546a
but only adjusted one of the callers.
Pablo Greco 40546a
Pablo Greco 40546a
https://bugzilla.redhat.com/show_bug.cgi?id=1808399
Pablo Greco 40546a
Pablo Greco 40546a
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Pablo Greco 40546a
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Pablo Greco 40546a
Message-Id: <20200306145149.1610286-7-abologna@redhat.com>
Pablo Greco 40546a
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Pablo Greco 40546a
---
Pablo Greco 40546a
 src/qemu/qemu_conf.c | 2 +-
Pablo Greco 40546a
 1 file changed, 1 insertion(+), 1 deletion(-)
Pablo Greco 40546a
Pablo Greco 40546a
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
Pablo Greco 40546a
index 5788354444..a86e340013 100644
Pablo Greco 40546a
--- a/src/qemu/qemu_conf.c
Pablo Greco 40546a
+++ b/src/qemu/qemu_conf.c
Pablo Greco 40546a
@@ -1255,7 +1255,7 @@ qemuCheckUnprivSGIO(virHashTablePtr sharedDevices,
Pablo Greco 40546a
         goto cleanup;
Pablo Greco 40546a
     }
Pablo Greco 40546a
 
Pablo Greco 40546a
-    if (virGetDeviceUnprivSGIO(device_path, &val) < 0)
Pablo Greco 40546a
+    if (virGetDeviceUnprivSGIO(sysfs_path, &val) < 0)
Pablo Greco 40546a
         goto cleanup;
Pablo Greco 40546a
 
Pablo Greco 40546a
     /* Error message on failure needs to be handled in caller
Pablo Greco 40546a
-- 
Pablo Greco 40546a
2.25.1
Pablo Greco 40546a