[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/6] microvm: turn off io reservations for pcie root ports
From: |
Gerd Hoffmann |
Subject: |
[PULL 2/6] microvm: turn off io reservations for pcie root ports |
Date: |
Tue, 19 Jul 2022 17:22:14 +0200 |
The pcie host bridge has no io window on microvm,
so io reservations will not work.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20220701091516.43489-1-kraxel@redhat.com>
---
hw/i386/microvm.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
index 754f1d0593e5..dc929727dcbc 100644
--- a/hw/i386/microvm.c
+++ b/hw/i386/microvm.c
@@ -631,6 +631,14 @@ static void microvm_machine_initfn(Object *obj)
qemu_register_powerdown_notifier(&mms->powerdown_req);
}
+GlobalProperty microvm_properties[] = {
+ /*
+ * pcie host bridge (gpex) on microvm has no io address window,
+ * so reserving io space is not going to work. Turn it off.
+ */
+ { "pcie-root-port", "io-reserve", "0" },
+};
+
static void microvm_class_init(ObjectClass *oc, void *data)
{
X86MachineClass *x86mc = X86_MACHINE_CLASS(oc);
@@ -707,6 +715,9 @@ static void microvm_class_init(ObjectClass *oc, void *data)
"Set off to disable adding virtio-mmio devices to the kernel cmdline");
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE);
+
+ compat_props_add(mc->compat_props, microvm_properties,
+ G_N_ELEMENTS(microvm_properties));
}
static const TypeInfo microvm_machine_info = {
--
2.36.1
- [PULL 0/6] Kraxel 20220719 patches, Gerd Hoffmann, 2022/07/19
- [PULL 1/6] dbus-display: fix test race when initializing p2p connection, Gerd Hoffmann, 2022/07/19
- [PULL 3/6] usb/hcd-xhci: check slotid in xhci_wakeup_endpoint(), Gerd Hoffmann, 2022/07/19
- [PULL 2/6] microvm: turn off io reservations for pcie root ports,
Gerd Hoffmann <=
- [PULL 4/6] usb: document guest-reset and guest-reset-all, Gerd Hoffmann, 2022/07/19
- [PULL 5/6] usb: document pcap (aka usb traffic capture), Gerd Hoffmann, 2022/07/19
- [PULL 6/6] gtk: Add show_tabs=on|off command line option., Gerd Hoffmann, 2022/07/19
- Re: [PULL 0/6] Kraxel 20220719 patches, Peter Maydell, 2022/07/19