]> www.infradead.org Git - users/dwmw2/qemu.git/commit
i386/xen: implement HVMOP_set_evtchn_upcall_vector
authorAnkur Arora <ankur.a.arora@oracle.com>
Tue, 6 Dec 2022 11:14:07 +0000 (11:14 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 15 Dec 2022 10:41:59 +0000 (10:41 +0000)
commit2e9ef3c73c5d02a833e85eee363cd9920397576f
tree40b79bccef51a6320448c3958af31eaff3737756
parentd3bbc69c764abdbbd42bae3c93ed24d484eac19f
i386/xen: implement HVMOP_set_evtchn_upcall_vector

The HVMOP_set_evtchn_upcall_vector hypercall sets the per-vCPU upcall
vector, to be delivered to the local APIC just like an MSI (with an EOI).

This takes precedence over the system-wide delivery method set by the
HVMOP_set_param hypercall with HVM_PARAM_CALLBACK_IRQ. It's used by
Windows and Xen (PV shim) guests but normally not by Linux.

Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
[dwmw2: Rework for upstream kernel changes and split from HVMOP_set_param]
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
target/i386/cpu.h
target/i386/kvm/kvm.c
target/i386/kvm/trace-events
target/i386/kvm/xen-emu.c
target/i386/kvm/xen-emu.h
target/i386/machine.c