mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-04 22:47:00 +00:00
devicemodel: Fix spelling and grammar mistakes.
Tracked-On: #8498 Signed-off-by: Muhammad Qasim Abdul Majeed <qasim.majeed20@gmail.com>
This commit is contained in:
parent
97f6984453
commit
4396d8903a
devicemodel
@ -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;
|
||||
}
|
||||
|
@ -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))
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user