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

Re: [Xen-devel] [PATCH] xc_map_foreign_pages(), a convenient alternative

To: Markus Armbruster <armbru@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xc_map_foreign_pages(), a convenient alternative to xc_map_foreign_batch()
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 10 Sep 2007 11:03:00 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 09 Sep 2007 19:03:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <87hcm9cbmh.fsf@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C2FDE025.1517A%Keir.Fraser@xxxxxxxxxxxx> <87hcm9cbmh.fsf@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Wed, Sep 05, 2007 at 06:36:54PM +0200, Markus Armbruster wrote:
> The patch converts only those uses of xc_map_foreign_batch() to
> xc_map_foreign_pages() where I'm 100% sure it's safe.  For the others,
> I'd rather have a second opinion from somebody familiar with the code.
> 
> Discussion of uses:
...
> * main() in tools/ioemu/vl.c, in __ia64__ code
> 
>   Doesn't test for mapping failure.  Likely candidate for
>   xc_map_foreign_pages().

This can't be replaced because some pages, e.g. VGA area [0xA0000, 0xC0000),
can't be mapped.


> * copy_from_GFW_to_nvram() in tools/libxc/ia64/xc_ia64_hvm_build.c
> 
>   Doesn't test for mapping failure.  Likely candidate for
>   xc_map_foreign_pages(), but I have no way to test it.

This can be replaced with xc_map_foreign_pages()
This change will go through xen-ia64-devel.hg.
I'll send the patch to xen-ia64-devel.


> * xc_core_arch_map_p2m() in tools/libxc/xc_core_x86.c
> 
>   This maps a two level page directory: first a a page of pfns for the
>   page directory (live_p2m_frame_list_list), using that pages of pfns
>   for the pages themselves (live_p2m_frame_list), and using that the
>   actual pages.
> 
>   Doesn't test for mapping failure.  Likely candidate for
>   xc_map_foreign_pages().

This can be replaced with xc_map_foreign_pages().

-- 
yamahata

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

<Prev in Thread] Current Thread [Next in Thread>