* [Qemu-devel] [PULL 0/1] target-i386: Fix I/O bitmap regression
@ 2014-02-19 15:47 Kevin Wolf
2014-02-19 15:47 ` [Qemu-devel] [PULL 1/1] target-i386: Fix I/O bitmap checks for in/out Kevin Wolf
2014-02-21 14:39 ` [Qemu-devel] [PULL 0/1] target-i386: Fix I/O bitmap regression Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Kevin Wolf @ 2014-02-19 15:47 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf
The following changes since commit 46eef33b89e936ca793e13c4aeea1414e97e8dbb:
Fix QEMU build on OpenBSD on x86 archs (2014-02-17 11:44:00 +0000)
are available in the git repository at:
git://repo.or.cz/qemu/kevin.git tags/for-upstream
for you to fetch changes up to 6d093a4f499fd945b39bd55b307dd9192dc99ead:
target-i386: Fix I/O bitmap checks for in/out (2014-02-19 16:40:19 +0100)
----------------------------------------------------------------
This fixes a target-i386 emulation regression
----------------------------------------------------------------
Kevin Wolf (1):
target-i386: Fix I/O bitmap checks for in/out
target-i386/translate.c | 2 ++
1 file changed, 2 insertions(+)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] target-i386: Fix I/O bitmap checks for in/out
2014-02-19 15:47 [Qemu-devel] [PULL 0/1] target-i386: Fix I/O bitmap regression Kevin Wolf
@ 2014-02-19 15:47 ` Kevin Wolf
2014-02-21 14:39 ` [Qemu-devel] [PULL 0/1] target-i386: Fix I/O bitmap regression Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Wolf @ 2014-02-19 15:47 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf
Commit 1b90d56e changed the implementation of in/out imm to not assign
the accessed port number to cpu_T[0] as it appeared unnecessary.
However, currently gen_check_io() makes use of cpu_T[0] to implement the
I/O bitmap checks, so it's in fact still used and the change broke the
check, leading to #GP in legitimate cases (and probably also allowing
access to ports that shouldn't be allowed).
This patch reintroduces the missing assignment for these cases.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
---
target-i386/translate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target-i386/translate.c b/target-i386/translate.c
index b0f2279..5dd2450 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -6284,6 +6284,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
case 0xe5:
ot = mo_b_d32(b, dflag);
val = cpu_ldub_code(env, s->pc++);
+ tcg_gen_movi_tl(cpu_T[0], val);
gen_check_io(s, ot, pc_start - s->cs_base,
SVM_IOIO_TYPE_MASK | svm_is_rep(prefixes));
if (use_icount)
@@ -6300,6 +6301,7 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
case 0xe7:
ot = mo_b_d32(b, dflag);
val = cpu_ldub_code(env, s->pc++);
+ tcg_gen_movi_tl(cpu_T[0], val);
gen_check_io(s, ot, pc_start - s->cs_base,
svm_is_rep(prefixes));
gen_op_mov_v_reg(ot, cpu_T[1], R_EAX);
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] target-i386: Fix I/O bitmap regression
2014-02-19 15:47 [Qemu-devel] [PULL 0/1] target-i386: Fix I/O bitmap regression Kevin Wolf
2014-02-19 15:47 ` [Qemu-devel] [PULL 1/1] target-i386: Fix I/O bitmap checks for in/out Kevin Wolf
@ 2014-02-21 14:39 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2014-02-21 14:39 UTC (permalink / raw)
To: Kevin Wolf; +Cc: QEMU Developers
On 19 February 2014 15:47, Kevin Wolf <kwolf@redhat.com> wrote:
> The following changes since commit 46eef33b89e936ca793e13c4aeea1414e97e8dbb:
>
> Fix QEMU build on OpenBSD on x86 archs (2014-02-17 11:44:00 +0000)
>
> are available in the git repository at:
>
> git://repo.or.cz/qemu/kevin.git tags/for-upstream
>
> for you to fetch changes up to 6d093a4f499fd945b39bd55b307dd9192dc99ead:
>
> target-i386: Fix I/O bitmap checks for in/out (2014-02-19 16:40:19 +0100)
>
> ----------------------------------------------------------------
> This fixes a target-i386 emulation regression
>
> ----------------------------------------------------------------
> Kevin Wolf (1):
> target-i386: Fix I/O bitmap checks for in/out
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-21 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 15:47 [Qemu-devel] [PULL 0/1] target-i386: Fix I/O bitmap regression Kevin Wolf
2014-02-19 15:47 ` [Qemu-devel] [PULL 1/1] target-i386: Fix I/O bitmap checks for in/out Kevin Wolf
2014-02-21 14:39 ` [Qemu-devel] [PULL 0/1] target-i386: Fix I/O bitmap regression Peter Maydell
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).