From: Ian Campbell <ian.campbell@citrix.com>
To: Julien Grall <julien.grall@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org, Keir Fraser <keir@xen.org>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Jan Beulich <jbeulich@suse.com>, Tim Deegan <tim@xen.org>
Subject: Re: [PATCH 2/4] xen/public: arm: Rework __guest_handle_param*
Date: Mon, 2 Nov 2015 15:49:16 +0000 [thread overview]
Message-ID: <1446479356.3088.80.camel@citrix.com> (raw)
In-Reply-To: <563783A3.2090802@citrix.com>
On Mon, 2015-11-02 at 15:39 +0000, Julien Grall wrote:
> On 02/11/15 15:35, Ian Campbell wrote:
> > On Mon, 2015-11-02 at 15:24 +0000, Julien Grall wrote:
> > > Hi Stefano,
> > >
> > > On 02/11/15 15:19, Stefano Stabellini wrote:
> > > > On Fri, 30 Oct 2015, Julien Grall wrote:
> > > > > __guest_handle_param is used to represent a guest pointer stored
> > > > > pass
> > > > > as
> > > > > an hypercall parameters. They are the same size as the native
> > > > > register
> > > > > for the architecture. It will be 32-bit on ARM32 and 64-bit on
> > > > > ARM64.
> > > > >
> > > > > As the __guest_handle_param will always be the size of a native
> > > > > pointer, there is no need to have a union with an unsigned long.
> > > > >
> > > > > Note that unsigned long may be not equivalent to the size of a
> > > > > pointer
> > > > > on ARM64. It depends whether the software is build using the LP64
> > > > > or
> > > > > LLP64 data model. The size of an unsigned long in the latter will
> > > > > be
> > > > > 32-bit.
> > > > >
> > > > > Signed-off-by: Julien Grall <julien.grall@citrix.com>
> > > >
> > > > Obviously this is going to break set_xen_guest_handle_raw. I don't
> > > > think
> > > > this cannot be committed separately to the change to
> > > > set_xen_guest_handle_raw.
> > >
> > > Well, all the usage of set_xen_guest_handle_raw within the hypervisor
> > > are in compat and kexec which is not built for ARM.
> >
> > Shall we drop it from ARM then?
>
> No. Sorry it wasn't clear on my previous mail, I was only speaking about
> the usage of set_xen_guest_handle_raw on a XEN_GUEST_HANDLE_PARAM.
>
> set_xen_guest_handle_raw is used by the guest/toolstack to set a pointer
> in a structure. All those usages are done with a GUEST_HANDLE and not a
> GUEST_HANDLE_PARAM.
Ah yes, if I'd have thought about it I could have worked that out myself,
sorry.
Ian.
next prev parent reply other threads:[~2015-11-02 15:49 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-30 18:13 [PATCH 0/4] xen/public: arm: rework set_xen_guest_handle_raw Julien Grall
2015-10-30 18:13 ` [PATCH 1/4] xen/public: arm: Clarify the name of guest handle structures Julien Grall
2015-11-02 15:14 ` Stefano Stabellini
2015-10-30 18:13 ` [PATCH 2/4] xen/public: arm: Rework __guest_handle_param* Julien Grall
2015-11-02 15:19 ` Stefano Stabellini
2015-11-02 15:24 ` Julien Grall
2015-11-02 15:35 ` Ian Campbell
2015-11-02 15:39 ` Julien Grall
2015-11-02 15:49 ` Ian Campbell [this message]
2015-10-30 18:13 ` [PATCH 3/4] xen/public: Don't expose XEN_GUEST_HANDLE_PARAM outside of the hypervisor Julien Grall
2015-11-02 13:45 ` Jan Beulich
2015-11-02 13:52 ` Stefano Stabellini
2015-10-30 18:13 ` [PATCH 4/4] xen/public: arm: rework the macro set_xen_guest_handle_raw Julien Grall
2015-11-02 15:55 ` Stefano Stabellini
2015-11-02 16:15 ` Jan Beulich
2015-11-03 12:35 ` Ian Campbell
2015-11-03 14:01 ` Julien Grall
2015-11-03 14:34 ` Ian Campbell
2015-11-04 11:17 ` Julien Grall
2015-11-04 11:27 ` Ian Campbell
2015-11-04 11:40 ` Julien Grall
2015-11-04 14:29 ` Ian Campbell
2015-11-04 14:42 ` Julien Grall
2015-11-04 14:54 ` Ian Campbell
2015-11-04 15:19 ` Stefano Stabellini
2015-11-04 15:20 ` Ian Jackson
2015-11-04 15:45 ` Ian Jackson
2015-11-04 15:26 ` Ian Campbell
2015-11-04 15:46 ` Ian Jackson
2015-11-04 16:04 ` Ian Campbell
2015-11-03 14:18 ` Stefano Stabellini
2015-11-03 15:25 ` Julien Grall
2015-11-04 16:22 ` Ian Jackson
2015-11-04 16:24 ` Ian Jackson
2015-11-04 16:39 ` Jan Beulich
2015-11-04 16:50 ` Ian Jackson
2015-11-04 16:59 ` Julien Grall
2015-11-04 17:05 ` Jan Beulich
2015-11-04 17:06 ` Ian Jackson
2015-11-05 8:37 ` Jan Beulich
2015-11-06 12:10 ` Ian Campbell
2015-11-02 13:42 ` [PATCH 0/4] xen/public: arm: rework set_xen_guest_handle_raw Jan Beulich
2015-11-02 13:45 ` Julien Grall
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=1446479356.3088.80.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=julien.grall@citrix.com \
--cc=keir@xen.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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.