From: Patrick Colp <Patrick.Colp@citrix.com>
To: Keir Fraser <Keir.Fraser@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Use a single mmap interface in libxc
Date: Mon, 20 Jul 2009 10:47:56 +0100 [thread overview]
Message-ID: <4A643D4C.8010708@citrix.com> (raw)
In-Reply-To: <C689F990.FE4E%keir.fraser@eu.citrix.com>
The idea is that the privcmd interface can also only have one mmap function
instead of two (something to be done to privcmd in pvops). This simplifies
things and removes unnecessary redundant code. While map_batch might not be the
ideal interface, I think it's a step in the right direction, anyway.
Also, for the project I'm working on, I need to intercept mmap calls. This
required me to have to put similar code in two places and, as it turned out,
modifying the mmap_foreign_range functions was going to be difficult. mmap_batch
can do everything required for map_foreign_range (and more), so it seemed like
the thing to do was to use that for everything so there was just the one call
into privcmd (and just one spot to edit code).
Patrick
Keir Fraser wrote:
> On 20/07/2009 10:27, "Patrick Colp" <Patrick.Colp@citrix.com> wrote:
>
>> # HG changeset patch
>> # User Patrick Colp <Patrick.Colp@citrix.com>
>> # Date 1248081941 -3600
>> # Node ID 8e1301247d784ffb98b0721d9f6f46daa0640af1
>> # Parent 91407452cdb62f427c74e227956dc34a107cab46
>> Use a single mmap interface in libxc.
>>
>> This patch modifies xc_map_foreign_range and xc_map_foreign_ranges to call
>> mmap_map_foreign_batch. This eliminates the need for multiple privcmd mmap
>> ioctls. Now only IOCTL_PRIVCMD_MMAPBATCH is required.
>
> Some explanation of why this is a useful improvement would be nice.
>
> -- Keir
>
>
prev parent reply other threads:[~2009-07-20 9:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 9:27 [PATCH] Use a single mmap interface in libxc Patrick Colp
2009-07-20 9:38 ` Keir Fraser
2009-07-20 9:47 ` Patrick Colp [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A643D4C.8010708@citrix.com \
--to=patrick.colp@citrix.com \
--cc=Keir.Fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.