OSDN Git Service

hw/xen: Add xen_evtchn device for event channel emulation
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 16 Dec 2022 14:02:29 +0000 (14:02 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 1 Mar 2023 08:22:50 +0000 (08:22 +0000)
commit91cce756179195f0725f551a5b2922ae2abbef9f
tree623f24610e50c57c93612492256f322e8a74e1a2
parent5dbcd01a8dfa4601dd3ce2cab2c4aa3654f1114d
hw/xen: Add xen_evtchn device for event channel emulation

Include basic support for setting HVM_PARAM_CALLBACK_IRQ to the global
vector method HVM_PARAM_CALLBACK_TYPE_VECTOR, which is handled in-kernel
by raising the vector whenever the vCPU's vcpu_info->evtchn_upcall_pending
flag is set.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/kvm/meson.build
hw/i386/kvm/xen_evtchn.c [new file with mode: 0644]
hw/i386/kvm/xen_evtchn.h [new file with mode: 0644]
hw/i386/pc.c
target/i386/kvm/xen-emu.c