From: "Jan Beulich" Subject: Re: [PATCH v6 08/16] x86/hvm: unify stdvga mmio intercept with standard mmio intercept Date: Thu, 09 Jul 2015 10:17:11 +0100 Message-ID: <559E5837020000780008EA34@mail.emea.novell.com> References: <1435940733-20856-1-git-send-email-paul.durrant@citrix.com> <1435940733-20856-9-git-send-email-paul.durrant@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 1ZD7xA-000190-Jz for xen-devel@lists.xenproject.org; Thu, 09 Jul 2015 09:17:12 +0000 In-Reply-To: <1435940733-20856-9-git-send-email-paul.durrant@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: Paul Durrant Cc: xen-devel@lists.xenproject.org, Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 03.07.15 at 18:25, wrote: > It's clear from the following check in hvmemul_rep_movs: > > if ( sp2mt == p2m_mmio_direct || dp2mt == p2m_mmio_direct || > (sp2mt == p2m_mmio_dm && dp2mt == p2m_mmio_dm) ) > return X86EMUL_UNHANDLEABLE; > > that mmio <-> mmio copy is not handled. This means the code in the > stdvga mmio intercept that explicitly handles mmio <-> mmio copy when > hvm_copy_to/from_guest_phys() fails is never going to be executed. And in the end we have to realize that this is a regression introduced by (afaict) 3bb4f99d8c ("x86 hvm: Replace old MMIO emulator with x86_emulate()-based harness"). Whether there are any meaningful use cases (i.e. whether addressing this would be needed/wanted) isn't clear though - the only way I can trigger this (without creating a DOS VM) is via leaving grub's gfx mode. Jan