WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Question on QEMU and P2M

To: "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] Question on QEMU and P2M
From: Wei Huang <wei.huang2@xxxxxxx>
Date: Tue, 23 Jun 2009 18:31:43 -0500
Cc:
Delivery-date: Tue, 23 Jun 2009 16:32:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.17 (X11/20080914)
I am facing a qemu-dm problem when setting up 1GB page table to P2M.

Setting 1GB page table is very straight forward: just skip the last two levels of p2m table. While doing gfn_to_mfn translation, I have to check PSE bits in level 3 page table entry first. If this bit is 1, I calculate the target mfn and return immediately. Two gfn_to_mfn translation functions, p2m_gfn_to_mfn_current() and p2m_gfn_to_mfn(), are changed in this way.

However, QEMU dm starts to function weirdly with this change. For instance, linux guest won't be able to locate hard disk because port IO access returns incorrect values. I couldn't control guest keyboard either.

I am thinking that there are some Xen codes (related to qemu) which doesn't goes through gfn_to_mfn translation inside p2m.c. It might assume p2m table always has L2 P2M table and does fast translation. But I haven't found such areas yet.

Any suggestion of suspicious code areas to look at?

-Wei



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>