Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1742100ybg; Sat, 19 Oct 2019 01:31:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqysOtNeIPYJvD4dp/01jnf5ZJEOHrqmHTuWtZR6Xzvjup1j1CnBbhPuP7h00rbfcbxwhEk3 X-Received: by 2002:a05:6402:a4f:: with SMTP id bt15mr14111007edb.121.1571473886628; Sat, 19 Oct 2019 01:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473886; cv=none; d=google.com; s=arc-20160816; b=TzH1dXT26nh2Gm+dzh06PHTFUPqq51LAA6jhJqj2pVINSa0NgfthfPBr2Mw+nqLkXQ VsSkc4+glCn0UYQT2/6wMvCpm+274kqmFO5GOy5a60E7VqCCMlU4bW5jWOTeSpYvjeJ3 IVsIdhG6jg8zXV4YVjn/RBopI9YWDl5RTYzLE4OZotAPBpf62e4gFX4mDSKxJB+EPVj/ ujOxlWZdDth85JsWBSKjbhonUYcEMZzMpNy/b8FSN4nt85lsWGN/5L40twMUT1dSV4c9 P6r1v7Jm/+ZH0QcIgzuz2DBRyQ+Ig3cQWZfPXIhSu+25QAqrsW0C2lpAMRNNoFAjzy7N 6eNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:cc:to:from :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=9FdeX//RORLUFpjlpqzmkWcuma9KNw3Y4e/bxxikMGs=; b=N25Hw/W3vDWwhTu/bLrjbnxwjj2/4cNfhvYf/eKzCopGLPYoe/kh0dOZjvuTJapgvj oF2eA6T1WpOnVH7OHfxsAsjfJ9WY+HjVfxflLzNUGH7P0oWujt1U8DZ9dyALi0Ro3RbS 2BD1/QsWN7pL+8vaLSoCzUxhBVV1gagAhnaWdfrmlGlGZFpus+hFZr9skpBuAu1YJXIA ofkfXVqE+bUGwB6BLyEvILbphNv3amzMjFZgiSwySYK4BkOTj4DPWZafd9ckoVS12qLZ MxmbyvNhj4EXypy6loQimJsMZm8Tc4CYzsHbFqoli5KHrv3uf3zYyQQRHED/GnP2kWH8 ztFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mgZQm0sR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si4905822ejf.28.2019.10.19.01.31.03; Sat, 19 Oct 2019 01:31:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mgZQm0sR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633971AbfJROdd (ORCPT + 99 others); Fri, 18 Oct 2019 10:33:33 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44345 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729584AbfJROdd (ORCPT ); Fri, 18 Oct 2019 10:33:33 -0400 Received: by mail-pf1-f194.google.com with SMTP id q21so4002197pfn.11 for ; Fri, 18 Oct 2019 07:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:from:to:cc:subject:user-agent:date; bh=9FdeX//RORLUFpjlpqzmkWcuma9KNw3Y4e/bxxikMGs=; b=mgZQm0sR8WKQrmUO/Ec704rT1C8wtIciVL2b+nWpl29cgS7J33UQ+t7jNOVMR6jF+U HWGLTBl6M8wNDuU43rK33SZdn5y+IWVauGkxXFYBzcNcsiN5dQzXV/G31uWt17CosPZZ 0eGrFDR6iOrxg05bdnB8FmUzVEDvTXB2AZ19c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:from:to:cc:subject :user-agent:date; bh=9FdeX//RORLUFpjlpqzmkWcuma9KNw3Y4e/bxxikMGs=; b=OowDFJVcQuumpUlDooWDjIDjw5SCyra9HGJ38G1m9uQjEpz9OoD1LJAcY5c1UaV4Gw YuZaIi9IAzUXUxF4WS/195AQKHPLhRIkSrDgQCqSdwH0g2ws/pEka6+F15Rc4NW67HiM l+85/IxYkrWnd8Pc4TyGMh2zvUFtrJZVau9WBaDsLhTlySpNr9XyftLil/8BwuMaSkMZ dQs8oe2qR0ns3Y3PEnVN8q1oJXK2gDQDlI3keyQhbWck9Y5ESbDLA8ut0WZOkjBB17Rt h6T+/RP0x8J/PwxMebVgiJNAdyrAzyico2q27JRaHFi9XlAEbSPCnP1qeeEVieXaomSC HYFg== X-Gm-Message-State: APjAAAWlMTW7x2eHrqV5tUAfiz1dEpFiVKXMaF4d+hyojaofrFSSnF8J Z9IpwxBlvm045h1E4MFsxZK7mQ== X-Received: by 2002:a62:685:: with SMTP id 127mr7241020pfg.227.1571409211238; Fri, 18 Oct 2019 07:33:31 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id y22sm5468041pjn.12.2019.10.18.07.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 07:33:30 -0700 (PDT) Message-ID: <5da9cd3a.1c69fb81.95e9.e5e2@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20191011105010.GA29364@lakrids.cambridge.arm.com> <7910f428bd96834c15fb56262f3c10f8@codeaurora.org> <20191011143442.515659f4@why> <5da8c868.1c69fb81.ae709.97ff@mx.google.com> From: Stephen Boyd To: Marc Zyngier Cc: Sai Prakash Ranjan , Mark Rutland , rnayak@codeaurora.org, suzuki.poulose@arm.com, catalin.marinas@arm.com, linux-arm-kernel , linux-kernel@vger.kernel.org, jeremy.linton@arm.com, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, andrew.murray@arm.com, will@kernel.org, dave.martin@arm.com, linux-arm-kernel@lists.infradead.org, marc.w.gonzalez@free.fr Subject: Re: Relax CPU features sanity checking on heterogeneous architectures User-Agent: alot/0.8.1 Date: Fri, 18 Oct 2019 07:33:29 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Marc Zyngier (2019-10-18 00:20:56) >=20 > If this SoC is anythinig like SM8150, 32bit guests will be hit and=20 > miss, > depending on the CPU your guest runs on, or is migrated to. We need to > either drop capabilities from the 32bit-capable CPU, or prevent the > non-32bit capable CPU from booting if a 32bit guest has been started. >=20 > You just have to hope that the kernel is entered at EL2, and that QC's > "value add" has been moved somewhere else... >=20 Ok that's good.