qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] microvm: turn off io reservations for pcie root ports
@ 2022-06-03  8:59 Gerd Hoffmann
  2022-06-04 13:25 ` Philippe Mathieu-Daudé via
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Gerd Hoffmann @ 2022-06-03  8:59 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Sergio Lopez, Richard Henderson,
	Michael S. Tsirkin, Marcel Apfelbaum, Eduardo Habkost,
	Gerd Hoffmann

The pcie host bridge has no io window on microvm,
so io reservations will not work.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/i386/microvm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
index 4b3b1dd262f1..f01d972f5d28 100644
--- a/hw/i386/microvm.c
+++ b/hw/i386/microvm.c
@@ -757,6 +757,12 @@ 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);
+
+    /*
+     * pcie host bridge (gpex) on microvm has no io address window,
+     * so reserving io space is not going to work.  Turn it off.
+     */
+    object_register_sugar_prop("pcie-root-port", "io-reserve", "0", true);
 }
 
 static const TypeInfo microvm_machine_info = {
-- 
2.36.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-06-29 14:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-03  8:59 [PATCH] microvm: turn off io reservations for pcie root ports Gerd Hoffmann
2022-06-04 13:25 ` Philippe Mathieu-Daudé via
2022-06-06  5:08 ` Sergio Lopez
2022-06-08 16:06 ` Michael S. Tsirkin
2022-06-09  7:28   ` Gerd Hoffmann
2022-06-27 22:37     ` Michael S. Tsirkin
2022-06-29  7:10       ` Gerd Hoffmann
2022-06-29  7:16         ` Michael S. Tsirkin
2022-06-29 12:20           ` Gerd Hoffmann
2022-06-29 14:04             ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).