[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram()



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1189454194 21600
# Node ID 7d9b20d91102803532be2cc1d1b00733ceab12cc
# Parent  1c392e1923792151feb193297217ecede643062c
[IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram()

use xc_map_foreign_pages() where possible

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 tools/libxc/ia64/xc_ia64_hvm_build.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 1c392e192379 -r 7d9b20d91102 tools/libxc/ia64/xc_ia64_hvm_build.c
--- a/tools/libxc/ia64/xc_ia64_hvm_build.c      Mon Sep 10 13:52:19 2007 -0600
+++ b/tools/libxc/ia64/xc_ia64_hvm_build.c      Mon Sep 10 13:56:34 2007 -0600
@@ -701,8 +701,9 @@ copy_from_GFW_to_nvram(int xc_handle, ui
     for ( i=0; i<nr_pages; i++ )
         pfn_list[i] = (addr_from_GFW_4k_align >> PAGE_SHIFT) + i;
 
-    tmp_ptr = (char *)xc_map_foreign_batch(xc_handle, dom,
-    PROT_READ | PROT_WRITE, pfn_list, nr_pages);
+    tmp_ptr = (char *)xc_map_foreign_pages(xc_handle, dom,
+                                           PROT_READ | PROT_WRITE,
+                                           pfn_list, nr_pages);
     if ( NULL == tmp_ptr )
     {
         PERROR("Cannot get nvram data from GFW!\n");

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.