Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp689928ybz; Fri, 17 Apr 2020 08:19:13 -0700 (PDT) X-Google-Smtp-Source: APiQypIMijSnWKB1W9hDB6Cty3xgVHh3R7q8ja5plzyBbxUM5H4M2LW9//1g98dDfmNCccVz9Hh5 X-Received: by 2002:a05:6402:b47:: with SMTP id bx7mr3367226edb.374.1587136753153; Fri, 17 Apr 2020 08:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587136753; cv=none; d=google.com; s=arc-20160816; b=jpq3T7sCidnl1MgNsoromtobj+2dqzslrrmJqeCDWVsh1Desa7+9Gh1aFRaHFw2x9c CV1sVP5Pbrsl0mnk1mEEls7QovCwCtM+1ve2PJqubW7WX3zJKSZUwSelA4gSrBntdm+A 99KuK1ZlO3iJy8zPEVn5RkyerxxBonyU0UJC5vj7j6eLMroy7JirHH/SrC2tFyXGEJIm 2Fn2zUJ+0Iov/4H073imSwjqlO2vhh3UL+qXRucm1PqpsiFjzeIRwdIPPDH/Tn3Tq9Yh rqkM7SeU0B8j2ckANTb7KVAs8PnaWi3bEAKvxW31VfKXu7XkevPBpB3qG8lVXyChZLLU MdSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=yZmc+Gn+gTykKgUTsRKpMN1RsNTk7o/3nNOmw945ZCs=; b=IFzZI6z6xanRaRTj/N3oXUqspnc0AntJh5w+wqgL5dnoDc7JKp/nZuP9w/86hO9ZLL D7QPx3YNchuoO6fLSJETfz2Lj1OA94u5Jo7M3XVGRjLMqLG1cjmsxdT89Rr3CQkYc6r3 5vvuAKpmjxUJCkBGKGNzy3xDUHJ2J0skmOlVEucenGd4B8vnHvd01cR1sJDNvVKQEOi4 /c9WlCxSomrd9HwNBI2gCyvkOaTI8PJa+Yxp5Brsftnyiz1/TNWrM7rx5ptDg2Q1fN74 HljsjLcUFn3015uRU07xcslJtKsc1AyRzUNeo3Uwop200jxFVu1OPSFatT82YoWV++aS IdFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dYtXIG1+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g23si14562878ejh.437.2020.04.17.08.18.47; Fri, 17 Apr 2020 08:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dYtXIG1+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728889AbgDQPRg (ORCPT + 99 others); Fri, 17 Apr 2020 11:17:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:46630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbgDQPRf (ORCPT ); Fri, 17 Apr 2020 11:17:35 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF4BF20936; Fri, 17 Apr 2020 15:17:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587136654; bh=vQgeSTHLqbr1xYIfLpTqXiGzbSQwUSK/Dh+Du7ZzrJM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=dYtXIG1+vvN9Iy2/NkryyGIHTTGUWKdGSP2OTrBYd7dCxY0qcz733yrAeMG0CI+KC fT6eMWMO2Gk76Cs5s83AJVUXA3xITdx3n6skgAHiaM5uDx85rHUCzOYIep4+/bmXFC d5YVx5DFzKAPGOFGhx7j5WC+ZNklgnfGWv/GPk2M= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id B63573523234; Fri, 17 Apr 2020 08:17:34 -0700 (PDT) Date: Fri, 17 Apr 2020 08:17:34 -0700 From: "Paul E. McKenney" To: Qian Cai Cc: Elver Marco , Sean Christopherson , kasan-dev , kvm@vger.kernel.org, LKML , Paolo Bonzini Subject: Re: [PATCH -next] kvm/svm: disable KCSAN for svm_vcpu_run() Message-ID: <20200417151734.GJ17661@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200415153709.1559-1-cai@lca.pw> <1F15D565-D34D-41F5-B1C5-B9A04626EE97@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1F15D565-D34D-41F5-B1C5-B9A04626EE97@lca.pw> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 17, 2020 at 09:21:59AM -0400, Qian Cai wrote: > > > > On Apr 15, 2020, at 11:57 AM, Paolo Bonzini wrote: > > > > On 15/04/20 17:37, Qian Cai wrote: > >> For some reasons, running a simple qemu-kvm command with KCSAN will > >> reset AMD hosts. It turns out svm_vcpu_run() could not be instrumented. > >> Disable it for now. > >> > >> # /usr/libexec/qemu-kvm -name ubuntu-18.04-server-cloudimg -cpu host > >> -smp 2 -m 2G -hda ubuntu-18.04-server-cloudimg.qcow2 > >> > >> === console output === > >> Kernel 5.6.0-next-20200408+ on an x86_64 > >> > >> hp-dl385g10-05 login: > >> > >> <...host reset...> > >> > >> HPE ProLiant System BIOS A40 v1.20 (03/09/2018) > >> (C) Copyright 1982-2018 Hewlett Packard Enterprise Development LP > >> Early system initialization, please wait... > >> > >> Signed-off-by: Qian Cai > >> --- > >> arch/x86/kvm/svm/svm.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c > >> index 2be5bbae3a40..1fdb300e9337 100644 > >> --- a/arch/x86/kvm/svm/svm.c > >> +++ b/arch/x86/kvm/svm/svm.c > >> @@ -3278,7 +3278,7 @@ static void svm_cancel_injection(struct kvm_vcpu *vcpu) > >> > >> bool __svm_vcpu_run(unsigned long vmcb_pa, unsigned long *regs); > >> > >> -static void svm_vcpu_run(struct kvm_vcpu *vcpu) > >> +static __no_kcsan void svm_vcpu_run(struct kvm_vcpu *vcpu) > >> { > >> struct vcpu_svm *svm = to_svm(vcpu); > >> > >> > > > > I suppose you tested the patch to move cli/sti into the .S file. Anyway: > > > > Acked-by: Paolo Bonzini > > Paul, can you pick this up along with other KCSAN fixes? Queued and pushed, thank you both! Thanx, Paul