From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>, Tim Deegan <tim@xen.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v3] hypercall/mem: Introduce XENMEM_machphys_compat_mfn_list
Date: Tue, 22 Apr 2014 10:33:27 +0100 [thread overview]
Message-ID: <53563767.3060502@citrix.com> (raw)
In-Reply-To: <53564184020000780000A932@nat28.tlf.novell.com>
On 22/04/14 09:16, Jan Beulich wrote:
>>>> On 18.04.14 at 18:50, <andrew.cooper3@citrix.com> wrote:
>> I am happy for this to live as part of my "migration v2" series, but is
>> presented here for individual review.
> I guess this can go in as soon as it's ready, since even if your save/
> restore re-write doesn't make it we still ought to use this to eliminate
> the bogus workaround in the tools.
>
>> --- a/xen/include/public/memory.h
>> +++ b/xen/include/public/memory.h
>> @@ -465,6 +465,16 @@ DEFINE_XEN_GUEST_HANDLE(xen_mem_sharing_op_t);
>> * The zero value is appropiate.
>> */
>>
>> +/*
>> + * For a compat toolstack domain, this is identical to
>> + * XENMEM_machphys_mfn_list.
>> + *
>> + * For a non compat toolstack domain, this functions similarly to
>> + * XENMEM_machphys_mfn_list, but returns the mfns making up the compatibility
>> + * m2p table.
>> + */
>> +#define XENMEM_machphys_compat_mfn_list 25
>> +
>> #endif /* defined(__XEN__) || defined(__XEN_TOOLS__) */
> Is there a strong reason to restrict its visibility to tool stacks? The
> implementation is a simply clone of XENMEM_machphys_mfn_list's,
> which isn't restricted. If the answer is "no", I'd suggest moving
> this addition next to the definition of XENMEM_machphys_mfn_list.
>
> Jan
>
I didn't explicitly intend to limit its visibility. I was more
concerned with keeping the hypercall numbers in order because it was
non-trivial to work out that 25 was the next free number.
This hypercall is only useful for toolstacks, and indeed only the first
extent, but it is probably better living with the same scope as the other.
~Andrew
prev parent reply other threads:[~2014-04-22 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-18 16:50 [PATCH v3] hypercall/mem: Introduce XENMEM_machphys_compat_mfn_list Andrew Cooper
2014-04-22 8:16 ` Jan Beulich
2014-04-22 9:33 ` Andrew Cooper [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=53563767.3060502@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/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.