[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 25/34] linux-user/elfload: add extra logging for hole find
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v1 25/34] linux-user/elfload: add extra logging for hole finding |
Date: |
Mon, 10 Jan 2022 10:53:44 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 |
On 1/5/22 14:50, Alex Bennée wrote:
> The various approaches to finding memory holes are quite complicated
> to follow especially at a distance. Improve the logging so we can see
> exactly what method found the space for the guest memory.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> linux-user/elfload.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
> @@ -2391,6 +2403,9 @@ static void pgb_static(const char *image_name,
> abi_ulong orig_loaddr,
> }
>
> guest_base = addr;
> +
> + qemu_log_mask(CPU_LOG_PAGE, "%s: base @ %"PRIxPTR" for %" PRIdPTR"
> bytes\n",
> + __func__, addr, hiaddr - loaddr);
TIL PRIxPTR / PRIdPTR!
> }
>
> static void pgb_dynamic(const char *image_name, long align)
> @@ -2447,6 +2462,9 @@ static void pgb_reserved_va(const char *image_name,
> abi_ulong guest_loaddr,
> "using -R option)", reserved_va, test, strerror(errno));
> exit(EXIT_FAILURE);
> }
> +
> + qemu_log_mask(CPU_LOG_PAGE, "%s: base @ %p for %ld bytes\n",
"for %lu bytes", otherwise:
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> + __func__, addr, reserved_va);
> }
>
> void probe_guest_base(const char *image_name, abi_ulong guest_loaddr,
- [PATCH v1 21/34] hw/arm: add control knob to disable kaslr_seed via DTB, (continued)
- [PATCH v1 21/34] hw/arm: add control knob to disable kaslr_seed via DTB, Alex Bennée, 2022/01/05
- [PATCH v1 20/34] tests/docker: add libfuse3 development headers, Alex Bennée, 2022/01/05
- [PATCH v1 18/34] tests/docker: auto-generate alpine.docker with lcitool, Alex Bennée, 2022/01/05
- [PATCH v1 13/34] tests/docker: remove ubuntu.docker container, Alex Bennée, 2022/01/05
- [PATCH v1 25/34] linux-user/elfload: add extra logging for hole finding, Alex Bennée, 2022/01/05
- [PATCH v1 17/34] tests/docker: fully expand the alpine package list, Alex Bennée, 2022/01/05
- [PATCH v1 16/34] tests/docker: fix sorting of alpine image package lists, Alex Bennée, 2022/01/05
- [PATCH v1 26/34] linux-user: don't adjust base of found hole, Alex Bennée, 2022/01/05
- [PATCH v1 22/34] monitor: move x-query-profile into accel/tcg to fix build, Alex Bennée, 2022/01/05