Received: by 10.192.165.156 with SMTP id m28csp2152066imm; Thu, 12 Apr 2018 09:23:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+rix5im2jfh/9X9X58SI+0N5364UrWy5POPfLHxGCVWbhUIx1YoNR6i5IhzUzbir5TvJPe X-Received: by 10.99.136.73 with SMTP id l70mr857838pgd.49.1523550223246; Thu, 12 Apr 2018 09:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523550223; cv=none; d=google.com; s=arc-20160816; b=kB+XehVf+w99LvFeUmIT587HQBGxNgsm7X+k+vrEAMaMWcrYc9SHdZBUkOYfbaYUw9 dGvH6CI6L3F7STTHIDcV6iSq8ZqIw+QsR4eqssfl59m6sgg28Ye82LU4dLESaEmy+GWb 2b0t4slQYJ4GPIJYwp0N0hJdCxrM7eWI0RA1+sVgCtpMTEwmRbSael8+L2Rih+v+0uIE rqtY4cqrXJNVrOeNskZrSti00NYnNG2i0MHKNt0+RP/WpJpQlYfb/T3kdbfCZN5mtkrX NtsGtE9RpzMeduyHiY1tHyox3cQ+xsZBng+EvH2uDfsYr37DCKogIrAvSErJ0iMTUeyt HDEA== 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:references:cc:to:subject:from:arc-authentication-results; bh=hYg8Xz+S61zy/cbE+ly28akIc7UZq30ikoSg7qg7EBY=; b=GGJJMMddB/WhRF91VSf2XWvp0+3ODIAy02/z58zjgcI8kt/INWfSOzwat6s3HRSXxy vEnuZm3Dv51Kj46MfRPG3Z45ZTr+duVbXy7bJ14rXuZdWqjCVakZERYkIf65SwczzVbO p0WHohvoZhhHy7iSi4vfeI1rgNJmW8n3+T7uYRwMqvd/tV9UuZ5lYvKA6JtscTN+t4NE 6pxMnK3Or+mGlUQxZ0mZnHC+vAstydMeuBBkVqOPMTM5+p/T1sHZFMxcICEK/L8k/aGi JIyWPDCIDpVCVAvZu9+kCpiQzCYCk3nlYy0UcnYc7KnZvab6eqZdfcAgI6ssGhCYmAtp wF1w== 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 b34-v6si158198plc.53.2018.04.12.09.23.04; Thu, 12 Apr 2018 09:23:43 -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 S1753224AbeDLQRm (ORCPT + 99 others); Thu, 12 Apr 2018 12:17:42 -0400 Received: from foss.arm.com ([217.140.101.70]:35114 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753182AbeDLQRk (ORCPT ); Thu, 12 Apr 2018 12:17:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 141BC1529; Thu, 12 Apr 2018 09:17:40 -0700 (PDT) Received: from [10.1.207.55] (melchizedek.cambridge.arm.com [10.1.207.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 07FD23F592; Thu, 12 Apr 2018 09:17:36 -0700 (PDT) From: James Morse Subject: Re: [PATCH v11 0/4] set VSESR_EL2 by user space and support NOTIFY_SEI notification To: gengdongjiu Cc: rkrcmar@redhat.com, corbet@lwn.net, christoffer.dall@linaro.org, marc.zyngier@arm.com, linux@armlinux.org.uk, catalin.marinas@arm.com, rjw@rjwysocki.net, bp@alien8.de, lenb@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-acpi@vger.kernel.org, devel@acpica.org, huangshaoyu@huawei.com, zhengxiang9@huawei.com References: <1523309796-36423-1-git-send-email-gengdongjiu@huawei.com> <5161fb31-e5bb-872c-3e12-d7d38326aaca@huawei.com> Message-ID: Date: Thu, 12 Apr 2018 17:14:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <5161fb31-e5bb-872c-3e12-d7d38326aaca@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi gengdongjiu, On 12/04/18 07:09, gengdongjiu wrote: > On 2018/4/10 22:15, James Morse wrote: >> On 09/04/18 22:36, Dongjiu Geng wrote: >>> 1. Detect whether KVM can set set guest SError syndrome >>> 2. Support to Set VSESR_EL2 and inject SError by user space. >>> 3. Support live migration to keep SError pending state and VSESR_EL2 value. >>> 4. ACPI 6.1 adds support for NOTIFY_SEI as a GHES notification mechanism, so support this >>> notification in software, KVM or kernel ARCH code call handle_guest_sei() to let ACP driver >>> to handle this notification. >> >> Please don't post code during the merge-window, will this apply to v4.17-rc1? We >> can't know until its tagged. Posting code during the merge-window isn't helpful as the kernel is a moving target, its better to wait for an 'rc' to base it on. > I do not know when it is merge-window. About the apply version, it does not have limited. 'git fetch' Linus' tree and look at the tags. 'v4.16' lost its '-rc' suffixes, and there isn't a 'v4.17-rc1' yet, so we are still in the merge window. Linus sends a message to LKML. eg: https://lkml.org/lkml/2018/4/1/175 net-next closes shortly before the merge window, and re-opens afterwards. There is a handy web page: http://vger.kernel.org/~davem/net-next.html >> This series is doing two separate things, please split it into two series. > OK, thanks! > >> >> But on the ACPI front: I don't see how any OS can support your NOTIFY_SEI when >> firmware is ignoring the normal world's PSTATE.A. >> >> The latest lobe of that discussion was on the list here: >> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1611496.html > I have replied the mail. > I still have some questions that need to clarify with you. > After clarification, we will follow that. > The question is in the reply of this mail "https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1611496.html" Lets keep that discussion on v9 then. >> As it is, we would need to spot SError being delivered while SError is masked, >> spray nasty messages about firmware being horrifically buggy, then panic(). For >> a corrected error, this looks bad, but its preferable to letting firmware >> silently overwrite the exception registers, causing linux to spin through the >> vectors 'eret' with all exceptions masked. >> I still think its best to wait for firmware that does the right thing. > Let us discuss that in another mail. > In a summary, I think firmware follow below rule can be OK, right? > 1. The exception came from the EL that SError should be routed to(according to hcr_EL2.{AMO, TGE}),but PSTATE.A was set, EL3 firmware can't deliver SError; > 2. The exception came from the EL that SError should not be routed to(according to hcr_EL2.{AMO, TGE}),even though the PSTATE.A was set,EL3 firmware still deliver SError Problem here, more on v9. Thanks, James