[REFACTOR] Hafnium style: capitalize CPU, vCPU, and VM.
Change-Id: I6090deee0f52737653f5b18c09a1c64cadd38c8c
diff --git a/src/api.c b/src/api.c
index 7aa573c..d8ced97 100644
--- a/src/api.c
+++ b/src/api.c
@@ -133,7 +133,7 @@
/**
* Puts the current vCPU in wait for interrupt mode, and returns to the primary
- * vm.
+ * VM.
*/
struct vcpu *api_wait_for_interrupt(struct vcpu *current)
{
@@ -539,7 +539,7 @@
goto out;
}
- /* The requested vcpu must exist. */
+ /* The requested vCPU must exist. */
if (vcpu_idx >= vm->vcpu_count) {
goto out;
}
@@ -571,7 +571,7 @@
arch_timer_mask(&vcpu->regs);
}
- /* Switch to the vcpu. */
+ /* Switch to the vCPU. */
*next = vcpu;
/*
@@ -1119,7 +1119,7 @@
goto out;
}
- /* Switch back to primary vm to block. */
+ /* Switch back to primary VM to block. */
{
struct spci_value run_return = {
.func = SPCI_MSG_WAIT_32,
@@ -1192,7 +1192,7 @@
return -1;
}
- /* Check if there are outstanding notifications from given vm. */
+ /* Check if there are outstanding notifications from given VM. */
locked = vm_lock(vm);
entry = api_fetch_waiter(locked);
vm_unlock(&locked);