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