2020-11-03 12:01:38 +00:00
|
|
|
From ef5a82d50464478a302cb59804d03e4a3dada83e Mon Sep 17 00:00:00 2001
|
|
|
|
Message-Id: <ef5a82d50464478a302cb59804d03e4a3dada83e@dist-git>
|
2020-04-28 09:33:33 +00:00
|
|
|
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
2020-11-03 12:01:38 +00:00
|
|
|
Date: Fri, 6 Mar 2020 15:52:26 +0100
|
2020-04-28 09:33:33 +00:00
|
|
|
Subject: [PATCH] RHEL: qemuCheckUnprivSGIO: use @sysfs_path to get unpriv_sgio
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Downstream commit 65f4ff0e2c9a968b7ec65c8d751d4055cc212628
|
|
|
|
RHEL: qemuSetUnprivSGIO: Actually use calculated
|
|
|
|
@sysfs_path to set unpriv_sgio
|
|
|
|
removed the device_path -> sysfs_path conversion from
|
|
|
|
both virGetDeviceUnprivSGIO and virSetDeviceUnprivSGIO,
|
|
|
|
but only adjusted one of the callers.
|
|
|
|
|
2020-11-03 12:01:38 +00:00
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1808400
|
2020-04-28 09:33:33 +00:00
|
|
|
|
|
|
|
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
|
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
2020-11-03 12:01:38 +00:00
|
|
|
Message-Id: <20200306145226.1610708-7-abologna@redhat.com>
|
2020-04-28 09:33:33 +00:00
|
|
|
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
|
---
|
|
|
|
src/qemu/qemu_conf.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
|
2020-11-03 12:01:38 +00:00
|
|
|
index b61d7e59fa..6a22d78ac6 100644
|
2020-04-28 09:33:33 +00:00
|
|
|
--- a/src/qemu/qemu_conf.c
|
|
|
|
+++ b/src/qemu/qemu_conf.c
|
2020-11-03 12:01:38 +00:00
|
|
|
@@ -1430,7 +1430,7 @@ qemuCheckUnprivSGIO(virHashTablePtr sharedDevices,
|
|
|
|
if (!(virHashLookup(sharedDevices, key)))
|
|
|
|
return 0;
|
2020-04-28 09:33:33 +00:00
|
|
|
|
|
|
|
- if (virGetDeviceUnprivSGIO(device_path, &val) < 0)
|
|
|
|
+ if (virGetDeviceUnprivSGIO(sysfs_path, &val) < 0)
|
2020-11-03 12:01:38 +00:00
|
|
|
return -1;
|
2020-04-28 09:33:33 +00:00
|
|
|
|
|
|
|
/* Error message on failure needs to be handled in caller
|
|
|
|
--
|
|
|
|
2.25.1
|
|
|
|
|