summary refs log tree commit diff stats
path: root/python/qemu/utils/qom_common.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-07-25 15:05:14 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-07-29 09:48:01 +0100
commit45704e89047fc0a151c5909f006d8757140f23d6 (patch)
tree18a1799ade53c5fbc89d73e7c412019f9833a9a1 /python/qemu/utils/qom_common.py
parentaed04e6357fa10735c43574ea67a9551580d6e82 (diff)
downloadfocaccia-qemu-45704e89047fc0a151c5909f006d8757140f23d6.tar.gz
focaccia-qemu-45704e89047fc0a151c5909f006d8757140f23d6.zip
semihosting: Don't copy buffer after console_write()
The console_write() semihosting function outputs guest data from a
buffer; it doesn't update that buffer.  It therefore doesn't need to
pass a length value to unlock_user(), but can pass 0, meaning "do not
copy any data back to the guest memory".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220719121110.225657-3-peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220725140520.515340-8-alex.bennee@linaro.org>
Diffstat (limited to 'python/qemu/utils/qom_common.py')
0 files changed, 0 insertions, 0 deletions