Lines Matching +full:gpa +full:- +full:0
1 /* SPDX-License-Identifier: GPL-2.0 */
14 #define HC_ID 0x80UL
16 #define HC_ID_GEN_BASE 0x0UL
17 #define HC_SOS_REMOVE_CPU _HC_ID(HC_ID, HC_ID_GEN_BASE + 0x01)
19 #define HC_ID_VM_BASE 0x10UL
20 #define HC_CREATE_VM _HC_ID(HC_ID, HC_ID_VM_BASE + 0x00)
21 #define HC_DESTROY_VM _HC_ID(HC_ID, HC_ID_VM_BASE + 0x01)
22 #define HC_START_VM _HC_ID(HC_ID, HC_ID_VM_BASE + 0x02)
23 #define HC_PAUSE_VM _HC_ID(HC_ID, HC_ID_VM_BASE + 0x03)
24 #define HC_RESET_VM _HC_ID(HC_ID, HC_ID_VM_BASE + 0x05)
25 #define HC_SET_VCPU_REGS _HC_ID(HC_ID, HC_ID_VM_BASE + 0x06)
27 #define HC_ID_IRQ_BASE 0x20UL
28 #define HC_INJECT_MSI _HC_ID(HC_ID, HC_ID_IRQ_BASE + 0x03)
29 #define HC_VM_INTR_MONITOR _HC_ID(HC_ID, HC_ID_IRQ_BASE + 0x04)
30 #define HC_SET_IRQLINE _HC_ID(HC_ID, HC_ID_IRQ_BASE + 0x05)
32 #define HC_ID_IOREQ_BASE 0x30UL
33 #define HC_SET_IOREQ_BUFFER _HC_ID(HC_ID, HC_ID_IOREQ_BASE + 0x00)
34 #define HC_NOTIFY_REQUEST_FINISH _HC_ID(HC_ID, HC_ID_IOREQ_BASE + 0x01)
36 #define HC_ID_MEM_BASE 0x40UL
37 #define HC_VM_SET_MEMORY_REGIONS _HC_ID(HC_ID, HC_ID_MEM_BASE + 0x02)
39 #define HC_ID_PCI_BASE 0x50UL
40 #define HC_SET_PTDEV_INTR _HC_ID(HC_ID, HC_ID_PCI_BASE + 0x03)
41 #define HC_RESET_PTDEV_INTR _HC_ID(HC_ID, HC_ID_PCI_BASE + 0x04)
42 #define HC_ASSIGN_PCIDEV _HC_ID(HC_ID, HC_ID_PCI_BASE + 0x05)
43 #define HC_DEASSIGN_PCIDEV _HC_ID(HC_ID, HC_ID_PCI_BASE + 0x06)
44 #define HC_ASSIGN_MMIODEV _HC_ID(HC_ID, HC_ID_PCI_BASE + 0x07)
45 #define HC_DEASSIGN_MMIODEV _HC_ID(HC_ID, HC_ID_PCI_BASE + 0x08)
46 #define HC_CREATE_VDEV _HC_ID(HC_ID, HC_ID_PCI_BASE + 0x09)
47 #define HC_DESTROY_VDEV _HC_ID(HC_ID, HC_ID_PCI_BASE + 0x0A)
49 #define HC_ID_PM_BASE 0x80UL
50 #define HC_PM_GET_CPU_STATE _HC_ID(HC_ID, HC_ID_PM_BASE + 0x00)
53 * hcall_sos_remove_cpu() - Remove a vCPU of Service VM
56 * Return: 0 on success, <0 on failure
64 * hcall_create_vm() - Create a User VM
65 * @vminfo: Service VM GPA of info of User VM creation
67 * Return: 0 on success, <0 on failure
75 * hcall_start_vm() - Start a User VM
78 * Return: 0 on success, <0 on failure
86 * hcall_pause_vm() - Pause a User VM
89 * Return: 0 on success, <0 on failure
97 * hcall_destroy_vm() - Destroy a User VM
100 * Return: 0 on success, <0 on failure
108 * hcall_reset_vm() - Reset a User VM
111 * Return: 0 on success, <0 on failure
119 * hcall_set_vcpu_regs() - Set up registers of virtual CPU of a User VM
121 * @regs_state: Service VM GPA of registers state
123 * Return: 0 on success, <0 on failure
131 * hcall_inject_msi() - Deliver a MSI interrupt to a User VM
133 * @msi: Service VM GPA of MSI message
135 * Return: 0 on success, <0 on failure
143 * hcall_vm_intr_monitor() - Set a shared page for User VM interrupt statistics
145 * @addr: Service VM GPA of the shared page
147 * Return: 0 on success, <0 on failure
155 * hcall_set_irqline() - Set or clear an interrupt line
157 * @op: Service VM GPA of interrupt line operations
159 * Return: 0 on success, <0 on failure
167 * hcall_set_ioreq_buffer() - Set up the shared buffer for I/O Requests.
169 * @buffer: Service VM GPA of the shared buffer
171 * Return: 0 on success, <0 on failure
179 * hcall_notify_req_finish() - Notify ACRN Hypervisor of I/O request completion.
183 * Return: 0 on success, <0 on failure
191 * hcall_set_memory_regions() - Inform the hypervisor to set up EPT mappings
192 * @regions_pa: Service VM GPA of &struct vm_memory_region_batch
194 * Return: 0 on success, <0 on failure
202 * hcall_create_vdev() - Create a virtual device for a User VM
204 * @addr: Service VM GPA of the &struct acrn_vdev
206 * Return: 0 on success, <0 on failure
214 * hcall_destroy_vdev() - Destroy a virtual device of a User VM
216 * @addr: Service VM GPA of the &struct acrn_vdev
218 * Return: 0 on success, <0 on failure
226 * hcall_assign_mmiodev() - Assign a MMIO device to a User VM
228 * @addr: Service VM GPA of the &struct acrn_mmiodev
230 * Return: 0 on success, <0 on failure
238 * hcall_deassign_mmiodev() - De-assign a PCI device from a User VM
240 * @addr: Service VM GPA of the &struct acrn_mmiodev
242 * Return: 0 on success, <0 on failure
250 * hcall_assign_pcidev() - Assign a PCI device to a User VM
252 * @addr: Service VM GPA of the &struct acrn_pcidev
254 * Return: 0 on success, <0 on failure
262 * hcall_deassign_pcidev() - De-assign a PCI device from a User VM
264 * @addr: Service VM GPA of the &struct acrn_pcidev
266 * Return: 0 on success, <0 on failure
274 * hcall_set_ptdev_intr() - Configure an interrupt for an assigned PCI device.
276 * @irq: Service VM GPA of the &struct acrn_ptdev_irq
278 * Return: 0 on success, <0 on failure
286 * hcall_reset_ptdev_intr() - Reset an interrupt for an assigned PCI device.
288 * @irq: Service VM GPA of the &struct acrn_ptdev_irq
290 * Return: 0 on success, <0 on failure
298 * hcall_get_cpu_state() - Get P-states and C-states info from the hypervisor
299 * @state: Service VM GPA of buffer of P-states and C-states