diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2022-12-14 19:27:38 +0000 |
---|---|---|
committer | David Woodhouse <dwmw@amazon.co.uk> | 2023-03-01 08:22:50 +0000 |
commit | 306670461bb19e7af42b3d68d007d7690efd2334 (patch) | |
tree | 41f22823e484fd5ff5f7ad2a477cb6e8fe8a5955 /target/i386/kvm | |
parent | 8432788104b6b4843738edbc5cf084b2a3687ee9 (diff) | |
download | qemu-306670461bb19e7af42b3d68d007d7690efd2334.zip qemu-306670461bb19e7af42b3d68d007d7690efd2334.tar.gz qemu-306670461bb19e7af42b3d68d007d7690efd2334.tar.bz2 |
hw/xen: Implement EVTCHNOP_bind_vcpu
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Diffstat (limited to 'target/i386/kvm')
-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 1aff6b1..8dc0d32 100644 --- a/target/i386/kvm/xen-emu.c +++ b/target/i386/kvm/xen-emu.c @@ -952,6 +952,18 @@ static bool kvm_xen_hcall_evtchn_op(struct kvm_xen_exit *exit, X86CPU *cpu, } break; } + case EVTCHNOP_bind_vcpu: { + struct evtchn_bind_vcpu vcpu; + + qemu_build_assert(sizeof(vcpu) == 8); + if (kvm_copy_from_gva(cs, arg, &vcpu, sizeof(vcpu))) { + err = -EFAULT; + break; + } + + err = xen_evtchn_bind_vcpu_op(&vcpu); + break; + } default: return false; } |