]> git.proxmox.com Git - pve-qemu.git/blob - debian/patches/extra/0008-raven-disable-reentrancy-detection-for-iomem.patch
bea68d4cc49f76e177d0e683dde7b11994115e66
[pve-qemu.git] / debian / patches / extra / 0008-raven-disable-reentrancy-detection-for-iomem.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Alexander Bulekov <alxndr@bu.edu>
3 Date: Thu, 27 Apr 2023 17:10:12 -0400
4 Subject: [PATCH] raven: disable reentrancy detection for iomem
5
6 As the code is designed for re-entrant calls from raven_io_ops to
7 pci-conf, mark raven_io_ops as reentrancy-safe.
8
9 Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
10 Message-Id: <20230427211013.2994127-8-alxndr@bu.edu>
11 Signed-off-by: Thomas Huth <thuth@redhat.com>
12 (cherry-picked from commit 6dad5a6810d9c60ca320d01276f6133bbcfa1fc7)
13 Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
14 ---
15 hw/pci-host/raven.c | 7 +++++++
16 1 file changed, 7 insertions(+)
17
18 diff --git a/hw/pci-host/raven.c b/hw/pci-host/raven.c
19 index 072ffe3c5e..9a11ac4b2b 100644
20 --- a/hw/pci-host/raven.c
21 +++ b/hw/pci-host/raven.c
22 @@ -294,6 +294,13 @@ static void raven_pcihost_initfn(Object *obj)
23 memory_region_init(&s->pci_memory, obj, "pci-memory", 0x3f000000);
24 address_space_init(&s->pci_io_as, &s->pci_io, "raven-io");
25
26 + /*
27 + * Raven's raven_io_ops use the address-space API to access pci-conf-idx
28 + * (which is also owned by the raven device). As such, mark the
29 + * pci_io_non_contiguous as re-entrancy safe.
30 + */
31 + s->pci_io_non_contiguous.disable_reentrancy_guard = true;
32 +
33 /* CPU address space */
34 memory_region_add_subregion(address_space_mem, PCI_IO_BASE_ADDR,
35 &s->pci_io);