From: Wei Liu Subject: Limitation in HVM physmap Date: Fri, 18 Oct 2013 15:20:12 +0100 Message-ID: <20131018142012.GB20185@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: Jan Beulich , tim@xen.org, keir@xen.org Cc: George Dunlap , Stefano Stabellini , wei.liu2@citrix.com, Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi Jan, Tim and Keir I currently run into the limitation of HVM's physmap: one MFN can only be mapped into one guest physical frame. Why is it designed like that? The scenario is that: when QEMU boots with OVMF (UEFI firmware), OVMF will first map the framebuffer to 0x80000000, resulting the framebuffer MFNs added to corresponding slots in physmap. A few moments later when Linux kernel loads, it tries to map framebuffer MFNs to 0xf00000000, which fails because those MFNs have already been mapped in other locations. Is there a way to fix this? Thanks Wei