From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: Bobby Bingham <koorogi@koorogi.info>
Subject: [Qemu-devel] [PULL 1/3] cpu_ldst.h: use correct guest address parameter
Date: Tue, 22 Nov 2016 23:27:54 +0100 [thread overview]
Message-ID: <1479853676-35995-2-git-send-email-pbonzini@redhat.com> (raw)
In-Reply-To: <1479853676-35995-1-git-send-email-pbonzini@redhat.com>
From: Bobby Bingham <koorogi@koorogi.info>
In the user emulation code path, tlb_vaddr_to_host erronesously passed
vaddr as the guest address to be translated, instead of addr, the parameter
which actually contained the guest address.
This resulted in incorrect addresses being used when emulating block copy
(mvc/mvpg) and block clear (xc) instructions for the s390x target.
Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
Message-Id: <20161113050523.23909-1-koorogi@koorogi.info>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/exec/cpu_ldst.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/exec/cpu_ldst.h b/include/exec/cpu_ldst.h
index b573df5..6eb5fe8 100644
--- a/include/exec/cpu_ldst.h
+++ b/include/exec/cpu_ldst.h
@@ -401,7 +401,7 @@ static inline void *tlb_vaddr_to_host(CPUArchState *env, target_ulong addr,
int access_type, int mmu_idx)
{
#if defined(CONFIG_USER_ONLY)
- return g2h(vaddr);
+ return g2h(addr);
#else
int index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
CPUTLBEntry *tlbentry = &env->tlb_table[mmu_idx][index];
--
1.8.3.1
next prev parent reply other threads:[~2016-11-22 22:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-22 22:27 [Qemu-devel] [PULL 0/3] Misc fixes for QEMU 2.8.0-rc1 Paolo Bonzini
2016-11-22 22:27 ` Paolo Bonzini [this message]
2016-11-22 22:27 ` [Qemu-devel] [PULL 2/3] nbd: Allow unmap and fua during write zeroes Paolo Bonzini
2016-11-22 22:27 ` [Qemu-devel] [PULL 3/3] scsi/esp: do not raise an interrupt when reading the FIFO register Paolo Bonzini
2016-11-23 11:44 ` [Qemu-devel] [PULL 0/3] Misc fixes for QEMU 2.8.0-rc1 Stefan Hajnoczi
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=1479853676-35995-2-git-send-email-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=koorogi@koorogi.info \
--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 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).