All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Jean Guyader <jean.guyader@gmail.com>
Cc: Tim Deegan <tim@xen.org>, Jean Guyader <jean.guyader@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 4/4] xen: Add V4V implementation
Date: Fri, 05 Oct 2012 09:52:07 +0100	[thread overview]
Message-ID: <506EBBD7020000780009FD84@nat28.tlf.novell.com> (raw)
In-Reply-To: <CAEBdQ91uOpfXNPg7mSvfL5cX_0=L3irewdmuLtYzB18d+AL07A@mail.gmail.com>

>>> On 04.10.12 at 19:00, Jean Guyader <jean.guyader@gmail.com> wrote:
> On 4 October 2012 16:12, Tim Deegan <tim@xen.org> wrote:
>> AIUI you need to use compat_handle_okay() instead of guest_handle_okay()
>> to check the handles if is_pv_32on64_domain(current).
>>
> 
> How about something like that?

Could be done, but not by modifying guest_handle_okay() (which
penalizes all its users), nor by (incorrectly) open-coding
compat_handle_okay(). And neither should any such implementation
use is_pv_32on64_domain() twice - use the conditional operator
instead (that way you also avoid evaluating arguments twice).

So you could either introduce e.g. any_guest_handle_okay(), or
switch all current users of guest_handle_okay() to, say,
native_handle_okay() (perhaps with the exception of those where
the compat mode wrapper source files #define guest_handle_okay()
to compat_handle_okay(), which could then be dropped).

Jan

  reply	other threads:[~2012-10-05  8:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20 11:41 [PATCH 0/4] Add V4V to Xen (v6) Jean Guyader
2012-09-20 11:41 ` [PATCH 1/4] xen: Introduce guest_handle_for_field Jean Guyader
2012-09-20 11:42 ` [PATCH 2/4] xen: virq, remove VIRQ_XC_RESERVED Jean Guyader
2012-09-20 11:42 ` [PATCH 3/4] xen: events, exposes evtchn_alloc_unbound_domain Jean Guyader
2012-09-20 11:42 ` [PATCH 4/4] xen: Add V4V implementation Jean Guyader
2012-09-20 12:20   ` Jan Beulich
2012-10-04 12:03     ` Jean Guyader
2012-10-04 12:11       ` Jan Beulich
2012-10-04 12:41         ` Jean Guyader
2012-10-04 15:03         ` Jean Guyader
2012-10-04 15:12           ` Tim Deegan
2012-10-04 17:00             ` Jean Guyader
2012-10-05  8:52               ` Jan Beulich [this message]
2012-10-05  9:07                 ` Jan Beulich
2012-10-08 10:24                   ` Jean Guyader
     [not found]         ` <CAEBdQ92Box+2PMohpDi6Sy=PXFmP_sxYb0ZYSOCU4U3iPdocqQ@mail.gmail.com>
2012-10-04 15:07           ` Jan Beulich
2012-09-22 13:47   ` Julian Pidancet
2012-09-27  9:37     ` Jean Guyader
  -- strict thread matches above, loose matches on Subject: below --
2012-09-20  9:47 [PATCH 0/4] Add V4V to Xen v5 Jean Guyader
2012-09-20  9:47 ` [PATCH 4/4] xen: Add V4V implementation Jean Guyader
2012-09-13 18:09 [RFC][PATCH 0/4] Add V4V to Xen Jean Guyader
2012-09-13 18:09 ` [PATCH 4/4] xen: Add V4V implementation Jean Guyader
2012-09-14  9:54   ` 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=506EBBD7020000780009FD84@nat28.tlf.novell.com \
    --to=jbeulich@suse.com \
    --cc=jean.guyader@citrix.com \
    --cc=jean.guyader@gmail.com \
    --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.