Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2760846pxb; Tue, 13 Apr 2021 09:31:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkqKfswmLhxBc5LIHzba8/HK8eWJDH7VD08EqJ1pkzhMCvkhYTAPyA7pXSIwo/vVegl41a X-Received: by 2002:a17:907:75d9:: with SMTP id jl25mr10687153ejc.420.1618331486425; Tue, 13 Apr 2021 09:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618331486; cv=none; d=google.com; s=arc-20160816; b=gt7HRtbg3IsNc73dNB4d7uEkJG757PXlOWWLQXBW9qmLZX54UgXkfIr+kp/LOFuBll 2G98ok3FZcLEruEHauP/mLjSaJGcd+4q6WA70DvgN+CvF47AZ7JRjWEYEbE59DnqWBG5 6k+UW7+q2joGPEgARlo+57qPewJPKlWjbK5CaA4Yh7XAx70V3Bzc6g07HxHGW2STBr8C Bg30H40SN/pN2wfg96ikRUOSH+/p3MuE0PQmbjHl/WHwzxD+KA/+ZpTMtWhTOUB27OOK jXZB8wyMsj/YRVlDe5Gl0pV2SojFbZhz/5fzY2wYncK1SM1WC6C+24oTwIJiFY9LZtUL h3hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:from:references :in-reply-to:subject:cc:to:dkim-signature; bh=nYS1mAzCp2YtcTMjHCRKhhzeV2J92kIDnXr4neGXktk=; b=u0logokdvm3g/zHJVZN4o2AUKhVKtwrK7T+CD2XeNw/ej7hVHZ4bLRTATBZmeye85y zObkIbS3BO857GMghEwve7SnOolGM5jGm5iZs6cuY5qR2flET34XERpah2H4orHHIH9M 4WxaVq6HKjnUN32D2ZqN0HDfaAXfYzguEqRDLIwmLjvrtRh1OTFYs7VV8lS/LYqOcQG8 0WFIRSNl+mctx/vpGR10ABKdG6gU8iCuqi2ZG/2JBuoI/JlKu8NwVuz04xLj3oi1rJk6 sf88YVUGAmhzMfKYvlrYtNus9dTJaz7ORiOaJeYNphDPC+DMnHCOJ7O0aqSXyyhu3zR3 zFdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TDTBsTdx; 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 g1si5005345ejw.615.2021.04.13.09.31.00; Tue, 13 Apr 2021 09:31:26 -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=@messagingengine.com header.s=fm2 header.b=TDTBsTdx; 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 S1344376AbhDMLBa (ORCPT + 99 others); Tue, 13 Apr 2021 07:01:30 -0400 Received: from forward4-smtp.messagingengine.com ([66.111.4.238]:33815 "EHLO forward4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344356AbhDMLB2 (ORCPT ); Tue, 13 Apr 2021 07:01:28 -0400 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Apr 2021 07:01:28 EDT Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id CC3531940903; Tue, 13 Apr 2021 06:54:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 13 Apr 2021 06:54:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=nYS1mA zCp2YtcTMjHCRKhhzeV2J92kIDnXr4neGXktk=; b=TDTBsTdxMzg6bBVi7TqYer 0DiW0XQ2lPr8gTYCfUJmjHyh0G3/IbFZ/iSMs5glMUidDD3jiTtwFN0cEFzUiyI2 mNuGR5Tg00icmUi3YBF7868ldmf4e9OLD2cAfqe184fp5Q2b39Q4yxeENAs36qKe DuVmwcgHjExF1pk9n4votO+qu4bCMAKy94p+XHe4lm87KQbmFKTwVyImTRzR0lKp yV1onAkLx9vKf0xgG4TBhb2vyDAxnWek5Y6jnZDX1pVkXJDgslsMNyzeS+JocR7K IyRLWgq/3aBNF5tweavqcOfbzX0xjLn0mQF+71QRD3m3paFOni7NOFlO+eVtKbTQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekledgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepvffujghfhfffkfggtgesthdtredttddttdenucfhrhhomhepffgrvhhiugcu gfgumhhonhgushhonhcuoegumhgvsegumhgvrdhorhhgqeenucggtffrrghtthgvrhhnpe fhkeeguedtvdegffffteehjedvjeeitefgfefgffdugeffffegudehgeetgeelkeenucfk phepkedurddukeejrddviedrvdefkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegumhgvsegumhgvrdhorhhg X-ME-Proxy: Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net [81.187.26.238]) by mail.messagingengine.com (Postfix) with ESMTPA id D7575108005C; Tue, 13 Apr 2021 06:54:26 -0400 (EDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id bf0b8dca; Tue, 13 Apr 2021 10:54:25 +0000 (UTC) To: Jim Mattson Cc: LKML , kvm list , Paolo Bonzini , Vitaly Kuznetsov , "H. Peter Anvin" , the arch/x86 maintainers , Sean Christopherson , Thomas Gleixner , Joerg Roedel , Wanpeng Li , Borislav Petkov , Ingo Molnar , Aaron Lewis Subject: Re: [PATCH 0/6] KVM: x86: Make the cause of instruction emulation available to user-space In-Reply-To: References: <20210412130938.68178-1-david.edmondson@oracle.com> X-HGTTG: zarquon From: David Edmondson X-Now-Playing: Dido - Life for Rent: Stoned Date: Tue, 13 Apr 2021 11:54:25 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, 2021-04-12 at 11:34:33 -07, Jim Mattson wrote: > On Mon, Apr 12, 2021 at 6:09 AM David Edmondson > wrote: >> >> Instruction emulation happens for a variety of reasons, yet on error >> we have no idea exactly what triggered it. Add a cause of emulation to >> the various originators and pass it upstream when emulation fails. > > What is userspace going to do with this information? It's hard to say > whether or not this is the right ABI without more context. Logging for debug purposes, see reply to Sean. dme. -- You make me feel like a natural woman.