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 2/5] [RESEND] changes of common files for xen/ia6

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/5] [RESEND] changes of common files for xen/ia64 dom0 vp model: privcmd_mmap
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Sat, 29 Apr 2006 14:51:21 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 28 Apr 2006 22:51:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9db2bc5995019f6a443ef9d287e252a9@xxxxxxxxxxxx>
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: <20060428025207.GH10424%yamahata@xxxxxxxxxxxxx> <9db2bc5995019f6a443ef9d287e252a9@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Fri, Apr 28, 2006 at 02:43:58PM +0100, Keir Fraser wrote:
> 
> On 28 Apr 2006, at 03:52, Isaku Yamahata wrote:
> 
> >introduce xen_arch_privcmd_mmap() to allow xen/ia64 to override 
> >privcmd_mmap()
> >later.
> >xen/ia64 with dom0 vp model also needs direct_remap_pfn_range() to be 
> >called
> >for IOCTL_PRIVCMD_MMAPBATCH.
> >These changes are necessary for xen/ia64 with dom0 vp model.
> 
> Can you describe the use of xen_arch_privcmd_mmap() for ia64? I checked 
> in the other hunks of this patch, but excluded the 
> xen_arch_privcmd_mmap bits for now -- they can go in a separate patch.

It sets its own vma->vm_ops to track mmap/munmap.
When the region is completely unmapped, pages of a foreign domain
are zapped from dom0.

I attached the patch which implements it.
(HYPERVISOR_add_physmap(), HYPERVISOR_zap_physmap() are ia64 specific
hypercalls.)
It can't be applied to xen-unstable.hg nor xen-ia64-unstable.hg
cleanly because it is one of the series patches which is being merged.
The patch will be merged into xen-ia64-unstable.hg in the near future.
(At least I hope so)
I think it can be simplified using PageForeign() and its families.
When I wrote it I did't want to use PG_foreign bit.

-- 
yamahata

Attachment: 9780:ffd79e3ceeda_privcmd_direct_remap_pfn_range_linux.patch
Description: Text document

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