qemu-e2k/hw/i386/kvm
David Woodhouse 2aff696b10 hw/xen: Support HVM_PARAM_CALLBACK_TYPE_PCI_INTX callback
The guest is permitted to specify an arbitrary domain/bus/device/function
and INTX pin from which the callback IRQ shall appear to have come.

In QEMU we can only easily do this for devices that actually exist, and
even that requires us "knowing" that it's a PCMachine in order to find
the PCI root bus — although that's OK really because it's always true.

We also don't get to get notified of INTX routing changes, because we
can't do that as a passive observer; if we try to register a notifier
it will overwrite any existing notifier callback on the device.

But in practice, guests using PCI_INTX will only ever use pin A on the
Xen platform device, and won't swizzle the INTX routing after they set
it up. So this is just fine.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
2023-03-01 09:07:50 +00:00
..
apic.c
clock.c
i8254.c
i8259.c hw/intc: Extract the IRQ counting functions into a separate file 2023-01-13 16:22:57 +01:00
ioapic.c hw: Move ioapic*.h to intc/ 2023-02-27 22:29:01 +01:00
meson.build i386/xen: add monitor commands to test event injection 2023-03-01 08:22:50 +00:00
xen_evtchn.c hw/xen: Support HVM_PARAM_CALLBACK_TYPE_PCI_INTX callback 2023-03-01 09:07:50 +00:00
xen_evtchn.h hw/xen: Support HVM_PARAM_CALLBACK_TYPE_GSI callback 2023-03-01 09:06:44 +00:00
xen_overlay.c i386/xen: manage and save/restore Xen guest long_mode setting 2023-03-01 08:22:49 +00:00
xen_overlay.h i386/xen: manage and save/restore Xen guest long_mode setting 2023-03-01 08:22:49 +00:00
xen-stubs.c i386/xen: add monitor commands to test event injection 2023-03-01 08:22:50 +00:00