]> git.proxmox.com Git - mirror_qemu.git/commit
hw/xen: Support GSI mapping to PIRQ
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 13 Jan 2023 20:41:19 +0000 (20:41 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 1 Mar 2023 09:09:20 +0000 (09:09 +0000)
commit4f81baa33ed645fc17a9908236630b8154502ae5
treec4e2cd916e432fad1ce450ece27788a28554e889
parentaa98ee38a5e77d1e40987c694abd0c5bc5d6c811
hw/xen: Support GSI mapping to PIRQ

If I advertise XENFEAT_hvm_pirqs then a guest now boots successfully as
long as I tell it 'pci=nomsi'.

[root@localhost ~]# cat /proc/interrupts
           CPU0
  0:         52   IO-APIC   2-edge      timer
  1:         16  xen-pirq   1-ioapic-edge  i8042
  4:       1534  xen-pirq   4-ioapic-edge  ttyS0
  8:          1  xen-pirq   8-ioapic-edge  rtc0
  9:          0  xen-pirq   9-ioapic-level  acpi
 11:       5648  xen-pirq  11-ioapic-level  ahci[0000:00:04.0]
 12:        257  xen-pirq  12-ioapic-edge  i8042
...

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/kvm/xen_evtchn.c
hw/i386/kvm/xen_evtchn.h
hw/i386/x86.c