diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2022-12-14 00:11:07 +0000 |
---|---|---|
committer | David Woodhouse <dwmw@amazon.co.uk> | 2023-03-01 08:22:50 +0000 |
commit | cf7679abddd05712c5cfbe5516328586eded22c3 (patch) | |
tree | 0072eedb76f42f67b401d2dd9b772d65e2ba5e6b /target/i386 | |
parent | f5417856d25f1cf4932ac77a687979af8427f313 (diff) | |
download | qemu-cf7679abddd05712c5cfbe5516328586eded22c3.zip qemu-cf7679abddd05712c5cfbe5516328586eded22c3.tar.gz qemu-cf7679abddd05712c5cfbe5516328586eded22c3.tar.bz2 |
hw/xen: Implement EVTCHNOP_send
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/kvm/xen-emu.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target/i386/kvm/xen-emu.c b/target/i386/kvm/xen-emu.c index b8b439d..19a7f16 100644 --- a/target/i386/kvm/xen-emu.c +++ b/target/i386/kvm/xen-emu.c @@ -909,6 +909,18 @@ static bool kvm_xen_hcall_evtchn_op(struct kvm_xen_exit *exit, X86CPU *cpu, } break; } + case EVTCHNOP_send: { + struct evtchn_send send; + + qemu_build_assert(sizeof(send) == 4); + if (kvm_copy_from_gva(cs, arg, &send, sizeof(send))) { + err = -EFAULT; + break; + } + + err = xen_evtchn_send_op(&send); + break; + } default: return false; } |