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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5AAD1C4332F for ; Fri, 11 Nov 2022 17:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WZ9MQZUmVx+iGvOAEyWY1Ythm2mvyTj4pOb2yMmvPVI=; b=kItXF+MUV0Zx58 nZRzH3oeJLGpgrhRpxgS3gMb8a3IjUUHB51VyUMEurRhCj3AUCBwcc6z6I15a47HiFTUHFzEl9dhm SjtKgWegiDGleSpjj5y1rpV90r5RQGEo5jFtwJnOb7nyjorI1S4mUnxxZ1Z9xHnLJaZJAmWWu3cmR LLeUCT0Wo6JtU6P/oygpKVTqCXr4ajEmVhdo1Nkm04BjTDq9I5MTDK/C4sBdlwe5lHQ1cKt6hpRYw oklJNOs3rFxV9Juv2euA4ht13Lp5+okwS3NJUaE68qRo7BstVJIGudkyaDIXQFjw2DG3yJXP81IwE w5TixDpLnK66lSzPiiNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otXZW-00H7Ir-EL; Fri, 11 Nov 2022 17:12:06 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otXZS-00H7GG-U7 for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2022 17:12:04 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D8FAAB8267A; Fri, 11 Nov 2022 17:12:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B0BBC433D6; Fri, 11 Nov 2022 17:11:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668186719; bh=TdxutI1XV0aUY/REXRLlQEMl+uODGYf9T0Ad8c8nxgU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VDxHwGYqe8S/l8FYc1joK4hEgM/w1GVuLyVFG86I2OrVqmXmvDpsl7vl58cEbdgYk 8Ky9h/+IOCGm6oa88sRVIUJlyqpG1A44pYR/oOmfeEPJIClelvjxT26ESvemwrmIJT YV+h6OLAIPa/PMDZ33VMVezJkWQ4opqwq8Khu8SwGl8xFxR/KGvtwazYQWn+G6M2pI j+8Mqpz6R3MapLXW26Ga9N0ef/65S77oWZcjN0nf0PZzcNgTPbcDca5aaXHBTS+gBU NPMBK8e4+GnHyEQgLvxr8OO+NnJGbkUGjrvdaSmBc772h1HVci+ilFndHSFz5PmKb/ +17Nz2OV2lSbQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1otXZN-005Tbb-7n; Fri, 11 Nov 2022 17:11:57 +0000 Date: Fri, 11 Nov 2022 17:11:56 +0000 Message-ID: <86cz9tpg9v.wl-maz@kernel.org> From: Marc Zyngier To: Will Deacon Cc: kvmarm@lists.linux.dev, Sean Christopherson , Vincent Donnefort , Alexandru Elisei , Catalin Marinas , Philippe =?UTF-8?B?TWF0aGlldS1EYXVkw6k=?= , James Morse , Chao Peng , Quentin Perret , Suzuki K Poulose , Mark Rutland , Fuad Tabba , Oliver Upton , kernel-team@android.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 12/26] KVM: arm64: Add infrastructure to create and track pKVM instances at EL2 In-Reply-To: <20221110190259.26861-13-will@kernel.org> References: <20221110190259.26861-1-will@kernel.org> <20221110190259.26861-13-will@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: will@kernel.org, kvmarm@lists.linux.dev, seanjc@google.com, vdonnefort@google.com, alexandru.elisei@arm.com, catalin.marinas@arm.com, philmd@linaro.org, james.morse@arm.com, chao.p.peng@linux.intel.com, qperret@google.com, suzuki.poulose@arm.com, mark.rutland@arm.com, tabba@google.com, oliver.upton@linux.dev, kernel-team@android.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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-20221111_091203_279632_C8296629 X-CRM114-Status: GOOD ( 18.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 10 Nov 2022 19:02:45 +0000, Will Deacon wrote: > > From: Fuad Tabba > > Introduce a global table (and lock) to track pKVM instances at EL2, and > provide hypercalls that can be used by the untrusted host to create and > destroy pKVM VMs and their vCPUs. pKVM VM/vCPU state is directly > accessible only by the trusted hypervisor (EL2). > > Each pKVM VM is directly associated with an untrusted host KVM instance, > and is referenced by the host using an opaque handle. Future patches > will provide hypercalls to allow the host to initialize/set/get pKVM > VM/vCPU state using the opaque handle. > > Tested-by: Vincent Donnefort > Signed-off-by: Fuad Tabba > Co-developed-by: Will Deacon > Signed-off-by: Will Deacon [...] > +static void unmap_donated_memory_noclear(void *va, size_t size) > +{ > + if (!va) > + return; > + > + __unmap_donated_memory(va, size); > +} This triggers a warning that persist until patch #19 (unused static function) and breaks my build (I've enabled CONFIG_WERROR). I'm going to stick a __maybe_unused there, and drop it once it is used... M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel