cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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