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

Re: [Xen-ia64-devel] [Patch] Fix for re-enabling PV-on-HVM on IPF

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [Patch] Fix for re-enabling PV-on-HVM on IPF
From: Doi.Tsunehisa@xxxxxxxxxxxxxx
Date: Wed, 07 Mar 2007 12:42:14 +0900
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 06 Mar 2007 19:41:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: Your message of Wed, 07 Mar 2007 10:37:23 +0900. <20070307013723.GA2458%yamahata@xxxxxxxxxxxxx>
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>
References: <20070306145920.GA26842%yamahata@xxxxxxxxxxxxx> <200703062355.l26NtJJ27240@xxxxxxxxxxxxxxxxxxxxxxxxxxx><20070307013723.GA2458%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
You (yamahata) said:
>>   Currently, without this patch, hypervisor crashes in PV-on-HVM
>> initialization phase..
>> 
>>   * at share_info page remapping: success
>>     - called from HYPERVISOR_memory_op in init_xen_info()..
>>       (unmodified_drivers/linux-2.6/platform-pci/platform-pci.c)
>>   * at grant table page remapping: crash
>>     - called from gnttab_init() in init_xen_info()
>>     - call tree in driver code is 
>>       gnttab_init() -> gnttab_resume() -> gnttab_map()
>>          -> HYPERVISOR_memory_op
>>       (linux-2.6-xen-sparse/drivers/xen/core/gnttab.c)
>>     - at guest_physmap_add_page() in hypervisor code,
>
> 
> The grant table shared pages are owned by the domain
> so that get_page() shouldn't fail.
> 
> Why get_page() fails?
> The c/s 14010:01476c7804b2 of xen-ia64-unstable.hg twists
> the grant table initialization a little.
> Does it affect on vt-i domain initialization?

  I've checked the reason of get_page() failing, so the domain
owner is correct, but the reference counter becomes zero at the
crash point.. 

  And, I've tracked the counter, so it be cleared below:

[xen/arch/ia64/xen/mm.c]
....
long
arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
{
....
        /* Unmap from old location, if any. */
        gpfn = get_gpfn_from_mfn(mfn);
        if (gpfn != INVALID_M2P_ENTRY)
            guest_physmap_remove_page(d, gpfn, mfn);
....


  I'll investigate it more.

Thanks,
- Tsunehisa Doi


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