mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
hw/xen: Add xen_evtchn device for event channel emulation
Include basic support for setting HVM_PARAM_CALLBACK_IRQ to the global vector method HVM_PARAM_CALLBACK_TYPE_VECTOR, which is handled in-kernel by raising the vector whenever the vCPU's vcpu_info->evtchn_upcall_pending flag is set. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org>
This commit is contained in:
parent
5dbcd01a8d
commit
91cce75617
5 changed files with 194 additions and 1 deletions
18
hw/i386/kvm/xen_evtchn.h
Normal file
18
hw/i386/kvm/xen_evtchn.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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);
|
||||
|
||||
#endif /* QEMU_XEN_EVTCHN_H */
|
Loading…
Add table
Add a link
Reference in a new issue