Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1870704ybe; Sat, 7 Sep 2019 04:36:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZKzjBOVL5EPkwxXtFf4NOS3q3wR5FYGAOpwW9VKNxZlE6AHgWjvZc/TMR144KprYr2dHM X-Received: by 2002:a17:90a:a6e:: with SMTP id o101mr15139375pjo.71.1567856214717; Sat, 07 Sep 2019 04:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567856214; cv=none; d=google.com; s=arc-20160816; b=AcH/jyVDt6Y0j65hLA7Qc58u/AaN1p4R3szI6UStPyMAXQguNKefUpq65m8QFUEuP4 SDbGxMdQIFhokcyhuledQpPf2hfIcoBe9FmRfiBsu/EUPL/bp5+gDz35/tkqPIUa4kaW MjouGaGVQgpUB1d4phhY13+kyHbTTfc0x+P0+9+lHzEol3O0TZsBHNuSxXAMb+ez1WTc RbqQSB/0aq5T3vBYWjpwKmLDdN+meYhVnyBBllEZ/tnoGoRUlNAuZu4W9HGE8EcrI6Ji KIktpA857ZE0B1+sUvoIMO3SAETVf3xMhiKj3L6AzFLHUQcps3XPynvmCuejz8QQYJfo a9tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=rouaO/CAmxcfz4lAXQARMH1tP5fpOgFzH8jenkaJqaE=; b=JqMtVfl9Gs4fkNjsLcTA1XOFEp4/Nx52WCSqFIlHtJZWUgMWdzeyPzKtQCgQcb8sXI 9SiwFPlRVe4o+tzTDRQhdgNMeSZFXq8qdbPNpSmKEnnvse9+ZRF8Od7eBuIOU1VtXucj Gg2Vzyp+qliiaXDDkqlwXH9RvI0fUKtEBXLI+jN41f7gO0dX/FKMHvXqd4N9igDNyoYt gyU/tgUURQf2W8L12L25lbzKRieJpc8B/Uf3gVAGu6beZ44ExIJR8egseBYppDokWwA+ omdyEBvLExxrcPRU0gwldU5XQmxtFSo5ecApOzk3wqTQFCn+kvOdmbII0DrJCC8UeSjC jt3A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e19si7994040plq.253.2019.09.07.04.36.04; Sat, 07 Sep 2019 04:36:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389853AbfIFQ3F (ORCPT + 99 others); Fri, 6 Sep 2019 12:29:05 -0400 Received: from foss.arm.com ([217.140.110.172]:59034 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389180AbfIFQ3F (ORCPT ); Fri, 6 Sep 2019 12:29:05 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA2701570; Fri, 6 Sep 2019 09:29:04 -0700 (PDT) Received: from [10.1.196.105] (unknown [10.1.196.105]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1B94C3F59C; Fri, 6 Sep 2019 09:29:01 -0700 (PDT) Subject: Re: [PATCH v5 1/4] dt-bindings: EDAC: Add Amazon's Annapurna Labs L1 EDAC To: Rob Herring Cc: "Hawa, Hanna" , Mark Rutland , Borislav Petkov , Mauro Carvalho Chehab , David Miller , Greg Kroah-Hartman , Linus Walleij , Jonathan Cameron , Nicolas Ferre , "Paul E. McKenney" , "Woodhouse, David" , benh@amazon.com, "Krupnik, Ronen" , Talel Shenhar , Jonathan Chocron , "Hanoch, Uri" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-edac References: <20190805143911.12185-1-hhhawa@amazon.com> <20190805143911.12185-2-hhhawa@amazon.com> <20190821191704.GA32425@bogus> <1d23d7c5-cd7b-1512-5300-d43e82ba6dc1@amazon.com> From: James Morse Message-ID: <21050550-7629-e8f7-2d30-16c1858cf3cc@arm.com> Date: Fri, 6 Sep 2019 17:28:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 30/08/2019 22:50, Rob Herring wrote: > So KVM provides a semi-CortexA57? Code that runs on real h/w won't as a guest. KVM provides the architectural bits of Cortex-A57's EL1, when running on A57. Code that depends on EL2, won't run as a guest. Code that depends on some non-architectural behaviour of A57 won't work in a guest, (e.g. the PMU) Features the hypervisor doesn't completely support may get hidden. The aim is to provide an virtual CPU, it might not be exactly the same as the one you're running on. Hypervisors have to disable access to the imp-def registers as they may allow the guest to break its confinement. (e.g. messing with the L2 timing) Code using imp-def instructions at EL1 needs to know they aren't trapped/disabled by a higher exception level. If someone wants to emulate these, something would need a model of what those imp-def instructions do. Thanks, James