From: "Jan Beulich" Subject: Re: Removing the PVH assert in arch/x86/hvm/io.c:87 Date: Fri, 05 Dec 2014 09:15:59 +0000 Message-ID: <548185DF020000780004D076@mail.emea.novell.com> References: <54808D6F.302@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XwozZ-0004vm-47 for xen-devel@lists.xenproject.org; Fri, 05 Dec 2014 09:16:01 +0000 In-Reply-To: <54808D6F.302@citrix.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: =?UTF-8?Q?Roger=20Pau=20Monn=C3=A9?= Cc: xen-devel@lists.xenproject.org, Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 04.12.14 at 17:35, wrote: > I've just stumbled upon this assert while testing PVH on different > hardware. It was added in 7c4870 as a safe belt, but it turns out INS > and OUTS go through handle_mmio. So using this instructions from a PVH > guest basically kills Xen. > > I've removed it and everything seems fine, so I'm considering sending a > patch for 4.5 in order to have it removed. I think the path that could > trigger the crash because of the missing vioapic stuff is already > guarded by the other chunk added in the same patch. Iirc we settled on forbidding paths to handle_mmio() for PVH (hence the ASSERT()). Sadly you provide way too little detail on what is actually happening in your case: What's the use case of to-be- emulated INS/OUTS in a PVH kernel? What's the call tree that gets you into handle_mmio(), considering that both calls to handle_mmio_with_translation() from hvm_hap_nested_page_fault() as well as the one to handle_mmio() ought to be unreachable for PVH? Jan