mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00

Add the array of virq ports to each vCPU so that we can deliver timers, debug ports, etc. Global virqs are allocated against vCPU 0 initially, but can be migrated to other vCPUs (when we implement that). The kernel needs to know about VIRQ_TIMER in order to accelerate timers, so tell it via KVM_XEN_VCPU_ATTR_TYPE_TIMER. Also save/restore the value of the singleshot timer across migration, as the kernel will handle the hypercalls automatically now. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>
27 lines
801 B
C
27 lines
801 B
C
/*
|
|
* QEMU Xen emulation: Event channel support
|
|
*
|
|
* Copyright © 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
*
|
|
* Authors: David Woodhouse <dwmw2@infradead.org>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef QEMU_XEN_EVTCHN_H
|
|
#define QEMU_XEN_EVTCHN_H
|
|
|
|
void xen_evtchn_create(void);
|
|
int xen_evtchn_set_callback_param(uint64_t param);
|
|
|
|
struct evtchn_status;
|
|
struct evtchn_close;
|
|
struct evtchn_unmask;
|
|
struct evtchn_bind_virq;
|
|
int xen_evtchn_status_op(struct evtchn_status *status);
|
|
int xen_evtchn_close_op(struct evtchn_close *close);
|
|
int xen_evtchn_unmask_op(struct evtchn_unmask *unmask);
|
|
int xen_evtchn_bind_virq_op(struct evtchn_bind_virq *virq);
|
|
|
|
#endif /* QEMU_XEN_EVTCHN_H */
|