mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-10 05:09:01 +00:00
hv: add hypercall to set vcpu init state
DM will use this hypercall to initialize the UOS BSP state. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -136,6 +136,22 @@ int32_t hcall_pause_vm(uint16_t vmid);
|
||||
*/
|
||||
int32_t hcall_create_vcpu(struct vm *vm, uint16_t vmid, uint64_t param);
|
||||
|
||||
/**
|
||||
* @brief set vcpu regs
|
||||
*
|
||||
* Set the vcpu regs. It will set the vcpu init regs from DM. Now,
|
||||
* it's only applied to BSP. AP always uses fixed init regs.
|
||||
* The function will return -1 if the targat VM or BSP doesn't exist.
|
||||
*
|
||||
* @param vm Pointer to VM data structure
|
||||
* @param vmid ID of the VM
|
||||
* @param param guest physical address. This gpa points to
|
||||
* struct acrn_vcpu_regs
|
||||
*
|
||||
* @return 0 on success, non-zero on error.
|
||||
*/
|
||||
int32_t hcall_set_vcpu_regs(struct vm *vm, uint16_t vmid, uint64_t param);
|
||||
|
||||
/**
|
||||
* @brief assert IRQ line
|
||||
*
|
||||
|
Reference in New Issue
Block a user