[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v15 53/60] hw/xen: Automatically add xen-platform PCI device for
From: |
David Woodhouse |
Subject: |
[PATCH v15 53/60] hw/xen: Automatically add xen-platform PCI device for emulated Xen guests |
Date: |
Wed, 1 Mar 2023 13:52:16 +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 f4a08cc23f..fd17ce7a94 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1315,6 +1315,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 v15 46/60] hw/xen: Implement GNTTABOP_query_size, (continued)
- [PATCH v15 46/60] hw/xen: Implement GNTTABOP_query_size, David Woodhouse, 2023/03/01
- [PATCH v15 31/60] hw/xen: Implement EVTCHNOP_unmask, David Woodhouse, 2023/03/01
- [PATCH v15 23/60] i386/xen: handle VCPUOP_register_runstate_memory_area, David Woodhouse, 2023/03/01
- [PATCH v15 33/60] hw/xen: Implement EVTCHNOP_bind_ipi, David Woodhouse, 2023/03/01
- [PATCH v15 60/60] hw/xen: Subsume xen_be_register_common() into xen_be_init(), David Woodhouse, 2023/03/01
- [PATCH v15 11/60] i386/xen: implement HYPERVISOR_sched_op, SCHEDOP_shutdown, David Woodhouse, 2023/03/01
- [PATCH v15 26/60] i386/xen: implement HVMOP_set_param, David Woodhouse, 2023/03/01
- [PATCH v15 14/60] xen: Permit --xen-domid argument when accel is KVM, David Woodhouse, 2023/03/01
- [PATCH v15 05/60] i386/kvm: handle Xen HVM cpuid leaves, David Woodhouse, 2023/03/01
- [PATCH v15 18/60] i386/xen: implement XENMEM_add_to_physmap_batch, David Woodhouse, 2023/03/01
- [PATCH v15 53/60] hw/xen: Automatically add xen-platform PCI device for emulated Xen guests,
David Woodhouse <=
- [PATCH v15 02/60] xen: add CONFIG_XEN_BUS and CONFIG_XEN_EMU options for Xen emulation, David Woodhouse, 2023/03/01
- [PATCH v15 44/60] hw/xen: Support mapping grant frames, David Woodhouse, 2023/03/01
- [PATCH v15 38/60] hw/xen: Implement EVTCHNOP_reset, David Woodhouse, 2023/03/01
- [PATCH v15 50/60] hw/xen: Add backend implementation of interdomain event channel support, David Woodhouse, 2023/03/01
- [PATCH v15 39/60] i386/xen: add monitor commands to test event injection, David Woodhouse, 2023/03/01
- [PATCH v15 51/60] hw/xen: Add xen_xenstore device for xenstore emulation, David Woodhouse, 2023/03/01
- [PATCH v15 45/60] i386/xen: Implement HYPERVISOR_grant_table_op and GNTTABOP_[gs]et_verson, David Woodhouse, 2023/03/01
- [PATCH v15 52/60] hw/xen: Add basic ring handling to xenstore, David Woodhouse, 2023/03/01
- [PATCH v15 42/60] kvm/i386: Add xen-gnttab-max-frames property, David Woodhouse, 2023/03/01
- [PATCH v15 49/60] i386/xen: handle HVMOP_get_param, David Woodhouse, 2023/03/01