diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2022-12-14 17:26:32 +0000 |
---|---|---|
committer | David Woodhouse <dwmw@amazon.co.uk> | 2023-03-01 08:22:50 +0000 |
commit | 8432788104b6b4843738edbc5cf084b2a3687ee9 (patch) | |
tree | 260b600250efb1baca80097c9eed8b7ae79409d3 /target/i386 | |
parent | e1db61b87b0e479bcacdf0c17656c8ee563cc5ba (diff) | |
download | qemu-8432788104b6b4843738edbc5cf084b2a3687ee9.zip qemu-8432788104b6b4843738edbc5cf084b2a3687ee9.tar.gz qemu-8432788104b6b4843738edbc5cf084b2a3687ee9.tar.bz2 |
hw/xen: Implement EVTCHNOP_bind_interdomain
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 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/i386/kvm/xen-emu.c b/target/i386/kvm/xen-emu.c index ac04387..1aff6b1 100644 --- a/target/i386/kvm/xen-emu.c +++ b/target/i386/kvm/xen-emu.c @@ -936,6 +936,22 @@ static bool kvm_xen_hcall_evtchn_op(struct kvm_xen_exit *exit, X86CPU *cpu, } break; } + case EVTCHNOP_bind_interdomain: { + struct evtchn_bind_interdomain interdomain; + + qemu_build_assert(sizeof(interdomain) == 12); + if (kvm_copy_from_gva(cs, arg, &interdomain, sizeof(interdomain))) { + err = -EFAULT; + break; + } + + err = xen_evtchn_bind_interdomain_op(&interdomain); + if (!err && + kvm_copy_to_gva(cs, arg, &interdomain, sizeof(interdomain))) { + err = -EFAULT; + } + break; + } default: return false; } |