Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2294899imm; Thu, 20 Sep 2018 10:43:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaNpZ+48rzgPIeiHjnci/1Lasn+d5pOW9a1Hqr8i9XQN915HUZMq5XbLPVZCl4yMH+9bCoC X-Received: by 2002:a65:4001:: with SMTP id f1-v6mr7578761pgp.228.1537465410607; Thu, 20 Sep 2018 10:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537465410; cv=none; d=google.com; s=arc-20160816; b=x6sHxyKzAIF5SvNg1gSuvBMO48JbmhG1Glw0mJD5X4yNEcOUHo+Uu0U3RD1ggWoBRo L4c9ZAaCkL626UoVvETSl6Xd3a2YE2/AHo1+aK+jiBE7TbcZdFQAyvXjDkZ/o+owIRsy qLCP4GAB4KBc/b/g/gQHBNYhZOE6hSLcvTR4f5ukG2iC6jKK84W/k9szf7RNc8Zar9nB MWWqKUPUsCbGTDK8puuDWdNZd7B191jcim+44dofen5qX0uMAzEvkJBao5GbAaLFnCFD bFGAkUbsxW2kHXOjoNmxdTqlkuV4jqx4u5qACeCdMsLrvcUBZUc9Fn9XrUoZL9rxgY0P Njeg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Yc8so+uEPhGIUKlV8ZjX5LZx8V2lvxH70UjIE7bNJgI=; b=rEx8+rKfBWNG+4wl7s219U/LoahA76bHVLpZKVRNWZXgLgTqPnac4D1F14PR27WYg1 28yK/PxgXVbEGETy5xlFaXXWIPBG7+TKq65eSjaLuQNJ8Qz0ziyk4jLLxyMLjXuzhbPe 0JkYVgSoM3NBnnfUEMUdrQ0WZcjnTts9t1PqOOj3TPtN1apabI0un1HekKRxDRHdS0vG ciRrGjfk1WEoSpcyxGFDoxeo1yYPEcItRNYRx3EZ4hkx5t5zyeSXvSn2XwpP0gatZjJ+ OTwj38NrZCILxefgXkBymowIYPNw7/nKYvr/2LVRA0EcRk4GgDz52ETH3/mEPYBbyUoH Rp2g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12-v6si24401763pgv.351.2018.09.20.10.43.10; Thu, 20 Sep 2018 10:43:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728997AbeITX1l (ORCPT + 99 others); Thu, 20 Sep 2018 19:27:41 -0400 Received: from mga05.intel.com ([192.55.52.43]:9359 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbeITX1l (ORCPT ); Thu, 20 Sep 2018 19:27:41 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2018 10:43:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,281,1534834800"; d="scan'208";a="264349378" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.148]) by fmsmga005.fm.intel.com with ESMTP; 20 Sep 2018 10:42:46 -0700 Date: Thu, 20 Sep 2018 10:42:45 -0700 From: Sean Christopherson To: Paolo Bonzini Cc: Peng Hao , rkrcmar@redhat.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, peng.hao2@zte.com, Peng Hao Subject: Re: [PATCH RESEND] kvm/x86: propagate fetch fault into guest Message-ID: <20180920174245.GA10381@linux.intel.com> References: <1537311828-4547-1-git-send-email-penghao122@sina.com.cn> <1537367635.9937.4.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 20, 2018 at 06:32:10PM +0200, Paolo Bonzini wrote: > On 19/09/2018 16:33, Sean Christopherson wrote: > > On Tue, 2018-09-18 at 19:03 -0400, Peng Hao wrote: > >> From: Peng Hao > >> > >> When handling ept misconfig exit, it will call emulate instruction > >> with insn_len = 0. The decode instruction function may return a fetch > >> fault and should propagate to guest. > > > > What fault is encountered, e.g. #PF, #UD, etc...? ?Something like a > > #UD at this point should result in an exit to userspace as it means > > KVM was unable to emulate an instruction that was successfully > > decoded by hardware. > > If it's the same bug as https://lore.kernel.org/patchwork/patch/850077/ > it would be a #PF. Indeed it is, let's move this discussion to that thread.