Blame SOURCES/kvm-libqos-pci-pc-use-32-bit-write-for-EJ-register.patch

a6baaf
From 17813233c9bb5c93c7f3c7fc350641f8e76e769c Mon Sep 17 00:00:00 2001
a6baaf
From: Jon Maloy <jmaloy@redhat.com>
a6baaf
Date: Wed, 21 Apr 2021 22:30:02 -0400
a6baaf
Subject: [PATCH 3/8] libqos: pci-pc: use 32-bit write for EJ register
a6baaf
MIME-Version: 1.0
a6baaf
Content-Type: text/plain; charset=UTF-8
a6baaf
Content-Transfer-Encoding: 8bit
a6baaf
a6baaf
RH-Author: Jon Maloy <jmaloy@redhat.com>
a6baaf
Message-id: <20210421223006.19650-3-jmaloy@redhat.com>
a6baaf
Patchwork-id: 101484
a6baaf
O-Subject: [RHEL-8.5.0 qemu-kvm PATCH v2 2/6] libqos: pci-pc: use 32-bit write for EJ register
a6baaf
Bugzilla: 1944621
a6baaf
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
a6baaf
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
a6baaf
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
a6baaf
a6baaf
From: Paolo Bonzini <pbonzini@redhat.com>
a6baaf
a6baaf
The memory region ops have min_access_size == 4 so obey it.
a6baaf
a6baaf
Tested-by: Thomas Huth <thuth@redhat.com>
a6baaf
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
a6baaf
a6baaf
(cherry picked from commit 4b7c06837ae0b1ff56473202a42e7e386f53d6db)
a6baaf
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
a6baaf
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
a6baaf
---
a6baaf
 tests/libqos/pci-pc.c | 2 +-
a6baaf
 1 file changed, 1 insertion(+), 1 deletion(-)
a6baaf
a6baaf
diff --git a/tests/libqos/pci-pc.c b/tests/libqos/pci-pc.c
a6baaf
index 0bc591d1da..3bb2eb3ba8 100644
a6baaf
--- a/tests/libqos/pci-pc.c
a6baaf
+++ b/tests/libqos/pci-pc.c
a6baaf
@@ -186,7 +186,7 @@ void qpci_unplug_acpi_device_test(QTestState *qts, const char *id, uint8_t slot)
a6baaf
     g_assert(!qdict_haskey(response, "error"));
a6baaf
     qobject_unref(response);
a6baaf
 
a6baaf
-    qtest_outb(qts, ACPI_PCIHP_ADDR + PCI_EJ_BASE, 1 << slot);
a6baaf
+    qtest_outl(qts, ACPI_PCIHP_ADDR + PCI_EJ_BASE, 1 << slot);
a6baaf
 
a6baaf
     qtest_qmp_eventwait(qts, "DEVICE_DELETED");
a6baaf
 }
a6baaf
-- 
a6baaf
2.27.0
a6baaf