From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FB8BC55ABD for ; Wed, 11 Nov 2020 13:52:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BAF5D2072C for ; Wed, 11 Nov 2020 13:52:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="WvD1Kt0r" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727072AbgKKNwQ (ORCPT ); Wed, 11 Nov 2020 08:52:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:42122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbgKKNwJ (ORCPT ); Wed, 11 Nov 2020 08:52:09 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B6D702072C; Wed, 11 Nov 2020 13:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605102728; bh=vpzQhD31kZiz0Ds3ndWnHcNtFHrzT9rX+xjSS3L2qxs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WvD1Kt0rYFg9LPKQES5pJcwfYvw83ZpPUhh0NWExD5onFN9DyY3DuF/q61lUKfdpD CIoap2gAK2Q2fSkijiMy5U01a8voRmPb8f4kaqvbDtPWP8k/1FphdUqx4VNzfHAkiK WxDnceLo/UM3VrVCveroTBou4ju2eMynmawPEs5E= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kcqXe-009mGl-JM; Wed, 11 Nov 2020 13:52:06 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 11 Nov 2020 13:52:06 +0000 From: Marc Zyngier To: David Brazdil Cc: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, James Morse , Julien Thierry , Suzuki K Poulose , Catalin Marinas , Will Deacon , Dennis Zhou , Tejun Heo , Christoph Lameter , Mark Rutland , Lorenzo Pieralisi , Quentin Perret , Andrew Scull , Andrew Walbran , kernel-team@android.com Subject: Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map In-Reply-To: <20201111134527.ygzf5cm6qpdpcroo@google.com> References: <20201109113233.9012-1-dbrazdil@google.com> <20201109113233.9012-8-dbrazdil@google.com> <20201111130321.qalrzfabdonrwvsz@google.com> <15a580e6ac06294ead8859fba8f51deb@kernel.org> <20201111134527.ygzf5cm6qpdpcroo@google.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <3ed604d7837fa64ec7c4fe5920c57382@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: dbrazdil@google.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, will@kernel.org, dennis@kernel.org, tj@kernel.org, cl@linux.com, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, qperret@google.com, ascull@google.com, qwandor@google.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-11 13:45, David Brazdil wrote: > On Wed, Nov 11, 2020 at 01:29:29PM +0000, Marc Zyngier wrote: >> On 2020-11-11 13:03, David Brazdil wrote: >> > > > +/* >> > > > + * nVHE copy of data structures tracking available CPU cores. >> > > > + * Only entries for CPUs that were online at KVM init are populated. >> > > > + * Other CPUs should not be allowed to boot because their features were >> > > > + * not checked against the finalized system capabilities. >> > > > + */ >> > > > +u64 __ro_after_init __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] >> > > > = INVALID_HWID }; >> > > >> > > I'm not sure what __ro_after_init means once we get S2 isolation. >> > >> > It is stretching the definition of 'init' a bit, I know, but I don't see >> > what >> > your worry is about S2? The intention is to mark this read-only for >> > .hyp.text >> > at runtime. With S2, the host won't be able to write to it after KVM >> > init. >> > Obviously that's currently not the case. >> >> More importantly, EL2 can write to it at any time, which is the bit >> I'm >> worried >> about, as it makes the annotation misleading. > > EL2 can't, at least not accidentally. The hyp memory mapping is > PAGE_HYP_RO > (see patch 05). Ah, I obviously overlooked that. Thanks for setting me straight. > Shouldn't clash with include files. Where fixing the kernel might clash > is > all the users of for_each_*_cpu that use an int for the iterator var. I don't think that's a problem (nobody expects that many CPUs). But if you are confident that we don't have a problem, no need to change the kernel itself. M. -- Jazz is not dead. It just smells funny... From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14D32C388F9 for ; Wed, 11 Nov 2020 13:52:17 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 234622072C for ; Wed, 11 Nov 2020 13:52:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="WvD1Kt0r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 234622072C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 6A6C64B9DD; Wed, 11 Nov 2020 08:52:15 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@kernel.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LO0a9rXN6HTh; Wed, 11 Nov 2020 08:52:13 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 83A3E4B9D6; Wed, 11 Nov 2020 08:52:13 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 766DA4B9C8 for ; Wed, 11 Nov 2020 08:52:11 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gz0vnq6I-scd for ; Wed, 11 Nov 2020 08:52:10 -0500 (EST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 661714B9C6 for ; Wed, 11 Nov 2020 08:52:10 -0500 (EST) Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B6D702072C; Wed, 11 Nov 2020 13:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605102728; bh=vpzQhD31kZiz0Ds3ndWnHcNtFHrzT9rX+xjSS3L2qxs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WvD1Kt0rYFg9LPKQES5pJcwfYvw83ZpPUhh0NWExD5onFN9DyY3DuF/q61lUKfdpD CIoap2gAK2Q2fSkijiMy5U01a8voRmPb8f4kaqvbDtPWP8k/1FphdUqx4VNzfHAkiK WxDnceLo/UM3VrVCveroTBou4ju2eMynmawPEs5E= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kcqXe-009mGl-JM; Wed, 11 Nov 2020 13:52:06 +0000 MIME-Version: 1.0 Date: Wed, 11 Nov 2020 13:52:06 +0000 From: Marc Zyngier To: David Brazdil Subject: Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map In-Reply-To: <20201111134527.ygzf5cm6qpdpcroo@google.com> References: <20201109113233.9012-1-dbrazdil@google.com> <20201109113233.9012-8-dbrazdil@google.com> <20201111130321.qalrzfabdonrwvsz@google.com> <15a580e6ac06294ead8859fba8f51deb@kernel.org> <20201111134527.ygzf5cm6qpdpcroo@google.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <3ed604d7837fa64ec7c4fe5920c57382@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: dbrazdil@google.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, will@kernel.org, dennis@kernel.org, tj@kernel.org, cl@linux.com, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, qperret@google.com, ascull@google.com, qwandor@google.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Cc: kernel-team@android.com, Lorenzo Pieralisi , Andrew Walbran , Catalin Marinas , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tejun Heo , Dennis Zhou , Christoph Lameter , Will Deacon , kvmarm@lists.cs.columbia.edu X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On 2020-11-11 13:45, David Brazdil wrote: > On Wed, Nov 11, 2020 at 01:29:29PM +0000, Marc Zyngier wrote: >> On 2020-11-11 13:03, David Brazdil wrote: >> > > > +/* >> > > > + * nVHE copy of data structures tracking available CPU cores. >> > > > + * Only entries for CPUs that were online at KVM init are populated. >> > > > + * Other CPUs should not be allowed to boot because their features were >> > > > + * not checked against the finalized system capabilities. >> > > > + */ >> > > > +u64 __ro_after_init __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] >> > > > = INVALID_HWID }; >> > > >> > > I'm not sure what __ro_after_init means once we get S2 isolation. >> > >> > It is stretching the definition of 'init' a bit, I know, but I don't see >> > what >> > your worry is about S2? The intention is to mark this read-only for >> > .hyp.text >> > at runtime. With S2, the host won't be able to write to it after KVM >> > init. >> > Obviously that's currently not the case. >> >> More importantly, EL2 can write to it at any time, which is the bit >> I'm >> worried >> about, as it makes the annotation misleading. > > EL2 can't, at least not accidentally. The hyp memory mapping is > PAGE_HYP_RO > (see patch 05). Ah, I obviously overlooked that. Thanks for setting me straight. > Shouldn't clash with include files. Where fixing the kernel might clash > is > all the users of for_each_*_cpu that use an int for the iterator var. I don't think that's a problem (nobody expects that many CPUs). But if you are confident that we don't have a problem, no need to change the kernel itself. M. -- Jazz is not dead. It just smells funny... _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D6D3C388F9 for ; Wed, 11 Nov 2020 13:53:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F3DE12072C for ; Wed, 11 Nov 2020 13:53:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SMs+0MYE"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="WvD1Kt0r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3DE12072C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=duDJXNcQHwFKibTNpALP3MLQQbaT66ZGatxDeMJN0VI=; b=SMs+0MYECmBHgC5ApKewbx6jm 0P5RaiF7Wn97hcu1CztHnIl9LCo3xrjfytiYOPRwjArW5swgQj0Hidno4XpVhnt+Yq+aJ+XIq5xxT YintZz8Hsoaip8zc5KTvya5m3/682PpCdjip719PQPts0Ot5bxmpLiZwPQrSkqugQ/HsB/T1rp4T7 pTh3Crscej8WF4XPlgGhconJomk7O7BtcrFURLMzDO1MYEKGkzXRcgzdtbEiiggEepB9u7MW7ft95 Bd8F8WkfPJlvhZawIBpu+BSk8uS6MJLMptUsDYhBtGBSI9zBnRaWk/gj0Re4PQD1QH+ARySH8XBVa 8OA2gM0RQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcqXl-00017b-J0; Wed, 11 Nov 2020 13:52:13 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcqXi-000173-8l for linux-arm-kernel@lists.infradead.org; Wed, 11 Nov 2020 13:52:11 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B6D702072C; Wed, 11 Nov 2020 13:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605102728; bh=vpzQhD31kZiz0Ds3ndWnHcNtFHrzT9rX+xjSS3L2qxs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WvD1Kt0rYFg9LPKQES5pJcwfYvw83ZpPUhh0NWExD5onFN9DyY3DuF/q61lUKfdpD CIoap2gAK2Q2fSkijiMy5U01a8voRmPb8f4kaqvbDtPWP8k/1FphdUqx4VNzfHAkiK WxDnceLo/UM3VrVCveroTBou4ju2eMynmawPEs5E= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kcqXe-009mGl-JM; Wed, 11 Nov 2020 13:52:06 +0000 MIME-Version: 1.0 Date: Wed, 11 Nov 2020 13:52:06 +0000 From: Marc Zyngier To: David Brazdil Subject: Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map In-Reply-To: <20201111134527.ygzf5cm6qpdpcroo@google.com> References: <20201109113233.9012-1-dbrazdil@google.com> <20201109113233.9012-8-dbrazdil@google.com> <20201111130321.qalrzfabdonrwvsz@google.com> <15a580e6ac06294ead8859fba8f51deb@kernel.org> <20201111134527.ygzf5cm6qpdpcroo@google.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <3ed604d7837fa64ec7c4fe5920c57382@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: dbrazdil@google.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, will@kernel.org, dennis@kernel.org, tj@kernel.org, cl@linux.com, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, qperret@google.com, ascull@google.com, qwandor@google.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201111_085210_541932_E5408B31 X-CRM114-Status: GOOD ( 22.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , kernel-team@android.com, Lorenzo Pieralisi , Andrew Walbran , Suzuki K Poulose , Catalin Marinas , Quentin Perret , linux-kernel@vger.kernel.org, James Morse , linux-arm-kernel@lists.infradead.org, Tejun Heo , Dennis Zhou , Christoph Lameter , Will Deacon , kvmarm@lists.cs.columbia.edu, Julien Thierry , Andrew Scull Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2020-11-11 13:45, David Brazdil wrote: > On Wed, Nov 11, 2020 at 01:29:29PM +0000, Marc Zyngier wrote: >> On 2020-11-11 13:03, David Brazdil wrote: >> > > > +/* >> > > > + * nVHE copy of data structures tracking available CPU cores. >> > > > + * Only entries for CPUs that were online at KVM init are populated. >> > > > + * Other CPUs should not be allowed to boot because their features were >> > > > + * not checked against the finalized system capabilities. >> > > > + */ >> > > > +u64 __ro_after_init __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] >> > > > = INVALID_HWID }; >> > > >> > > I'm not sure what __ro_after_init means once we get S2 isolation. >> > >> > It is stretching the definition of 'init' a bit, I know, but I don't see >> > what >> > your worry is about S2? The intention is to mark this read-only for >> > .hyp.text >> > at runtime. With S2, the host won't be able to write to it after KVM >> > init. >> > Obviously that's currently not the case. >> >> More importantly, EL2 can write to it at any time, which is the bit >> I'm >> worried >> about, as it makes the annotation misleading. > > EL2 can't, at least not accidentally. The hyp memory mapping is > PAGE_HYP_RO > (see patch 05). Ah, I obviously overlooked that. Thanks for setting me straight. > Shouldn't clash with include files. Where fixing the kernel might clash > is > all the users of for_each_*_cpu that use an int for the iterator var. I don't think that's a problem (nobody expects that many CPUs). But if you are confident that we don't have a problem, no need to change the kernel itself. M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel