]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
target/arm/arm-semi: Don't let the guest close stdin/stdout/stderr
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jan 2020 16:02:01 +0000 (16:02 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jan 2020 16:02:01 +0000 (16:02 +0000)
commit16ab12a936ef96b25be7f5981c96548fa772f3df
treef0e22448b6c115ae3e4d7bb9d9e7f56e6820bfac
parentea4d7ab5d927baa96b940bcbbdf3b2971cf6b9ab
target/arm/arm-semi: Don't let the guest close stdin/stdout/stderr

The guest can use the semihosting API to open a handle
corresponding to QEMU's own stdin, stdout, or stderr.
When the guest closes this handle, we should not
close the underlying host stdin/stdout/stderr
the way we would do if the handle corresponded to
a host fd we'd opened on behalf of the guest in SYS_OPEN.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200124172954.28481-1-peter.maydell@linaro.org
target/arm/arm-semi.c