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-ia64-devel

[Xen-ia64-devel] [Q] about assign_domain_page_replace

To: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-ia64-devel] [Q] about assign_domain_page_replace
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Tue, 05 Jun 2007 20:58:16 +0900
Delivery-date: Tue, 05 Jun 2007 04:56:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, all

Is the following patch right?

diff -r aee991c7723a xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Wed May 09 16:34:47 2007 +0100
+++ b/xen/arch/ia64/xen/mm.c    Wed Jun 06 05:41:15 2007 +0900
@@ -1121,7 +1121,7 @@ assign_domain_page_replace(struct domain
     if (pte_mem(old_pte)) {
         unsigned long old_mfn = pte_pfn(old_pte);
 
-        // mfn = old_mfn case can happen when domain maps a granted page
+        // mfn != old_mfn case can happen when domain maps a granted page
         // twice with the same pseudo physial address.
         // It's non sense, but allowed.
         // __gnttab_map_grant_ref()


If so, I have one more question.
When assign_domain_page_replace() is called from __dom0vp_add_physmap(),
there are a case of mfn != old_mfn.
Is that correct case or a bug?

At that time, old_mfn->count_info=0.
So if I destroy the domain, hypervisor panic like the below.

(XEN) Xen BUG at mm.c:233
(XEN) FIXME: implement ia64 dump_execution_state() 
(XEN) **************************************** 
(XEN) Panic on CPU 1: 
(XEN) Xen BUG at mm.c:233                      
(XEN) **************************************** 
(XEN)                                          
(XEN) Reboot in five seconds...

Best Regards,

Akio Takebe


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