All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: tim@xen.org, sstabellini@kernel.org, wei.liu2@citrix.com,
	andrew.cooper3@citrix.com, Ian.Jackson@eu.citrix.com,
	george.dunlap@citrix.com, xen-devel@lists.xen.org,
	shannon.zhao@linaro.org
Subject: Re: [for-4.7 v2 1/2] xen: XENMEM_add_to_physmap_batch: Mark 'foreign_id' as reserved for dev_mmio
Date: Fri, 27 May 2016 16:16:14 +0100	[thread overview]
Message-ID: <574864BE.1080203@arm.com> (raw)
In-Reply-To: <5748367202000078000EF268@prv-mh.provo.novell.com>

Hi Jan,

On 27/05/16 10:58, Jan Beulich wrote:
>>>> On 25.05.16 at 17:56, <julien.grall@arm.com> wrote:
>> --- a/xen/common/compat/memory.c
>> +++ b/xen/common/compat/memory.c
>> @@ -253,6 +253,8 @@ int compat_memory_op(unsigned int cmd, XEN_GUEST_HANDLE_PARAM(void) compat)
>>               unsigned int size = cmp.atpb.size;
>>               xen_ulong_t *idxs = (void *)(nat.atpb + 1);
>>               xen_pfn_t *gpfns = (void *)(idxs + limit);
>> +            enum XLAT_add_to_physmap_batch_u u =
>> +                XLAT_add_to_physmap_batch_u_res0;
>
> Here you're cheating, and to help future readers understand you are
> you should say why this is okay in a comment. Or alternatively handle
> things properly.

Well, this is the case on other place having to convert union (see 
XENMEM_get_vnumainfo). So I though it was valid.

I will add a comment here.

>
>> --- a/xen/include/public/memory.h
>> +++ b/xen/include/public/memory.h
>> @@ -259,7 +259,15 @@ struct xen_add_to_physmap_batch {
>>
>>       /* Number of pages to go through */
>>       uint16_t size;
>> -    domid_t foreign_domid; /* IFF gmfn_foreign */
>> +
>> +#if __XEN_INTERFACE_VERSION__ < 0x00040700
>> +    domid_t foreign_domid; /* IFF gmfn_foreign. Should be 0 for other
>> spaces. */
>> +#else
>> +    union add_to_physmap_batch_extra {
>
> This lacks a xen_ prefix.

I will fix it.

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-05-27 15:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25 15:56 [for-4.7 v2 0/2] xen: XENMEM_add_to_phymap_batch: Mark 'foreign_id' as reserved for dev_mmio Julien Grall
2016-05-25 15:56 ` [for-4.7 v2 1/2] xen: XENMEM_add_to_physmap_batch: " Julien Grall
2016-05-27  9:58   ` Jan Beulich
2016-05-27 15:16     ` Julien Grall [this message]
2016-05-27 16:05       ` Jan Beulich
2016-05-25 15:56 ` [for-4.7 v2 2/2] xen/arm: Document the behavior of XENMAPSPACE_dev_mmio Julien Grall
2016-05-27  9:51   ` Jan Beulich

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=574864BE.1080203@arm.com \
    --to=julien.grall@arm.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=shannon.zhao@linaro.org \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=wei.liu2@citrix.com \
    --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.