diff options
author | Alex Williamson <alex.williamson@hp.com> | 2007-09-10 13:56:34 -0600 |
---|---|---|
committer | Alex Williamson <alex.williamson@hp.com> | 2007-09-10 13:56:34 -0600 |
commit | 37eb10eb5998d0775b07f80ddc36ee59c35784a5 (patch) | |
tree | dd04445c8e4f5211c679a0fbf8792c6dbc8c82ee /tools | |
parent | 6dbb87d47b954f5488c24318e26a9d7e6cdff27c (diff) | |
download | xen-37eb10eb5998d0775b07f80ddc36ee59c35784a5.tar.gz xen-37eb10eb5998d0775b07f80ddc36ee59c35784a5.tar.bz2 xen-37eb10eb5998d0775b07f80ddc36ee59c35784a5.zip |
[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@valinux.co.jp>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxc/ia64/xc_ia64_hvm_build.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/libxc/ia64/xc_ia64_hvm_build.c b/tools/libxc/ia64/xc_ia64_hvm_build.c index 5147f051e2..a5a7cc8aa3 100644 --- a/tools/libxc/ia64/xc_ia64_hvm_build.c +++ b/tools/libxc/ia64/xc_ia64_hvm_build.c @@ -701,8 +701,9 @@ copy_from_GFW_to_nvram(int xc_handle, uint32_t dom, int nvram_fd) 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"); |