From: Markus Armbruster Subject: Re: [PATCH] xc_map_foreign_pages(), a convenient alternative to xc_map_foreign_batch() Date: Thu, 06 Sep 2007 13:20:13 +0200 Message-ID: <87642oavma.fsf@pike.pond.sub.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: (Kevin Tian's message of "Thu\, 6 Sep 2007 16\:49\:55 +0800") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Tian, Kevin" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org "Tian, Kevin" writes: >>From: Keir Fraser [mailto:Keir.Fraser@cl.cam.ac.uk] >>Sent: 2007=E5=B9=B49=E6=9C=886=E6=97=A5 16:47 >> >>On 6/9/07 08:44, "Tian, Kevin" wrote: >> >>> Just curious why this can't be fixed in kernel driver? Is there case th= at >>> caller is tolerable with partial mapping? >> >>We would need an extra command in the kernel driver, as the current >>partial-success semantics are used appropriately by some callers. Doing >>it >>in libxc avoids requiring a kernel upgrade to fix this issue. >> >> -- Keir > > Interesting... any example I can learn? Yes, compatibility is one concern. > > Thanks, > Kevin Have a look at qemu_remap_bucket() in tools/ioemu/vl.c.