All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cao jin <caoj.fnst@cn.fujitsu.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] doc/memory.txt: fix typo
Date: Thu, 25 Feb 2016 21:30:50 +0800	[thread overview]
Message-ID: <56CF020A.8030704@cn.fujitsu.com> (raw)
In-Reply-To: <CAFEAcA944NgbOvv3mYH2xvEup2V-UevPXPfew=Y2N7sYkvvxpQ@mail.gmail.com>



On 02/25/2016 06:00 PM, Peter Maydell wrote:
> On 25 February 2016 at 09:32, Cao jin <caoj.fnst@cn.fujitsu.com> wrote:

>> diff --git a/docs/memory.txt b/docs/memory.txt
>> index 8745f76..1a3ad622 100644
>> --- a/docs/memory.txt
>> +++ b/docs/memory.txt
>> @@ -297,7 +297,7 @@ various constraints can be supplied to control how these callbacks are called:
>>    - .valid.min_access_size, .valid.max_access_size define the access sizes
>>      (in bytes) which the device accepts; accesses outside this range will
>>      have device and bus specific behaviour (ignored, or machine check)
>> - - .valid.aligned specifies that the device only accepts naturally aligned
>> + - .valid.unaligned specifies that the device only accepts naturally aligned
>>      accesses.  Unaligned accesses invoke device and bus specific behaviour.
>
> This doesn't look like the right change, because (a) a field named
> unaligned which you set true to specifiy that unaligned accesses
> are invalid would be very confusing and (b) the comment in the
> header file says that 'valid.unaligned' means that the device does
> support unaligned accesses.
>

the reason that I think it is a typo is: from the pattern ".xxx.yyy", 
this section looks like a explanation(or detailed comment) of struct 
MemoryRegionOps`s fields, isn`t it? If yes, all the others match with 
the structure, except this /.valid.aligned/

I admit that, the description like ".valid.unaligned specifies that the 
device only accepts naturally aligned accesses" looks very confusing. 
But from the only caller memory_region_access_valid(), I think the 
original maybe not quite good? how about this:

/.valid.unaligned specifies that the device accepts unaligned accesses. 
  If false, Unaligned accesses invoke device and bus specific behaviour/


-- 
Yours Sincerely,

Cao jin




WARNING: multiple messages have this Message-ID (diff)
From: Cao jin <caoj.fnst@cn.fujitsu.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] doc/memory.txt: fix typo
Date: Thu, 25 Feb 2016 21:30:50 +0800	[thread overview]
Message-ID: <56CF020A.8030704@cn.fujitsu.com> (raw)
In-Reply-To: <CAFEAcA944NgbOvv3mYH2xvEup2V-UevPXPfew=Y2N7sYkvvxpQ@mail.gmail.com>



On 02/25/2016 06:00 PM, Peter Maydell wrote:
> On 25 February 2016 at 09:32, Cao jin <caoj.fnst@cn.fujitsu.com> wrote:

>> diff --git a/docs/memory.txt b/docs/memory.txt
>> index 8745f76..1a3ad622 100644
>> --- a/docs/memory.txt
>> +++ b/docs/memory.txt
>> @@ -297,7 +297,7 @@ various constraints can be supplied to control how these callbacks are called:
>>    - .valid.min_access_size, .valid.max_access_size define the access sizes
>>      (in bytes) which the device accepts; accesses outside this range will
>>      have device and bus specific behaviour (ignored, or machine check)
>> - - .valid.aligned specifies that the device only accepts naturally aligned
>> + - .valid.unaligned specifies that the device only accepts naturally aligned
>>      accesses.  Unaligned accesses invoke device and bus specific behaviour.
>
> This doesn't look like the right change, because (a) a field named
> unaligned which you set true to specifiy that unaligned accesses
> are invalid would be very confusing and (b) the comment in the
> header file says that 'valid.unaligned' means that the device does
> support unaligned accesses.
>

the reason that I think it is a typo is: from the pattern ".xxx.yyy", 
this section looks like a explanation(or detailed comment) of struct 
MemoryRegionOps`s fields, isn`t it? If yes, all the others match with 
the structure, except this /.valid.aligned/

I admit that, the description like ".valid.unaligned specifies that the 
device only accepts naturally aligned accesses" looks very confusing. 
But from the only caller memory_region_access_valid(), I think the 
original maybe not quite good? how about this:

/.valid.unaligned specifies that the device accepts unaligned accesses. 
  If false, Unaligned accesses invoke device and bus specific behaviour/


-- 
Yours Sincerely,

Cao jin

  parent reply	other threads:[~2016-02-25 13:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-25  9:32 [Qemu-trivial] [PATCH] doc/memory.txt: fix typo Cao jin
2016-02-25  9:32 ` [Qemu-devel] " Cao jin
2016-02-25 10:00 ` [Qemu-trivial] " Peter Maydell
2016-02-25 10:00   ` Peter Maydell
2016-02-25 10:05   ` [Qemu-trivial] " Cao jin
2016-02-25 10:05     ` Cao jin
2016-02-25 13:30   ` Cao jin [this message]
2016-02-25 13:30     ` Cao jin
2016-02-25 14:24     ` [Qemu-trivial] " Peter Maydell
2016-02-25 14:24       ` Peter Maydell
2016-02-26  2:36       ` [Qemu-trivial] " Cao jin
2016-02-26  2:36         ` Cao jin
2016-03-03 14:45       ` [Qemu-trivial] " Paolo Bonzini
2016-03-03 14:45         ` Paolo Bonzini
2016-03-03 14:54         ` [Qemu-trivial] " Peter Maydell
2016-03-03 14:54           ` Peter Maydell

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=56CF020A.8030704@cn.fujitsu.com \
    --to=caoj.fnst@cn.fujitsu.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.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.