All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>,
	Julien Grall <julien.grall@citrix.com>
Cc: xen-devel@lists.xen.org, julien.grall@linaro.org, tim@xen.org,
	stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH v2 05/19] xen: arm: Add and use r/o+raz and w/o+wi helpers
Date: Fri, 8 May 2015 11:33:34 +0100	[thread overview]
Message-ID: <554C90FE.50801@citrix.com> (raw)
In-Reply-To: <1431080174.2660.421.camel@citrix.com>

Hi Ian,

On 08/05/15 11:16, Ian Campbell wrote:
> On Sat, 2015-04-25 at 22:16 +0500, Julien Grall wrote:
>> Hi Ian,
>>
>> On 17/04/2015 19:01, Ian Campbell wrote:
>>> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
>>> ---
>>> v2: Move last paramter of a handle_ro_raz call to next patch where it
>>>      belongs.
>>> ---
>>>   xen/arch/arm/traps.c |   52 ++++++++++++++++++++++++++++++++------------------
>>>   1 file changed, 33 insertions(+), 19 deletions(-)
>>>
>>> diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
>>> index 8b1846a..b54aef6 100644
>>> --- a/xen/arch/arm/traps.c
>>> +++ b/xen/arch/arm/traps.c
>>> @@ -1587,6 +1587,34 @@ static void handle_raz_wi(struct cpu_user_regs *regs,
>>>       advance_pc(regs, hsr);
>>>   }
>>>
>>> +/* Write only + write ignore */
>>
>> [..]
>>
>>> +/* Read only + read as zero */
>>
>> I'm not sure if we finished the discussion on those comment on v1 before 
>> you sent the v2.
> 
> I think we hadn't.
> 
>> The "+" is very confusing for me because it indicates two parts: write 
>> only and write ignore (same for the read). Both part doesn't really fit 
>> together. Although this helper clearly choose to implement WO as WI 
>> (resp. RO as RAZ).
> 
>> I think this should be clearer in order to avoid people think this can 
>> be used for RO but with a different value than 0.
> 
> For v3 I've made the change I proposed in
> <1429266891.25195.260.camel@citrix.com>
> 
> Specifically "Write only as write ignore" and "Read only as read as
> zero" (essentially s/+/as/)
> 
> Is that clear enough do you think?

Yes. Thanks.

With this changes:

Reviewed-by: Julien Grall <julien.grall@citrix.com>

Regards,

-- 
Julien Grall

  reply	other threads:[~2015-05-08 10:33 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17 14:01 [PATCH v2 00/19] xen: arm: cleanup traps.c Ian Campbell
2015-04-17 14:01 ` [PATCH v2 01/19] xen: arm: constify union hsr and struct hsr_* where possible Ian Campbell
2015-04-17 14:01 ` [PATCH v2 02/19] xen: arm: Fix handling of ICC_{SGI1R, SGI0R, ASGI1R}_EL1 Ian Campbell
2015-04-17 14:01 ` [PATCH v2 03/19] xen: arm: call inject_undef_exception directly Ian Campbell
2015-04-17 14:01 ` [PATCH v2 04/19] xen: arm: provide and use a handle_raz_wi helper Ian Campbell
2015-04-25 17:09   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 05/19] xen: arm: Add and use r/o+raz and w/o+wi helpers Ian Campbell
2015-04-25 17:16   ` Julien Grall
2015-05-08 10:16     ` Ian Campbell
2015-05-08 10:33       ` Julien Grall [this message]
2015-04-17 14:01 ` [PATCH v2 06/19] xen: arm: add minimum exception level argument to trap handler helpers Ian Campbell
2015-04-25 17:23   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 07/19] xen: arm: Annotate trap handler for HSR_EL2.{TWI, TWE, TSC} Ian Campbell
2015-04-25 17:25   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 08/19] xen: arm: implement handling of ACTLR_EL1 trap Ian Campbell
2015-04-25 17:29   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 09/19] xen: arm: Annotate registers trapped by HCR_EL1.TIDCP Ian Campbell
2015-04-17 14:01 ` [PATCH v2 10/19] xen: arm: implement handling of registers trapped by CPTR_EL2.TTA Ian Campbell
2015-04-25 17:42   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 11/19] xen: arm: Annotate handlers for CPTR_EL2.Tx Ian Campbell
2015-04-25 17:44   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 12/19] xen: arm: Annotate the handlers for HSTR_EL2.T15 Ian Campbell
2015-04-25 17:48   ` Julien Grall
2015-05-08 10:17     ` Ian Campbell
2015-05-08 10:35       ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 13/19] xen: arm: Annotate registers trapped by MDCR_EL2.TDRA Ian Campbell
2015-04-25 17:50   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 14/19] xen: arm: Annotate registers trapped by MDCR_EL2.TDOSA Ian Campbell
2015-04-25 17:53   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 15/19] xen: arm: Annotate registers trapped by MDCR_EL2.TDA Ian Campbell
2015-04-25 17:55   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 16/19] xen: arm: Annotate registers trapped by MDCR_EL2.TPM and TPMCR Ian Campbell
2015-04-26 13:46   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 17/19] xen: arm: Remove CNTPCT_EL0 trap handling Ian Campbell
2015-04-17 14:01 ` [PATCH v2 18/19] xen: arm: Annotate registers trapped when CNTHCTL_EL2.EL1PCEN == 0 Ian Campbell
2015-04-26 13:48   ` Julien Grall
2015-04-17 14:01 ` [PATCH v2 19/19] xen: arm: Annotate source of ICC SGI register trapping Ian Campbell
2015-05-08 10:37 ` [PATCH v2 00/19] xen: arm: cleanup traps.c Julien Grall
2015-05-08 10:57   ` Ian Campbell

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=554C90FE.50801@citrix.com \
    --to=julien.grall@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=stefano.stabellini@eu.citrix.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.