[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v11 53/59] hw/xen: Automatically add xen-platform PCI device for
From: |
David Woodhouse |
Subject: |
[PATCH v11 53/59] hw/xen: Automatically add xen-platform PCI device for emulated Xen guests |
Date: |
Thu, 16 Feb 2023 06:24:38 +0000 |
From: David Woodhouse <dwmw@amazon.co.uk>
It isn't strictly mandatory but Linux guests at least will only map
their grant tables over the dummy BAR that it provides, and don't have
sufficient wit to map them in any other unused part of their guest
address space. So include it by default for minimal surprise factor.
As I come to document "how to run a Xen guest in QEMU", this means one
fewer thing to tell the user about, according to the mantra of "if it
needs documenting, fix it first, then document what remains".
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
---
hw/i386/pc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index a12a7a67e9..5ec3518b9e 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1313,6 +1313,9 @@ void pc_basic_device_init(struct PCMachineState *pcms,
#ifdef CONFIG_XEN_EMU
if (xen_mode == XEN_EMULATE) {
xen_evtchn_connect_gsis(gsi);
+ if (pcms->bus) {
+ pci_create_simple(pcms->bus, -1, "xen-platform");
+ }
}
#endif
--
2.39.0
- [PATCH v11 20/59] i386/xen: implement HYPERVISOR_vcpu_op, (continued)
- [PATCH v11 20/59] i386/xen: implement HYPERVISOR_vcpu_op, David Woodhouse, 2023/02/16
- [PATCH v11 41/59] hw/xen: Support HVM_PARAM_CALLBACK_TYPE_PCI_INTX callback, David Woodhouse, 2023/02/16
- [PATCH v11 34/59] hw/xen: Implement EVTCHNOP_send, David Woodhouse, 2023/02/16
- [PATCH v11 05/59] i386/kvm: handle Xen HVM cpuid leaves, David Woodhouse, 2023/02/16
- [PATCH v11 09/59] i386/xen: handle guest hypercalls, David Woodhouse, 2023/02/16
- [PATCH v11 13/59] hw/xen: Add xen_overlay device for emulating shared xenheap pages, David Woodhouse, 2023/02/16
- [PATCH v11 56/59] hw/xen: Support GSI mapping to PIRQ, David Woodhouse, 2023/02/16
- [PATCH v11 22/59] i386/xen: handle VCPUOP_register_vcpu_time_info, David Woodhouse, 2023/02/16
- [PATCH v11 16/59] i386/xen: manage and save/restore Xen guest long_mode setting, David Woodhouse, 2023/02/16
- [PATCH v11 35/59] hw/xen: Implement EVTCHNOP_alloc_unbound, David Woodhouse, 2023/02/16
- [PATCH v11 53/59] hw/xen: Automatically add xen-platform PCI device for emulated Xen guests,
David Woodhouse <=
- [PATCH v11 37/59] hw/xen: Implement EVTCHNOP_bind_vcpu, David Woodhouse, 2023/02/16
- [PATCH v11 38/59] hw/xen: Implement EVTCHNOP_reset, David Woodhouse, 2023/02/16
- [PATCH v11 11/59] i386/xen: implement HYPERVISOR_sched_op, SCHEDOP_shutdown, David Woodhouse, 2023/02/16
- [PATCH v11 25/59] i386/xen: implement HVMOP_set_evtchn_upcall_vector, David Woodhouse, 2023/02/16
- [PATCH v11 58/59] kvm/i386: Add xen-evtchn-max-pirq property, David Woodhouse, 2023/02/16
- [PATCH v11 04/59] i386/kvm: Add xen-version KVM accelerator property and init KVM Xen support, David Woodhouse, 2023/02/16
- [PATCH v11 07/59] xen-platform: exclude vfio-pci from the PCI platform unplug, David Woodhouse, 2023/02/16
- [PATCH v11 48/59] i386/xen: Reserve Xen special pages for console, xenstore rings, David Woodhouse, 2023/02/16
- [PATCH v11 51/59] hw/xen: Add xen_xenstore device for xenstore emulation, David Woodhouse, 2023/02/16
- [PATCH v11 01/59] include: import Xen public headers to hw/xen/interface, David Woodhouse, 2023/02/16