Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1055316pxu; Wed, 2 Dec 2020 09:53:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEUgrDLklH3lB8YobmniByWa29z0+3QTasC06ij5CMmX+dtSQhrmMDmnX3BmqDikpFceQV X-Received: by 2002:a05:6402:1acc:: with SMTP id ba12mr1079748edb.9.1606931638286; Wed, 02 Dec 2020 09:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606931638; cv=none; d=google.com; s=arc-20160816; b=TjVSyGyQ+FpwrYvA2x1hsnjJyt/i4vL/DbxEplw2LZmUU26go5W1AEJIU4nXFZDAdu iEP1VN6CS+vvSfNiWWZxmzXrVrV47Wr0TlHf5smvTRq6RpiwzPn3A4vipGCjxiMS9Sji W/8fvoImXc7r8KiqtCuWoLmnqgRcGoGGRzBlK9t/IfZQcXezQbCWwZ6aWlBvPGLxmFpx LuH3y4R55PxWdtBe07vfP+EiJkFo0YO/vSzc/gncNGO15HXSbSbgeD77Y7eizWnKnEz5 eWs9vgOGXsx6rL5sY42Jcje3vnQ0fE88Qe+hmEJTMxe9dr327poHmNuPdLxG3qAfoepK wrzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uk3nyFML1nxsvGC9LCY/1s44UaqHe8BVZ1ofT7x457I=; b=POMs/sgOLnJF1J2Lo9anbTtxNNSoNFduQMF5gmBBBfQdG0nBlpi4vBalgJTkws8UQW oqPYYYh3vRDV/In7iIqLgg2xrg5SExzAL8LwQaf9MKIx0FWN+PhgMh0jt+Z+6ZD0Gxdf pXMWMWKYtLYchbVDDqxZMCSxcaD3zVm4u+0ai8HS0u9VnV/H1wlpNCcyPKZLdiLJyNeN 6XYvnnAEBnNWaPJ+xv3RVd9YaDecicGGco7EoEso0waKIcss8JZ6jqog2fBqoXKIyFXH BrNXBvDL6VNF7A8/iz51aUqY07y7w8cXvXTLXmQ7rFP/jvviRSQNeKbXOVqQolcRVJfd CzKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XO2vQdH9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si407153ejp.228.2020.12.02.09.53.34; Wed, 02 Dec 2020 09:53:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XO2vQdH9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389303AbgLBRuC (ORCPT + 99 others); Wed, 2 Dec 2020 12:50:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387863AbgLBRuB (ORCPT ); Wed, 2 Dec 2020 12:50:01 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 473DCC0613D4 for ; Wed, 2 Dec 2020 09:49:21 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id s8so4943875wrw.10 for ; Wed, 02 Dec 2020 09:49:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=uk3nyFML1nxsvGC9LCY/1s44UaqHe8BVZ1ofT7x457I=; b=XO2vQdH95v1HgdI8fzNXcFmkx63nZT1kR7WW07T3iN8xawOcOSjMcaratXT62R6aol 18Exdx6tN6JQlynTpVUZwWTx5yEfKHqoUXJ8bp5ZP8r4TxRk36V18+/ACCyAmoetPExg ZhwuJ1VUm9FX8Tk3peri9lU3HFX5NozCPQXe8tUQi8I5wnwrKylWAmwqb7jEiKk0/PUt RA+9v3xK6ufqjU325zvSInvuQG7b6fKJz3s3f5OJPhxqbuBGwDkBUf1LXppH3UkSGxER OwcLDErcATCjMiaz7wGjjIGEuop04VGU2IBbBUBqQqdpTuKtFfCYhPUic/OCPb82mYON iQvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uk3nyFML1nxsvGC9LCY/1s44UaqHe8BVZ1ofT7x457I=; b=YN2hODeCFIQVdZBRBVziLtF6FzptFoyha1/KQscAy1GYke4U33meRTwUvpRHORj2KN z0iH7qAVQW3AqQ0vcMdBJwJ7tKnAfr79ySB420uEkiA7OfQ+kQPBWr6yVen6Er1mvNAl 48JkqUMkwClLNi5uRbreR4ECQNBCv5k9A0ea+lETFsonPJOFRcEasx68uAFyvttiFetV NdENDx+qMqudk9vy/EfMzM+Dq+tyHtvWgx4WkLoPdPyc0lbELXenSUHkDszxlg6RD4Jy WdkaKfJ0pfnNPweMZGof6eL0GCDiFcAhDzCAu5RS83xKtoL/A6nIIdVSXHIoK2ZomXCU 1RpA== X-Gm-Message-State: AOAM53392dp0spPYqsI4GfN/Vyc+O/+FeakHJnR10YewR2NyMpGy2URz gx0ds06VWtlxuQ7DpnuH3BPokQ== X-Received: by 2002:a5d:5482:: with SMTP id h2mr4962893wrv.18.1606931359793; Wed, 02 Dec 2020 09:49:19 -0800 (PST) Received: from google.com ([2a01:4b00:8523:2d03:5ddd:b7c5:e3c9:e87a]) by smtp.gmail.com with ESMTPSA id u23sm2973631wmc.32.2020.12.02.09.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 09:49:19 -0800 (PST) Date: Wed, 2 Dec 2020 17:49:17 +0000 From: David Brazdil To: Lorenzo Pieralisi Cc: kvmarm@lists.cs.columbia.edu, Jonathan Corbet , Catalin Marinas , Will Deacon , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Dennis Zhou , Tejun Heo , Christoph Lameter , Mark Rutland , Sudeep Holla , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-team@android.com Subject: Re: [PATCH v3 16/23] kvm: arm64: Forward safe PSCI SMCs coming from host Message-ID: <20201202174917.qey4ju2vrzipy4cn@google.com> References: <20201126155421.14901-1-dbrazdil@google.com> <20201126155421.14901-17-dbrazdil@google.com> <20201127101433.GA1061@e121166-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201127101433.GA1061@e121166-lin.cambridge.arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 27, 2020 at 10:14:33AM +0000, Lorenzo Pieralisi wrote: > On Thu, Nov 26, 2020 at 03:54:14PM +0000, David Brazdil wrote: > > Forward the following PSCI SMCs issued by host to EL3 as they do not > > require the hypervisor's intervention. This assumes that EL3 correctly > > implements the PSCI specification. > > > > Only function IDs implemented in Linux are included. > > > > Where both 32-bit and 64-bit variants exist, it is assumed that the host > > will always use the 64-bit variant. > > > > * SMCs that only return information about the system > > * PSCI_VERSION - PSCI version implemented by EL3 > > * PSCI_FEATURES - optional features supported by EL3 > > * AFFINITY_INFO - power state of core/cluster > > * MIGRATE_INFO_TYPE - whether Trusted OS can be migrated > > * MIGRATE_INFO_UP_CPU - resident core of Trusted OS > > * operations which do not affect the hypervisor > > * MIGRATE - migrate Trusted OS to a different core > > * SET_SUSPEND_MODE - toggle OS-initiated mode > > * system shutdown/reset > > * SYSTEM_OFF > > * SYSTEM_RESET > > * SYSTEM_RESET2 > > What about SYSTEM_SUSPEND ? Oops, forgot that one. Will add a handler similar to CPU_SUSPEND.