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] Patch for PV-on-HVM for IPF

To: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-ia64-devel] Patch for PV-on-HVM for IPF
From: DOI Tsunehisa <Doi.Tsunehisa@xxxxxxxxxxxxxx>
Date: Wed, 27 Sep 2006 18:44:27 +0900
Delivery-date: Wed, 27 Sep 2006 02:43:30 -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
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)
Hi all,

  Currently, we are testing PV-on-HVM driver for IPF. so, we found
a problem that hypervisor crashes during VT-i domain destruction
with PV-on-HVM driver.

  The procedure to reproduce this problem are:

   * Create a VT-i domain.
     [dom0]# xm create -f hvm.conf
   * Insert modules for PV-on-HVM on the domain.
     [domvti]# insmod xen-platform-pci.ko
     [domvti]# insmod xenbus.ko
     [domvti]# insmod xen-vbd.ko
     [domvti]# insmod xen-vnif.ko
   * Activate VNIF network interface.
     [dom0]# xm network-attach <domid> eth1
     [domvti]# ifconfig eth1 up
   * Destruct the domain
     [dom0]# xm destroy <domid>
     ..... hypervisor crash  ....

  We were investigating the hypervisor crash mechanism, thus we found
a reason of it.

  * VNIF of PV-on-HVM uses gnttab_copy() function.
    - it's used for copy-method of VNIF backend.
    - it needs to refer p2m table.
  * gnttab_copy() function may be called during the domain destruction.
    - it's called by dom0 VNIF backend.
  * Hypervisor invalidates p2m table at first during the destruction.
    - gnttab_copy() won't be able to refer p2m table, thus it occurs
      hypervisor crash.
    - In x86 code, p2m table invalidation is delayed at last phase of
      domain destruction.
      => but we don't like it. it seems that p2m table exists after
         memory relinquised.

  So, I'll post a patch to avoid hypervisor crash.

   * pv-avoid-crash.patch
     + modify p2m table converter (gmfn_to_mfn_foreign())
       - return INVALID_MFN during VT-i domain destruction

  We tested that the problem is solved.

Thanks,
- Tsunehisa Doi


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