From: David Hildenbrand <david@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Aleksandar Rikalo" <aleksandar.rikalo@syrmia.com>,
"Cornelia Huck" <cohuck@redhat.com>,
"Beniamino Galvani" <b.galvani@gmail.com>,
qemu-s390x@nongnu.org, qemu-arm@nongnu.org,
"Hervé Poussineau" <hpoussin@reactos.org>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Richard Henderson" <rth@twiddle.net>
Subject: Re: [PATCH 1/6] target/s390x/mmu_helper: Use address_space_rw() in place
Date: Tue, 2 Jun 2020 09:11:04 +0200 [thread overview]
Message-ID: <9c368f03-f65a-6932-1145-c28a4700673f@redhat.com> (raw)
In-Reply-To: <20200531175425.10329-2-f4bug@amsat.org>
On 31.05.20 19:54, Philippe Mathieu-Daudé wrote:
> In an effort to remove the cpu_physical_memory_rw() API,
> update s390_cpu_virt_mem_rw() to use a more recent
> address_space_rw() API.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> target/s390x/mmu_helper.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/target/s390x/mmu_helper.c b/target/s390x/mmu_helper.c
> index 7d9f3059cd..632e8a8af4 100644
> --- a/target/s390x/mmu_helper.c
> +++ b/target/s390x/mmu_helper.c
> @@ -529,8 +529,10 @@ int s390_cpu_virt_mem_rw(S390CPU *cpu, vaddr laddr, uint8_t ar, void *hostbuf,
> /* Copy data by stepping through the area page by page */
> for (i = 0; i < nr_pages; i++) {
> currlen = MIN(len, TARGET_PAGE_SIZE - (laddr % TARGET_PAGE_SIZE));
> - cpu_physical_memory_rw(pages[i] | (laddr & ~TARGET_PAGE_MASK),
> - hostbuf, currlen, is_write);
> + address_space_rw(CPU(cpu)->as,
> + pages[i] | (laddr & ~TARGET_PAGE_MASK),
> + MEMTXATTRS_UNSPECIFIED,
> + hostbuf, currlen, is_write);
> laddr += currlen;
> hostbuf += currlen;
> len -= currlen;
>
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David / dhildenb
next prev parent reply other threads:[~2020-06-02 7:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-31 17:54 [PATCH 0/6] exec/memory: Rework some address and access size limits Philippe Mathieu-Daudé
2020-05-31 17:54 ` [PATCH 1/6] target/s390x/mmu_helper: Use address_space_rw() in place Philippe Mathieu-Daudé
2020-06-02 7:11 ` David Hildenbrand [this message]
2020-05-31 17:54 ` [PATCH 2/6] hw/dma/rc4030: Use DMA address space to do DMA accesses Philippe Mathieu-Daudé
2020-05-31 17:54 ` [PATCH 3/6] hw/sd/allwinner-sdhost: Do DMA accesses via DMA address space Philippe Mathieu-Daudé
2020-05-31 19:31 ` Philippe Mathieu-Daudé
2020-05-31 17:54 ` [PATCH 4/6] exec/cpu-common: Do not restrict CPU to 32-bit memory access maximum Philippe Mathieu-Daudé
2020-05-31 19:41 ` Peter Maydell
2020-06-01 7:30 ` Philippe Mathieu-Daudé
2020-05-31 17:54 ` [PATCH 5/6] exec: Restrict 32-bit CPUs to 32-bit address space Philippe Mathieu-Daudé
2020-05-31 19:09 ` Peter Maydell
2020-06-01 8:09 ` Philippe Mathieu-Daudé
2020-06-01 10:45 ` Peter Maydell
2020-06-02 0:01 ` Richard Henderson
2020-05-31 17:54 ` [RFC PATCH 6/6] memory: Use CPU register size as default access_size_max Philippe Mathieu-Daudé
2020-05-31 19:14 ` Peter Maydell
2020-06-01 8:13 ` Philippe Mathieu-Daudé
2020-05-31 18:31 ` [PATCH 0/6] exec/memory: Rework some address and access size limits no-reply
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=9c368f03-f65a-6932-1145-c28a4700673f@redhat.com \
--to=david@redhat.com \
--cc=aleksandar.rikalo@syrmia.com \
--cc=b.galvani@gmail.com \
--cc=cohuck@redhat.com \
--cc=f4bug@amsat.org \
--cc=hpoussin@reactos.org \
--cc=kraxel@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=rth@twiddle.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).