Chenli Wei
05f7cbefea
devicemodel: remove MAX_KATA_VM_NUM and CONFIG_KATA_VM
...
Since the UUID is not a *must* set parameter for the standard post-launched
VM which doesn't depend on any static VM configuration. We can remove
the KATA related code from hypervisor as it belongs to such VM type.
v2-->v3:
separate the struce acrn_platform_info change of devicemodel
v1-->v2:
update the subject and commit msg
Tracked-On:#6685
Signed-off-by: Chenli Wei <chenli.wei@intel.com>
Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
2021-11-16 14:42:59 +08:00
Shuo A Liu
7947b4dae8
doc: Adapt documents to new HSM driver
...
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
07381888d3
dm: Use the new HSM eventfd ioctls
...
IC_EVENT_IOEVENTFD -> ACRN_IOCTL_IOEVENTFD
IC_EVENT_IRQFD -> ACRN_IOCTL_IRQFD
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
6e0b12180c
hv: dm: Use new power management data structures
...
struct cpu_px_data -> struct acrn_pstate_data
struct cpu_cx_data -> struct acrn_cstate_data
enum pm_cmd_type -> enum acrn_pm_cmd_type
struct acpi_generic_address -> struct acrn_acpi_generic_address
cpu_cx_data -> acrn_cstate_data
cpu_px_data -> acrn_pstate_data
IC_PM_GET_CPU_STATE -> ACRN_IOCTL_PM_GET_CPU_STATE
PMCMD_GET_PX_CNT -> ACRN_PMCMD_GET_PX_CNT
PMCMD_GET_CX_CNT -> ACRN_PMCMD_GET_CX_CNT
PMCMD_GET_PX_DATA -> ACRN_PMCMD_GET_PX_DATA
PMCMD_GET_CX_DATA -> ACRN_PMCMD_GET_CX_DATA
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
98c80d75b8
hv: dm: Use new virtual device management ioctls
...
IC_ADD_HV_VDEV -> ACRN_IOCTL_CREATE_VDEV
IC_REMOVE_HV_VDEV -> ACRN_IOCTL_DESTROY_VDEV
struct acrn_emul_dev -> struct acrn_vdev
Also, move struct acrn_vdev to acrn_common.h as this structure is used
by both DM and HV.
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
9e7abbb38c
dm: Use new MMIO device passthrough management ioctls
...
IC_ASSIGN_MMIODEV -> ACRN_IOCTL_ASSIGN_MMIODEV
IC_DEASSIGN_MMIODEV -> ACRN_IOCTL_DEASSIGN_MMIODEV
struct acrn_mmiodev has slight change. Move struct acrn_mmiodev into
acrn_common.h because it is used by both DM and HV.
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
3625eb7a99
hv: dm: Use new pci device passthrough management ioctls
...
IC_ASSIGN_PCIDEV -> ACRN_IOCTL_ASSIGN_PCIDEV
IC_DEASSIGN_PCIDEV -> ACRN_IOCTL_DEASSIGN_PCIDEV
QUIRK_PTDEV -> ACRN_PTDEV_QUIRK_ASSIGN
struct acrn_assign_pcidev -> struct acrn_pcidev
Move struct acrn_pcidev into acrn_common.h because it is used by both
DM and HV.
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
9d67745037
dm: Use new ptdev interrupt management ioctls
...
IC_SET_PTDEV_INTR_INFO -> ACRN_IOCTL_SET_PTDEV_INTR
IC_RESET_PTDEV_INTR_INFO -> ACRN_IOCTL_RESET_PTDEV_INTR
struct ic_ptdev_irq -> struct acrn_ptdev_irq
IRQ_INTX -> ACRN_PTDEV_IRQ_INTX
IRQ_MSI -> ACRN_PTDEV_IRQ_MSI
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
7e01d90b87
dm: Use new memory management ioctls
...
struct vm_memmap -> struct acrn_vm_memmap
VM_MEMMAP_SYSMEM -> ACRN_MEMMAP_RAM
VM_MMIO -> ACRN_MEMMAP_MMIO
PROT_ALL -> ACRN_MEM_ACCESS_RWX
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
9c910bae44
hv: dm: Use new I/O request data structures
...
struct vhm_request -> struct acrn_io_request
union vhm_request_buffer -> struct acrn_io_request_buffer
struct pio_request -> struct acrn_pio_request
struct mmio_request -> struct acrn_mmio_request
struct ioreq_notify -> struct acrn_ioreq_notify
VHM_REQ_PIO_INVAL -> IOREQ_PIO_INVAL
VHM_REQ_MMIO_INVAL -> IOREQ_MMIO_INVAL
REQ_PORTIO -> ACRN_IOREQ_TYPE_PORTIO
REQ_MMIO -> ACRN_IOREQ_TYPE_MMIO
REQ_PCICFG -> ACRN_IOREQ_TYPE_PCICFG
REQ_WP -> ACRN_IOREQ_TYPE_WP
REQUEST_READ -> ACRN_IOREQ_DIR_READ
REQUEST_WRITE -> ACRN_IOREQ_DIR_WRITE
REQ_STATE_PROCESSING -> ACRN_IOREQ_STATE_PROCESSING
REQ_STATE_PENDING -> ACRN_IOREQ_STATE_PENDING
REQ_STATE_COMPLETE -> ACRN_IOREQ_STATE_COMPLETE
REQ_STATE_FREE -> ACRN_IOREQ_STATE_FREE
IC_CREATE_IOREQ_CLIENT -> ACRN_IOCTL_CREATE_IOREQ_CLIENT
IC_DESTROY_IOREQ_CLIENT -> ACRN_IOCTL_DESTROY_IOREQ_CLIENT
IC_ATTACH_IOREQ_CLIENT -> ACRN_IOCTL_ATTACH_IOREQ_CLIENT
IC_NOTIFY_REQUEST_FINISH -> ACRN_IOCTL_NOTIFY_REQUEST_FINISH
IC_CLEAR_VM_IOREQ -> ACRN_IOCTL_CLEAR_VM_IOREQ
HYPERVISOR_CALLBACK_VHM_VECTOR -> HYPERVISOR_CALLBACK_HSM_VECTOR
arch_fire_vhm_interrupt() -> arch_fire_hsm_interrupt()
get_vhm_notification_vector() -> get_hsm_notification_vector()
set_vhm_notification_vector() -> set_hsm_notification_vector()
acrn_vhm_notification_vector -> acrn_hsm_notification_vector
get_vhm_req_state() -> get_io_req_state()
set_vhm_req_state() -> set_io_req_state()
Below structures have slight difference with former ones.
struct acrn_ioreq_notify
strcut acrn_io_request
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
3c66ba7ef5
dm: Use new interrupt management ioctls
...
IC_INJECT_MSI -> ACRN_IOCTL_INJECT_MSI
IC_SET_IRQLINE -> ACRN_IOCTL_SET_IRQLINE
IC_VM_INTR_MONITOR -> ACRN_IOCTL_VM_INTR_MONITOR
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
107cae316a
hv: dm: Use new ioctl ACRN_IOCTL_SET_VCPU_REGS
...
struct acrn_set_vcpu_regs -> struct acrn_vcpu_regs
struct acrn_vcpu_regs -> struct acrn_regs
IC_SET_VCPU_REGS -> ACRN_IOCTL_SET_VCPU_REGS
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
f476ca55ab
hv: dm: Use new VM management ioctls
...
IC_CREATE_VM -> ACRN_IOCTL_CREATE_VM
IC_DESTROY_VM -> ACRN_IOCTL_DESTROY_VM
IC_START_VM -> ACRN_IOCTL_START_VM
IC_PAUSE_VM -> ACRN_IOCTL_PAUSE_VM
IC_RESET_VM -> ACRN_IOCTL_RESET_VM
struct acrn_create_vm -> struct acrn_vm_creation
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
3deb973b7a
dm: Use new ioctl ACRN_IOCTL_GET_PLATFORM_INFO
...
IC_GET_PLATFORM_INFO -> ACRN_IOCTL_GET_PLATFORM_INFO
struct acrn_vm_config -> struct acrn_vm_config_header(DM only)
struct platform_info -> struct acrn_platform_info
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00
Shuo A Liu
82fa2d6355
dm: Rename vhm_ioctl_defs.h to hsm_ioctl_defs.h
...
Tracked-On: #6282
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
2021-07-15 11:53:54 +08:00