Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3113266ybt; Mon, 29 Jun 2020 15:48:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyh7blCdfrprf30r5k14x5tUX7u6BJLunEcBm900Z1uxHA2ioAYB3mkYpj7Mnhm5aDc1pZ X-Received: by 2002:a17:906:5008:: with SMTP id s8mr5181038ejj.147.1593470893324; Mon, 29 Jun 2020 15:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593470893; cv=none; d=google.com; s=arc-20160816; b=kF0BHvtRLdQ/iKeMltYT2dE3FNpOWiaF2RXYbuZdXHZtLYOXmbYOVBieHdykA8riRL AtQyjTyktEgW0407eO4lHEcr+Anq4f6PSDDQHxr9RAFGE9EaoCFY6MdXBTt/B92d/r/K XOHSSB5FRFH8oP9hRtrDodECJBISbeBXuiUUoUgi9FcAgvqTz4NKngdRHwFyp0NiKbhY pWCIrZvOOwWFuM4y0njysT0nRaBWOAH/LwLuSS0oqrZWvBFVxXfZe1Sg9Qh5peqc0Gvn 1WtidBL8k/wkwwJsqx2/2GKqD0AoRyrP/IMQtJJrmDABvRJVq2RxQWYFvPje46M6ZK0S tLOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to :importance:content-transfer-encoding:mime-version:cc:to:from :subject:date:dkim-signature; bh=E1Kxkym5acV7SC3cIxxwfaPnhwWAXTEgyMU//IDE0j8=; b=scdwq/CJiQaUAKwafw6EMWxyQrPYYKfIOnYsMK9NVpJ0VfNzwhRD4HZCqQQXsmDqGu iXdmJLI/yyPW+iAWPVml5NN4WCenbRQKff9QbR684vTTCok86F0QNK+usUkO+LiAO+i2 RfwHaXV8+0NpXMXOzGpFzJLhJTiIkRxMPsXG0aFOBI3d3umqjuM/YtX8cb7SapwePDIk VW9FsBN/5RZkOVGMSh+zh75aXdk1u10MT1mlhgF1BeYlsjmxdQJVgzQYQJa9mpZ1irbx BX75snLyMKT4uJIkuOi4mKPcC+t7LCWIVhdO3TQU4FXwNz9BoIiOyZtcoCnyyAEnrP+B InPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@g001.emailsrvr.com header.s=20190322-9u7zjiwi header.b="dQhr/310"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si522235edv.497.2020.06.29.15.47.50; Mon, 29 Jun 2020 15:48: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=@g001.emailsrvr.com header.s=20190322-9u7zjiwi header.b="dQhr/310"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728468AbgF2Wqp (ORCPT + 99 others); Mon, 29 Jun 2020 18:46:45 -0400 Received: from smtp99.iad3a.emailsrvr.com ([173.203.187.99]:36501 "EHLO smtp99.iad3a.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728308AbgF2Wqo (ORCPT ); Mon, 29 Jun 2020 18:46:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=g001.emailsrvr.com; s=20190322-9u7zjiwi; t=1593470802; bh=ahKIpp3T71zR6TCFh1/inNBMliSekqSWI6mRHYvVqq4=; h=Date:Subject:From:To:From; b=dQhr/310r/S+LV5yWz8ticsWTrTCTk8hZumnuzBovXIwJp9UHQe4jOT7tRMFpiSz+ ICgjV33wXOH+HiuioI3/Zklgb/oOkrFU056tabwEpR8E6Hgva+DEiZjv/zZimdGtyK XBRud5D+HZo8NtdP5dWC5wh5GLfjW0vdM7cxllV4= Received: from app51.wa-webapps.iad3a (relay-webapps.rsapps.net [172.27.255.140]) by smtp21.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id AAC3924E9E; Mon, 29 Jun 2020 18:46:41 -0400 (EDT) Received: from deepplum.com (localhost.localdomain [127.0.0.1]) by app51.wa-webapps.iad3a (Postfix) with ESMTP id 957C8A13EB; Mon, 29 Jun 2020 18:46:41 -0400 (EDT) Received: by apps.rackspace.com (Authenticated sender: dpreed@deepplum.com, from: dpreed@deepplum.com) with HTTP; Mon, 29 Jun 2020 18:46:41 -0400 (EDT) X-Auth-ID: dpreed@deepplum.com Date: Mon, 29 Jun 2020 18:46:41 -0400 (EDT) Subject: Re: [PATCH v2] Fix undefined operation VMXOFF during reboot and crash From: "David P. Reed" To: "Sean Christopherson" Cc: "Andy Lutomirski" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "X86 ML" , "H. Peter Anvin" , "Allison Randal" , "Enrico Weigelt" , "Greg Kroah-Hartman" , "Kate Stewart" , "=?utf-8?Q?Peter_Zijlstra_=28Intel=29?=" , "Randy Dunlap" , "Martin Molnar" , "Andy Lutomirski" , "Alexandre Chartre" , "Jann Horn" , "Dave Hansen" , "LKML" MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: quoted-printable Importance: Normal X-Priority: 3 (Normal) X-Type: plain In-Reply-To: <20200629214956.GA12962@linux.intel.com> References: <1593464072.34968499@apps.rackspace.com> <0AFABBBA-18B7-4E2F-BCE7-D69889CC0F79@amacapital.net> <20200629214956.GA12962@linux.intel.com> Message-ID: <1593470801.608531492@apps.rackspace.com> X-Mailer: webmail/17.3.12-RC X-Classification-ID: db414326-9724-44a0-90e2-83df0980473c-1-1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =0A=0AOn Monday, June 29, 2020 5:49pm, "Sean Christopherson" said:=0A=0A> On Mon, Jun 29, 2020 at 02:22:45PM -0700, = Andy Lutomirski wrote:=0A>>=0A>>=0A>> > On Jun 29, 2020, at 1:54 PM, David = P. Reed wrote:=0A>> >=0A>> > =EF=BB=BFSimple question= for those on the To: and CC: list here. Should I=0A>> > abandon any hope o= f this patch being accepted? It's been a long time.=0A>> >=0A>> > The non-r= esponse after I acknowledged that this was discovered by when=0A>> > workin= g on a personal, non-commercial research project - which is=0A>> > "out-of-= tree" (apparently dirty words on LKML) has me thinking my=0A>> > contributi= on is unwanted. That's fine, I suppose. I can maintain this patch=0A>> > ou= t-of-tree as well. I did incorporate all the helpful suggestions I=0A>> > = received in this second patch, and given some encouragement, will happily= =0A>> > submit a revised v3 if there is any likelihood of acceptance. I'm w= ary of=0A>> > doing more radical changes (like combining emergency and norm= al paths).=0A>> >=0A>>=0A>> Sorry about being slow and less actively encour= aging than we should be. We=0A>> absolutely welcome personal contributions.= The actual problem is that=0A>> everyone is worked and we=E2=80=99re all s= low. Also, you may be hitting a corner=0A>> case=0A>> in the process: is th= is a KVM patch or an x86 patch?=0A> =0A> It's an x86 patch as it's not KVM = specific, e.g. this code also helps play=0A> nice with out of tree hypervis= ors.=0A> =0A> The code change is mostly good, but it needs to be split up a= s there are=0A> three separate fixes:=0A> =0A> 1. Handle #UD on VMXON due= to a race.=0A> 2. Mark memory and flags as clobbered by VMXON.=0A> 3. = Change emergency_vmx_disable_all() to not manually check cpu_vmx_enabled().= =0A> =0A> Yes, the changes are tiny, but if for example #3 introduces a bug= then we=0A> don't have to revert #1 and #2. Or perhaps older kernels are = only subject=0A> to the #1 and #2 and thus dumping all three changes into a= single patch makes=0A> it all harder to backport. In other words, all the= usual "one change per=0A> patch" reasons.=0A> =0AThanks. If no one else re= sponds with additional suggestions, I will make it into 3 patches.=0AI'm ha= ppy to learn the nuances of the kernel patch regimen.=0A=0A