]> git.baikalelectronics.ru Git - kernel.git/commit
virt: acrn: Introduce VM management interfaces
authorShuo Liu <shuo.a.liu@intel.com>
Sun, 7 Feb 2021 03:10:28 +0000 (11:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 09:58:18 +0000 (10:58 +0100)
commit9c5137aedd112f78a968bdd2325de2ea06df46c0
treea5733316d34de05dcdbc90818c5af5affe74020c
parent666834c47d3b41da550bbcbc709148e5fc14879c
virt: acrn: Introduce VM management interfaces

The VM management interfaces expose several VM operations to ACRN
userspace via ioctls. For example, creating VM, starting VM, destroying
VM and so on.

The ACRN Hypervisor needs to exchange data with the ACRN userspace
during the VM operations. HSM provides VM operation ioctls to the ACRN
userspace and communicates with the ACRN Hypervisor for VM operations
via hypercalls.

HSM maintains a list of User VM. Each User VM will be bound to an
existing file descriptor of /dev/acrn_hsm. The User VM will be
destroyed when the file descriptor is closed.

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: Zhi Wang <zhi.a.wang@intel.com>
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-7-shuo.a.liu@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/userspace-api/ioctl/ioctl-number.rst
MAINTAINERS
drivers/virt/acrn/Makefile
drivers/virt/acrn/acrn_drv.h
drivers/virt/acrn/hsm.c
drivers/virt/acrn/hypercall.h [new file with mode: 0644]
drivers/virt/acrn/vm.c [new file with mode: 0644]
include/uapi/linux/acrn.h [new file with mode: 0644]