mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
ioeventfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a User VM. ACRN userspace can register any arbitrary I/O address with a corresponding eventfd and then pass the eventfd to a specific end-point of interest for handling. Vhost is a kernel-level virtio server which uses eventfd for signalling. To support vhost on ACRN, ioeventfd is introduced in HSM. A new I/O client dedicated to ioeventfd is associated with a User VM during VM creation. HSM provides ioctls to associate an I/O region with a eventfd. The I/O client signals a eventfd once its corresponding I/O region is matched with an I/O request. Cc: Zhi Wang <[email protected]> Cc: Zhenyu Wang <[email protected]> Cc: Yu Wang <[email protected]> Cc: Reinette Chatre <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Reviewed-by: Zhi Wang <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Signed-off-by: Shuo Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
16 lines
577 B
Plaintext
16 lines
577 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
config ACRN_HSM
|
|
tristate "ACRN Hypervisor Service Module"
|
|
depends on ACRN_GUEST
|
|
select EVENTFD
|
|
help
|
|
ACRN Hypervisor Service Module (HSM) is a kernel module which
|
|
communicates with ACRN userspace through ioctls and talks to
|
|
the ACRN Hypervisor through hypercalls. HSM will only run in
|
|
a privileged management VM, called Service VM, to manage User
|
|
VMs and do I/O emulation. Not required for simply running
|
|
under ACRN as a User VM.
|
|
|
|
To compile as a module, choose M, the module will be called
|
|
acrn. If unsure, say N.
|