mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
666834c47d
ACRN Hypervisor Service Module (HSM) is a kernel module in Service VM which communicates with ACRN userspace through ioctls and talks to ACRN Hypervisor through hypercalls. Add a basic HSM driver which allows Service VM userspace to communicate with ACRN. The following patches will add more ioctls, guest VM memory mapping caching, I/O request processing, ioeventfd and irqfd into this module. HSM exports a char device interface (/dev/acrn_hsm) to userspace. Cc: Dave Hansen <dave.hansen@intel.com> Cc: Zhi Wang <zhi.a.wang@intel.com> Cc: Zhenyu Wang <zhenyuw@linux.intel.com> Cc: Yu Wang <yu1.wang@intel.com> Cc: Reinette Chatre <reinette.chatre@intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Shuo Liu <shuo.a.liu@intel.com> Link: https://lore.kernel.org/r/20210207031040.49576-6-shuo.a.liu@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 lines
293 B
C
19 lines
293 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __ACRN_HSM_DRV_H
|
|
#define __ACRN_HSM_DRV_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define ACRN_INVALID_VMID (0xffffU)
|
|
|
|
/**
|
|
* struct acrn_vm - Properties of ACRN User VM.
|
|
* @vmid: User VM ID
|
|
*/
|
|
struct acrn_vm {
|
|
u16 vmid;
|
|
};
|
|
|
|
#endif /* __ACRN_HSM_DRV_H */
|