Skip to content

Commit 00bfde3

Browse files
jsun26intellijinxia
authored andcommitted
HV: rename resume_vm to start_vm in hypercall api
Currently we don't support resume VM in HC API, the real meaning of the code is to start VM. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 5e31e7c commit 00bfde3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

hypervisor/arch/x86/guest/vmcall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)
6262

6363
case HC_START_VM:
6464
/* param1: vmid */
65-
ret = hcall_resume_vm((uint16_t)param1);
65+
ret = hcall_start_vm((uint16_t)param1);
6666
break;
6767

6868
case HC_PAUSE_VM:

hypervisor/common/hypercall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ int32_t hcall_destroy_vm(uint16_t vmid)
209209
return ret;
210210
}
211211

212-
int32_t hcall_resume_vm(uint16_t vmid)
212+
int32_t hcall_start_vm(uint16_t vmid)
213213
{
214214
int32_t ret = 0;
215215
struct vm *target_vm = get_vm_from_vmid(vmid);

hypervisor/include/common/hypercall.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ int32_t hcall_create_vm(struct vm *vm, uint64_t param);
7777
int32_t hcall_destroy_vm(uint16_t vmid);
7878

7979
/**
80-
* @brief resume virtual machine
80+
* @brief start virtual machine
8181
*
82-
* Resume a virtual machine, it will schedule target VM's vcpu to run.
82+
* Start a virtual machine, it will schedule target VM's vcpu to run.
8383
* The function will return -1 if the target VM does not exist or the
8484
* IOReq buffer page for the VM is not ready.
8585
*
8686
* @param vmid ID of the VM
8787
*
8888
* @return 0 on success, non-zero on error.
8989
*/
90-
int32_t hcall_resume_vm(uint16_t vmid);
90+
int32_t hcall_start_vm(uint16_t vmid);
9191

9292
/**
9393
* @brief pause virtual machine

0 commit comments

Comments
 (0)