From patchwork Wed Nov 15 20:55:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 743990 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2966610wrw; Wed, 15 Nov 2023 12:57:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOM8DITPaps/i5gs/y0t8gQn/XRO+2CTmbvBsaRgF6+7OAskpuXx4um5yZnphIjwQm20nh X-Received: by 2002:a0c:f84a:0:b0:672:2989:589c with SMTP id g10-20020a0cf84a000000b006722989589cmr6038433qvo.27.1700081855123; Wed, 15 Nov 2023 12:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700081855; cv=none; d=google.com; s=arc-20160816; b=wtvlJbh28XTlLmhCjnWMokodwgGW9fnFo4ExgA3El/xnGRNWChC2mw8wBQxXbkP55l tuJ9TgYudcq8WNbXpHZUhzjjMdWv4R2uiZ7YMJEkyXqBxKTosxlw8Iqb9gDN5Lhr09Jc uxkRnDoG7Gv9Pb3fW1J1gwam5CHkSLa5bLXoapwF/xA6RA0ycBXaPzc3iBFM563sTEHy awBreqOJrP1DMBFUOP7QB8jebshqewg+ufys441ndxaYt1oxOQfHdUNTmhKKJP1siU8z 7rO5z65BiR86997Bg3J6YXEBoGb7KQYFumJDnTf3gYI5PynJIgyQDWLpmlmH0DJRFMyl vBSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/Am29rNstmoBjPWHdKzUHbk8KZyMNjdmqHD061pd8s4=; fh=VX240Z2IZJQtf5WSWx5doHfPl1phoYGIiN62laV0qLc=; b=ZbwVvrO9qDeoW9Wc6OU2VNeJKktSyxLnkQ+g0m5jAdjMgHAp8Hv0QTdFtRT2vZ0biO yBL/NtgY3Rjfwk7U1kOYZpDdWvv+BewN064xmm/gZJbGfOu1UsUDBvidRrg0A7fo3yEL xJaOW6l/7Hl4xBF2waOCwyt3ZdRbmLRNLFqUVXiErqO1LUon9WGEAOXb3gqc97SD/aQN PHT7gvxlGFH93EtHbP+fozBwDXVxmzKrmGGHLDlHJN4W+bEoJu74rLNRJ9hce37hLHWI +Cuio9BzIqgTP0RKjvmFah6sPQHtwpdrkYIj/v4ytmxOkRLvoZxz3H1mC0n6vchfj3xr RIJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MNh1Tzrd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u9-20020a0cc489000000b0066d14432c26si10441021qvi.146.2023.11.15.12.57.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2023 12:57:35 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MNh1Tzrd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3MvY-0004qy-1T; Wed, 15 Nov 2023 15:56:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3MvT-0004mH-M7 for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:57 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3MvO-00089n-FG for qemu-devel@nongnu.org; Wed, 15 Nov 2023 15:55:53 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-32dc9ff4a8fso71916f8f.1 for ; Wed, 15 Nov 2023 12:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700081747; x=1700686547; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/Am29rNstmoBjPWHdKzUHbk8KZyMNjdmqHD061pd8s4=; b=MNh1TzrdudRIV24c4MHDEciQmvcGLfxfkDi52eH9a+0dcmNsIXNSYb78ss7Er4owN/ gRlidaANjkH6X4nbGLC7gCJwOD/5HolLMxkA1gVQB6wWwW9o79eB6tfoGGAwtB/xMBk4 al5JMFla/11tbDMfhdTMbW2Io0mO6xlOCQRGEfbd28JBWUpopkOiPYR2REyWMztiQWg/ Yum7PC+ESwkYGB2CC+78fuYd9pyoOf1YLrXtZorNbJOfXS+DmPvjja5KzucOc7Qr+aQZ 4INIaBrZks96i52SdcQHdrBuOE3qqm1Jm++SZvZJkpKAPXV/Rkpwh1AWmpf+kI5BqLi8 wWqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700081747; x=1700686547; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/Am29rNstmoBjPWHdKzUHbk8KZyMNjdmqHD061pd8s4=; b=sd2Jp4Svd7sHhOpUP+LBOYnH1bROCOPmQK+HYjoOUVGqPtGX2GB9EJmmjrQMXfJaSX 2hF0+jjoBZUSjgS9wgNLWtWIjkDWPa878gIP+998buRNxxzVv0YeKZ2UqihqlujSC4T0 I16O8TiiAWl5ZlgguusS8qGaJEAPokGSQAEu4NwbJRvNyXxBcVW/3sDXbmnnu1THtYmr noINJOJpOSz8945I77N3xAZNrjVhCtfRYiTJHpomgmjdsLvQRw6w093+CPcLVhn2B1TP AbRSXaLDephXxarZIjw/XUgWUB8+wwjrc/p33ldxDrn543RGKTanphOCdMqOJsdfds/o X0Og== X-Gm-Message-State: AOJu0Yz01rZKN2z3s7/2cewVnKHE0DUXWTpqZBNzSJ+0CaJtQPXjE090 27NCaD5wLeEAj9piKmAK+lNn3g== X-Received: by 2002:a05:6000:188b:b0:32d:701b:a585 with SMTP id a11-20020a056000188b00b0032d701ba585mr12297923wri.69.1700081747300; Wed, 15 Nov 2023 12:55:47 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id j16-20020a056000125000b0032f983f7306sm11470293wrx.78.2023.11.15.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 12:55:46 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 4D8435F7B6; Wed, 15 Nov 2023 20:55:43 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Thomas Huth , Peter Maydell , Beraldo Leal , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Alexandre Iooss Subject: [PATCH 06/10] docs/emulation: expand warning about semihosting Date: Wed, 15 Nov 2023 20:55:38 +0000 Message-Id: <20231115205542.3092038-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231115205542.3092038-1-alex.bennee@linaro.org> References: <20231115205542.3092038-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org A surprising feature of calls like SYS_READC is this can cause QEMU to indefinitely block as there is no handling for EOF. Clarifies: https://gitlab.com/qemu-project/qemu/-/issues/1963 Signed-off-by: Alex Bennée --- docs/about/emulation.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/about/emulation.rst b/docs/about/emulation.rst index 0ad0b86f0d..a2eefe3f3f 100644 --- a/docs/about/emulation.rst +++ b/docs/about/emulation.rst @@ -129,8 +129,9 @@ causing most hypervisors to trap and fault on them. .. warning:: Semihosting inherently bypasses any isolation there may be between the guest and the host. As a result a program using semihosting can - happily trash your host system. You should only ever run trusted - code with semihosting enabled. + happily trash your host system. Some semihosting calls (e.g. + ``SYS_READC``) can block execution indefinitely. You should only + ever run trusted code with semihosting enabled. Redirection ~~~~~~~~~~~