Received: from eggs.gnu.org ([209.51.188.92]:44371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLUdV-0004Oh-Lh for qemu-devel@nongnu.org; Tue, 30 Apr 2019 11:25:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLUdU-0007mM-Ow for qemu-devel@nongnu.org; Tue, 30 Apr 2019 11:25:37 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:46611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLUdU-0007kq-IF for qemu-devel@nongnu.org; Tue, 30 Apr 2019 11:25:36 -0400 Received: by mail-pg1-x541.google.com with SMTP id n2so6976684pgg.13 for ; Tue, 30 Apr 2019 08:25:35 -0700 (PDT) References: <20190330005900.17282-1-richard.henderson@linaro.org> <20190330005900.17282-3-richard.henderson@linaro.org> <920a0801-ed1d-23e8-9975-43d4d185707e@linaro.org> From: Richard Henderson Message-ID: <257d3eea-409c-6d2e-2384-d56f93f8d393@linaro.org> Date: Tue, 30 Apr 2019 08:25:28 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 2/4] linux-user: Set PAGE_TARGET_1 for TARGET_PROT_BTI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Ramana Radhakrishnan On 4/30/19 3:40 AM, Peter Maydell wrote: > On Mon, 29 Apr 2019 at 21:13, Richard Henderson > wrote: >> >> On 4/29/19 9:21 AM, Peter Maydell wrote: >>> This looks ok code-wise, but we'd need to hide it behind >>> a defaults-to-off x-something property if we wanted to >>> commit it before the kernel ABI is fixed. >> >> I'm not intending to change the user-level abi, only the >> internal abi within qemu, for handling of the elf notes. > > You're changing target_mmap(), which is used by the > guest mmap syscall, though, right? Yes, but it's also used by elfload.c to map the executable. > I think that we shouldn't allow guest binaries written > to the ad-hoc TARGET_PROT_BTI ABI to work without an > explicit x-something command line argument to QEMU... The guest binary is not written to an ad-hoc abi. It is written to the finalized ELF note abi, which I am trying to implement with a *private* QEMU abi. r~