thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 6 months ago
Clone

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

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