From: "Jan Beulich" Subject: Re: [V1 PATCH] PVH: avoid call to handle_mmio Date: Tue, 10 Jun 2014 08:09:52 +0100 Message-ID: <5396CB6002000078000194BA@mail.emea.novell.com> References: <1401832802-27118-1-git-send-email-mukesh.rathor@oracle.com> <1401832802-27118-2-git-send-email-mukesh.rathor@oracle.com> <538EE5BF02000078000179E7@mail.emea.novell.com> <20140604165221.1ccaa596@mantra.us.oracle.com> <53902A2E02000078000180D9@mail.emea.novell.com> <20140606124213.4dd4716b@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WuGBw-0001Oj-W6 for xen-devel@lists.xenproject.org; Tue, 10 Jun 2014 07:09:57 +0000 In-Reply-To: <20140606124213.4dd4716b@mantra.us.oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Mukesh Rathor Cc: xen-devel@lists.xenproject.org, keir.xen@gmail.com List-Id: xen-devel@lists.xenproject.org >>> On 06.06.14 at 21:42, wrote: > On Thu, 05 Jun 2014 07:28:30 +0100 > "Jan Beulich" wrote: >> The fundamentally wrong thing is that real hardware wouldn't >> surface #GP on any wrong physical address - with one exception, >> the only possibility would be #MC, and I don't think this would >> ever happen for truly unpopulated ranges. (The exception being >> on AMD, where #PF gets surfaced when trying to access a page >> referring to the HT reserved address range.) IOW even on HVM >> it is wrong for us to inject #GP in cases like this. > > We, internally here, discussed the idea of injecting #PF instead of #GP. > That > makes sense from baremetal perspective. IOW, if we look at it from the > prespective that the guest kernel put a bad pte entry, then on baremetal > it will get a #PF. This very much depends on what's wrong with the PTE - reserved bits being set would yield #PF, but an out-of-(valid-)range physical address wouldn't normally. And it's that which we've been discussing here. Jan