[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 05/23] semihosting: enable chardev backed out
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v1 05/23] semihosting: enable chardev backed output |
Date: |
Fri, 10 May 2019 15:21:14 +0100 |
On Fri, 10 May 2019 at 15:05, Alex Bennée <address@hidden> wrote:
> Only for the first one though.. that said I'm sure the write string is
> leaking when we do gdb output with whatever lock_user_string is trying
> to achieve.
Yes, there looks like there's a leak there. (The fix is
complicated because we need to check whether the string
buffer is required to hang around until the asynchronous
gdb operation is finished and the arm_semi_cb is invoked,
or whether we can free it as soon as arm_gdb_syscall() returns.)
lock_user_string is basically "give me a host pointer to the
string at this address in guest memory":
* on softmmu, the 'lock' operation copies the contents of
guest memory into a local buffer, and 'unlock' then frees
the buffer (possibly copying the updated local buffer
contents back to the guest)
* on linux-user, 'lock' does the guest-addr-to-host-addr
conversion, and if DEBUG_REMAP is defined then it will
also copy it into a separate buffer (and unlock will
copy it back)
thanks
-- PMM
- Re: [Qemu-devel] [PATCH v1 02/23] tests/docker: Test more components on the Fedora default image, (continued)
Re: [Qemu-devel] [PATCH v1 05/23] semihosting: enable chardev backed output, Peter Maydell, 2019/05/10
[Qemu-devel] [PATCH v1 08/23] tests/tcg/multiarch: move the system memory test, Alex Bennée, 2019/05/09
[Qemu-devel] [PATCH v1 10/23] tests/tcg/multiarch: expand system memory test to cover more, Alex Bennée, 2019/05/09
[Qemu-devel] [PATCH v1 17/23] tests/qemu-iotests/check: Pick a default machine if necessary, Alex Bennée, 2019/05/09
[Qemu-devel] [PATCH v1 13/23] Makefile: fix coverage-report reference to BUILD_DIR, Alex Bennée, 2019/05/09
[Qemu-devel] [PATCH v1 09/23] tests/tcg/minilib: support %c format char, Alex Bennée, 2019/05/09