All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Michael Tokarev <mjt@tls.msk.ru>,
	Jan Kiszka <jan.kiszka@siemens.com>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] docs/memory.txt: Fix document on MMIO operations
Date: Mon, 05 May 2014 10:02:06 +0200	[thread overview]
Message-ID: <5367457E.40306@redhat.com> (raw)
In-Reply-To: <1399276421-24949-1-git-send-email-famz@redhat.com>

Il 05/05/2014 09:53, Fam Zheng ha scritto:
> .impl.valid should be .impl.unaligned and the description needs some
> fixes.
>
> .old_portio is removed since commit b40acf99b (ioport: Switch
> dispatching to memory core layer).
>
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>  docs/memory.txt       | 10 +++++-----
>  include/exec/memory.h |  2 +-
>  2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/docs/memory.txt b/docs/memory.txt
> index 22eaec7..5bdbdb3 100644
> --- a/docs/memory.txt
> +++ b/docs/memory.txt
> @@ -232,8 +232,8 @@ various constraints can be supplied to control how these callbacks are called:
>     (in bytes) supported by the *implementation*; other access sizes will be
>     emulated using the ones available.  For example a 4-byte write will be
>     emulated using four 1-byte writes, if .impl.max_access_size = 1.
> - - .impl.valid specifies that the *implementation* only supports unaligned
> -   accesses; unaligned accesses will be emulated by two aligned accesses.
> - - .old_portio and .old_mmio can be used to ease porting from code using
> -   cpu_register_io_memory() and register_ioport().  They should not be used
> -   in new code.
> + - .impl.unaligned specifies that the *implementation* supports unaligned
> +   accesses; if false, unaligned accesses will be emulated by two aligned
> +   accesses.
> + - .old_mmio can be used to ease porting from code using
> +   cpu_register_io_memory(). It should not be used in new code.
> diff --git a/include/exec/memory.h b/include/exec/memory.h
> index c084db2..1d55ad9 100644
> --- a/include/exec/memory.h
> +++ b/include/exec/memory.h
> @@ -110,7 +110,7 @@ struct MemoryRegionOps {
>          /* If true, unaligned accesses are supported.  Otherwise all accesses
>           * are converted to (possibly multiple) naturally aligned accesses.
>           */
> -         bool unaligned;
> +        bool unaligned;
>      } impl;
>
>      /* If .read and .write are not present, old_mmio may be used for
>

Applied, thanks!

Paolo

  reply	other threads:[~2014-05-05  8:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-05  7:53 [Qemu-devel] [PATCH] docs/memory.txt: Fix document on MMIO operations Fam Zheng
2014-05-05  8:02 ` Paolo Bonzini [this message]
2014-05-05 10:41 ` Peter Maydell
2014-05-05 10:51   ` Fam Zheng
2014-05-05 11:00     ` Paolo Bonzini

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=5367457E.40306@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=famz@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=mjt@tls.msk.ru \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@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.