diff --git a/devicemodel/arch/x86/pm.c b/devicemodel/arch/x86/pm.c index 32649741e..3b3a60685 100644 --- a/devicemodel/arch/x86/pm.c +++ b/devicemodel/arch/x86/pm.c @@ -192,7 +192,7 @@ void pm_backto_wakeup(struct vmctx *ctx) { /* According to ACPI 5.0 Table 4-16: bit 15, WAK_STS should be - * set when system trasition to the working state + * set when system transition to the working state */ pm1_status |= PM1_WAK_STS; } diff --git a/devicemodel/core/hugetlb.c b/devicemodel/core/hugetlb.c index d03527ce4..1978ba97e 100644 --- a/devicemodel/core/hugetlb.c +++ b/devicemodel/core/hugetlb.c @@ -446,7 +446,7 @@ static bool release_larger_freepage(int level_limit) if (hugetlb_priv[level].pages_delta >= 0) continue; - /* free one unsed larger page */ + /* free one un-used larger page */ orig_pages = read_sys_info(hugetlb_priv[level].nr_pages_path); total_pages = orig_pages - 1; snprintf(cmd_buf, MAX_PATH_LEN, "echo %d > %s", @@ -483,7 +483,7 @@ static bool release_larger_freepage(int level_limit) *.D.enough higher level free pages, but not enough free memory for * lower level gap pages, so release some higher level free pages for that. * other info: - *. even enough free memory, it is eaiser to reserve smaller pages than + *. even enough free memory, it is easier to reserve smaller pages than * lager ones, for example:2MB easier than 1GB. One flow of current solution: *.it could leave Service VM very small free memory. *.return value: true: success; false: failure @@ -507,8 +507,8 @@ static bool hugetlb_reserve_pages(void) /* probably system allocates fewer pages than needed * especially for larger page like 1GB, even there is enough - * free memory, it stil can fail to allocate 1GB huge page. - * so if that,it needs the next level to handle it. + * free memory, it still can fail to allocate 1GB huge page. + * so if that, it needs the next level to handle it. */ if (level > HUGETLB_LV1) { left_gap = hugetlb_priv[level].pages_delta; @@ -901,7 +901,7 @@ bool vm_allow_dmabuf(struct vmctx *ctx) } if (ctx->lowmem) { - /* Check the lowhmem is used by HUGETLB_LV1/HUGETLB_LV2 */ + /* Check the lowmem is used by HUGETLB_LV1/HUGETLB_LV2 */ mem_flags = 0; if ((hugetlb_priv[HUGETLB_LV1].fd > 0) && (hugetlb_priv[HUGETLB_LV1].lowmem)) diff --git a/devicemodel/core/iothread.c b/devicemodel/core/iothread.c index c572f04e1..d74c92c34 100644 --- a/devicemodel/core/iothread.c +++ b/devicemodel/core/iothread.c @@ -50,7 +50,7 @@ io_thread(void *arg) for (i = 0; i < n; i++) { aevp = eventlist[i].data.ptr; if (aevp && aevp->run) { - /* Mitigate the epoll_wait repeat cycles by reading out the events as more as possile.*/ + /* Mitigate the epoll_wait repeat cycles by reading out the events as more as possible.*/ do { status = read(aevp->fd, buf, sizeof(buf)); } while (status == MAX_EVENT_NUM); diff --git a/devicemodel/core/main.c b/devicemodel/core/main.c index 1521b60a7..37e8cc024 100644 --- a/devicemodel/core/main.c +++ b/devicemodel/core/main.c @@ -166,7 +166,7 @@ usage(int code) " -v: version\n" " --ovmf: ovmf file path\n" " --iasl: iasl compiler path\n" - " --ssram: Congfiure Software SRAM parameters\n" + " --ssram: Configure Software SRAM parameters\n" " --cpu_affinity: list of Service VM vCPUs assigned to this User VM, the vCPUs are" " identified by their local APIC IDs.\n" " --enable_trusty: enable trusty for guest\n" @@ -176,7 +176,7 @@ usage(int code) " --cmd_monitor: enable command monitor\n" " its params: unix domain socket path\n" " --virtio_poll: enable virtio poll mode with poll interval with ns\n" - " --acpidev_pt: acpi device ID args: HID in ACPI Table\n" + " --acpidev_pt: ACPI device ID args: HID in ACPI Table\n" " --mmiodev_pt: MMIO resources args: physical MMIO regions\n" " --vtpm2: Virtual TPM2 args: sock_path=$PATH_OF_SWTPM_SOCKET\n" " --lapic_pt: enable local apic passthrough\n" diff --git a/devicemodel/core/mevent.c b/devicemodel/core/mevent.c index 83356ed90..38df0059e 100644 --- a/devicemodel/core/mevent.c +++ b/devicemodel/core/mevent.c @@ -72,7 +72,7 @@ struct mevent { }; static LIST_HEAD(listhead, mevent) global_head; -/* List holds the mevent node which is requested to deleted */ +/* List holds the mevent node which is requested to be deleted */ static LIST_HEAD(del_listhead, mevent) del_head; static void