From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Subject: Re: [PATCH] arm64: KVM: VHE: Context switch MDSCR_EL1 Date: Tue, 19 Jul 2016 13:44:15 +0100 Message-ID: <578E209F.10107@arm.com> References: <1468918664-19130-1-git-send-email-marc.zyngier@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id E8E2B412D0 for ; Tue, 19 Jul 2016 08:38:12 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TopTyqZPCpZ1 for ; Tue, 19 Jul 2016 08:38:10 -0400 (EDT) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id C7FA3412C2 for ; Tue, 19 Jul 2016 08:38:10 -0400 (EDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Paolo Bonzini , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Tirumalesh Chalamarla List-Id: kvmarm@lists.cs.columbia.edu On 19/07/16 13:25, Paolo Bonzini wrote: > > > On 19/07/2016 10:57, Marc Zyngier wrote: >> The kprobe enablement work has uncovered that changes made by >> a guest to MDSCR_EL1 were propagated to the host when VHE was >> enabled, leading to unexpected exception being delivered. >> >> Moving this register to the list of registers that are always >> context-switched fixes the issue. >> >> Reported-by: Tirumalesh Chalamarla >> Tested-by: Tirumalesh Chalamarla >> Signed-off-by: Marc Zyngier >> --- >> arch/arm64/kvm/hyp/sysreg-sr.c | 8 ++++---- >> 1 file changed, 4 insertions(+), 4 deletions(-) [...] > Can you add Fixes and Cc: stable headers? Thanks, Ah, I missed that. Thanks for the heads up, v2 coming shortly. M. -- Jazz is not dead. It just smells funny... From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Tue, 19 Jul 2016 13:44:15 +0100 Subject: [PATCH] arm64: KVM: VHE: Context switch MDSCR_EL1 In-Reply-To: References: <1468918664-19130-1-git-send-email-marc.zyngier@arm.com> Message-ID: <578E209F.10107@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 19/07/16 13:25, Paolo Bonzini wrote: > > > On 19/07/2016 10:57, Marc Zyngier wrote: >> The kprobe enablement work has uncovered that changes made by >> a guest to MDSCR_EL1 were propagated to the host when VHE was >> enabled, leading to unexpected exception being delivered. >> >> Moving this register to the list of registers that are always >> context-switched fixes the issue. >> >> Reported-by: Tirumalesh Chalamarla >> Tested-by: Tirumalesh Chalamarla >> Signed-off-by: Marc Zyngier >> --- >> arch/arm64/kvm/hyp/sysreg-sr.c | 8 ++++---- >> 1 file changed, 4 insertions(+), 4 deletions(-) [...] > Can you add Fixes and Cc: stable headers? Thanks, Ah, I missed that. Thanks for the heads up, v2 coming shortly. M. -- Jazz is not dead. It just smells funny...