diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2022-12-13 23:12:59 +0000 |
---|---|---|
committer | David Woodhouse <dwmw@amazon.co.uk> | 2023-03-01 08:22:50 +0000 |
commit | f5417856d25f1cf4932ac77a687979af8427f313 (patch) | |
tree | 03eda9f2d41b367dbc39d459bd34c105f58ea7c6 /target/i386 | |
parent | c723d4c15e224e9d058384eecd30559580836c7a (diff) | |
download | qemu-f5417856d25f1cf4932ac77a687979af8427f313.zip qemu-f5417856d25f1cf4932ac77a687979af8427f313.tar.gz qemu-f5417856d25f1cf4932ac77a687979af8427f313.tar.bz2 |
hw/xen: Implement EVTCHNOP_bind_ipi
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 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/i386/kvm/xen-emu.c b/target/i386/kvm/xen-emu.c index e0417f3..b8b439d 100644 --- a/target/i386/kvm/xen-emu.c +++ b/target/i386/kvm/xen-emu.c @@ -894,6 +894,21 @@ static bool kvm_xen_hcall_evtchn_op(struct kvm_xen_exit *exit, X86CPU *cpu, } break; } + case EVTCHNOP_bind_ipi: { + struct evtchn_bind_ipi ipi; + + qemu_build_assert(sizeof(ipi) == 8); + if (kvm_copy_from_gva(cs, arg, &ipi, sizeof(ipi))) { + err = -EFAULT; + break; + } + + err = xen_evtchn_bind_ipi_op(&ipi); + if (!err && kvm_copy_to_gva(cs, arg, &ipi, sizeof(ipi))) { + err = -EFAULT; + } + break; + } default: return false; } |