Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934236AbdCVLP2 (ORCPT ); Wed, 22 Mar 2017 07:15:28 -0400 Received: from foss.arm.com ([217.140.101.70]:38700 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933879AbdCVLPU (ORCPT ); Wed, 22 Mar 2017 07:15:20 -0400 Subject: Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS To: Peter Maydell , Christoffer Dall References: <1489996534-8270-1-git-send-email-gengdongjiu@huawei.com> <7055772d-2a20-6e0c-2bf8-204bc9ef52a5@arm.com> <22fb583f-a33e-15f8-a059-fb112b27dd4f@arm.com> <58CFF058.8020205@arm.com> <76795e20-2f20-1e54-cfa5-7444f28b18ee@huawei.com> <20170321113428.GC15920@cbox> <58D17AF0.2010802@arm.com> <20170321193933.GB31111@cbox> Cc: James Morse , kvm-devel , Catalin Marinas , Will Deacon , lkml - Kernel Mailing List , gengdongjiu , wangxiongfeng2@huawei.com, wuquanming@huawei.com, huangshaoyu@huawei.com, arm-mail-list , Andre Przywara , "kvmarm@lists.cs.columbia.edu" From: Marc Zyngier Organization: ARM Ltd Message-ID: Date: Wed, 22 Mar 2017 11:15:15 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 25 On 21/03/17 22:10, Peter Maydell wrote: > On 21 March 2017 at 19:39, Christoffer Dall wrote: >> My confusion here comes from not thinking about QEMU or KVM as firmware, >> but as the machine, so it would be sort of like the functionality is >> baked into hardware rather than firmware. > > There is precedent for that kind of thing -- we implement PSCI > in KVM/QEMU for the guest, though in real hardware it would be > provided by firmware at EL3. [probably vastly off topic] In retrospect, I now believe this was a rather big mistake to implement PSCI in KVM. Eventually, we want to be able to handle the full spectrum of the SMCCC and forward things to an actual TEE if available. There is no real reason why PSCI shouldn't be handled in userspace the same way (and we already offload reset and halt to QEMU). Thanks, M. -- Jazz is not dead. It just smells funny...