diff --git a/hypervisor/arch/x86/irq.c b/hypervisor/arch/x86/irq.c index f9e670815..b2fee20d8 100644 --- a/hypervisor/arch/x86/irq.c +++ b/hypervisor/arch/x86/irq.c @@ -40,10 +40,10 @@ static struct { }; /* - * alloc an vectror and bind it to irq + * allocate a vector and bind it to irq * for legacy_irq (irq num < 16) and static mapped ones, do nothing * if mapping is correct. - * retval: valid vector num on susccess, VECTOR_INVALID on failure. + * retval: valid vector number on success, VECTOR_INVALID on failure. */ uint32_t alloc_irq_vector(uint32_t irq) { @@ -66,7 +66,7 @@ uint32_t alloc_irq_vector(uint32_t irq) } } else { /* alloc a vector between: - * VECTOR_DYNAMIC_START ~ VECTOR_DYNAMC_END + * VECTOR_DYNAMIC_START ~ VECTOR_DYNAMIC_END */ for (vr = VECTOR_DYNAMIC_START; vr <= VECTOR_DYNAMIC_END; vr++) { diff --git a/hypervisor/arch/x86/lapic.c b/hypervisor/arch/x86/lapic.c index 6a194eadb..68bab1498 100644 --- a/hypervisor/arch/x86/lapic.c +++ b/hypervisor/arch/x86/lapic.c @@ -284,7 +284,7 @@ void send_single_init(uint16_t pcpu_id) /* * Intel SDM Vol3 23.8: * The INIT signal is blocked whenever a logical processor is in VMX root operation. - * It is not blocked in VMX nonroot operation. Instead, INITs cause VM exits + * It is not blocked in VMX non-root operation. Instead, INITs cause VM exits */ icr.value_32.hi_32 = per_cpu(lapic_id, pcpu_id); diff --git a/hypervisor/arch/x86/mmu.c b/hypervisor/arch/x86/mmu.c index 45f080017..c893bfa70 100644 --- a/hypervisor/arch/x86/mmu.c +++ b/hypervisor/arch/x86/mmu.c @@ -298,7 +298,7 @@ void init_paging(void) } /* - * set the paging-structure entries' U/S flag to supervisor-mode for hypervisor owned memroy. + * set the paging-structure entries' U/S flag to supervisor-mode for hypervisor owned memory. * (exclude the memory reserve for trusty) * * Before the new PML4 take effect in enable_paging(), HPA->HVA is always 1:1 mapping,