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-changelog

[Xen-changelog] Fix blkif 'grant-table-ification'

# HG changeset patch
# User smh22@xxxxxxxxxxxxxxxxxxxx
# Node ID b522a3a4d525b1b5ead7617915a6fec23fd07dba
# Parent  1883ec07708b5ce77c1daa1d7a5e15f7ba0feac8

Fix blkif 'grant-table-ification' 

Signed-off-by: Steven Hand <steve@xxxxxxxxxxxxx>

diff -r 1883ec07708b -r b522a3a4d525 
linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c   Wed Jul  6 
15:38:25 2005
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c   Wed Jul  6 
16:50:57 2005
@@ -219,9 +219,7 @@
         op.ref            = ref;
         op.dom            = domid;
        
-        if(unlikely(HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref, &op, 
1))) {
-            BUG();
-        }
+        BUG_ON( HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref, &op, 1) );
        
         handle = op.handle;
        
@@ -231,10 +229,6 @@
             vfree(vma->addr);
             return;
         }
-
-        phys_to_machine_mapping[__pa(VMALLOC_VMADDR(vma->addr)) >>
-                                PAGE_SHIFT] =
-                      FOREIGN_FRAME(shmem_frame);
 
         blkif->shmem_ref = ref;
         blkif->shmem_handle = handle;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix blkif 'grant-table-ification', Xen patchbot -unstable <=