mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/xen: Implement emulated PIRQ hypercall support
This wires up the basic infrastructure but the actual interrupts aren't there yet, so don't advertise it to the guest. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>
This commit is contained in:
parent
799c23548f
commit
aa98ee38a5
6 changed files with 324 additions and 5 deletions
|
@ -1267,6 +1267,21 @@ static bool kvm_xen_hcall_evtchn_op(struct kvm_xen_exit *exit, X86CPU *cpu,
|
|||
}
|
||||
break;
|
||||
}
|
||||
case EVTCHNOP_bind_pirq: {
|
||||
struct evtchn_bind_pirq pirq;
|
||||
|
||||
qemu_build_assert(sizeof(pirq) == 12);
|
||||
if (kvm_copy_from_gva(cs, arg, &pirq, sizeof(pirq))) {
|
||||
err = -EFAULT;
|
||||
break;
|
||||
}
|
||||
|
||||
err = xen_evtchn_bind_pirq_op(&pirq);
|
||||
if (!err && kvm_copy_to_gva(cs, arg, &pirq, sizeof(pirq))) {
|
||||
err = -EFAULT;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case EVTCHNOP_bind_ipi: {
|
||||
struct evtchn_bind_ipi ipi;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue