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] [xen-unstable] [IA64] Use xc_map_foreign_pages() in copy

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 Sep 2007 15:30:48 -0700
Delivery-date: Tue, 11 Sep 2007 15:34:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram(), Xen patchbot-unstable <=