* [Qemu-devel] [PATCH 0/2] s390x bugfixes for 2.2 @ 2014-11-03 14:30 Cornelia Huck 2014-11-03 14:30 ` [Qemu-devel] [PATCH 1/2] s390x/kvm: Fix opcode decoding for eb instruction handler Cornelia Huck 2014-11-03 14:30 ` [Qemu-devel] [PATCH 2/2] s390x/kvm: Fix warning from sparse Cornelia Huck 0 siblings, 2 replies; 4+ messages in thread From: Cornelia Huck @ 2014-11-03 14:30 UTC (permalink / raw) To: qemu-devel; +Cc: Cornelia Huck, borntraeger, jfrei, agraf Two small bugfixes for s390x; nothing earthshattering. Frank Blaschka (1): s390x/kvm: Fix opcode decoding for eb instruction handler Thomas Huth (1): s390x/kvm: Fix warning from sparse target-s390x/kvm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 1.7.9.5 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH 1/2] s390x/kvm: Fix opcode decoding for eb instruction handler 2014-11-03 14:30 [Qemu-devel] [PATCH 0/2] s390x bugfixes for 2.2 Cornelia Huck @ 2014-11-03 14:30 ` Cornelia Huck 2014-11-03 14:42 ` Thomas Huth 2014-11-03 14:30 ` [Qemu-devel] [PATCH 2/2] s390x/kvm: Fix warning from sparse Cornelia Huck 1 sibling, 1 reply; 4+ messages in thread From: Cornelia Huck @ 2014-11-03 14:30 UTC (permalink / raw) To: qemu-devel; +Cc: Cornelia Huck, borntraeger, jfrei, Frank Blaschka, agraf From: Frank Blaschka <blaschka@linux.vnet.ibm.com> The second byte of the opcode is encoded in the lowest byte of the ipb field, not the lowest byte of the ipa field. Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> --- target-s390x/kvm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 5b10a25..690cb71 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -827,18 +827,18 @@ static int handle_b9(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) return r; } -static int handle_eb(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) +static int handle_eb(S390CPU *cpu, struct kvm_run *run, uint8_t ipbl) { int r = 0; - switch (ipa1) { + switch (ipbl) { case PRIV_EB_SQBS: /* just inject exception */ r = -1; break; default: r = -1; - DPRINTF("KVM: unhandled PRIV: 0xeb%x\n", ipa1); + DPRINTF("KVM: unhandled PRIV: 0xeb%x\n", ipbl); break; } @@ -1039,7 +1039,7 @@ static int handle_instruction(S390CPU *cpu, struct kvm_run *run) r = handle_b9(cpu, run, ipa1); break; case IPA0_EB: - r = handle_eb(cpu, run, ipa1); + r = handle_eb(cpu, run, run->s390_sieic.ipb & 0xff); break; case IPA0_DIAG: r = handle_diag(cpu, run, run->s390_sieic.ipb); -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH 1/2] s390x/kvm: Fix opcode decoding for eb instruction handler 2014-11-03 14:30 ` [Qemu-devel] [PATCH 1/2] s390x/kvm: Fix opcode decoding for eb instruction handler Cornelia Huck @ 2014-11-03 14:42 ` Thomas Huth 0 siblings, 0 replies; 4+ messages in thread From: Thomas Huth @ 2014-11-03 14:42 UTC (permalink / raw) To: Cornelia Huck; +Cc: borntraeger, jfrei, Frank Blaschka, qemu-devel, agraf On Mon, 3 Nov 2014 15:30:33 +0100 Cornelia Huck <cornelia.huck@de.ibm.com> wrote: > From: Frank Blaschka <blaschka@linux.vnet.ibm.com> > > The second byte of the opcode is encoded in the lowest byte of the ipb > field, not the lowest byte of the ipa field. > > Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com> > Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> > --- > target-s390x/kvm.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c > index 5b10a25..690cb71 100644 > --- a/target-s390x/kvm.c > +++ b/target-s390x/kvm.c > @@ -827,18 +827,18 @@ static int handle_b9(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) > return r; > } > > -static int handle_eb(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1) > +static int handle_eb(S390CPU *cpu, struct kvm_run *run, uint8_t ipbl) > { > int r = 0; > > - switch (ipa1) { > + switch (ipbl) { > case PRIV_EB_SQBS: > /* just inject exception */ > r = -1; > break; > default: > r = -1; > - DPRINTF("KVM: unhandled PRIV: 0xeb%x\n", ipa1); > + DPRINTF("KVM: unhandled PRIV: 0xeb%x\n", ipbl); > break; > } > > @@ -1039,7 +1039,7 @@ static int handle_instruction(S390CPU *cpu, struct kvm_run *run) > r = handle_b9(cpu, run, ipa1); > break; > case IPA0_EB: > - r = handle_eb(cpu, run, ipa1); > + r = handle_eb(cpu, run, run->s390_sieic.ipb & 0xff); > break; > case IPA0_DIAG: > r = handle_diag(cpu, run, run->s390_sieic.ipb); Looks right! Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH 2/2] s390x/kvm: Fix warning from sparse 2014-11-03 14:30 [Qemu-devel] [PATCH 0/2] s390x bugfixes for 2.2 Cornelia Huck 2014-11-03 14:30 ` [Qemu-devel] [PATCH 1/2] s390x/kvm: Fix opcode decoding for eb instruction handler Cornelia Huck @ 2014-11-03 14:30 ` Cornelia Huck 1 sibling, 0 replies; 4+ messages in thread From: Cornelia Huck @ 2014-11-03 14:30 UTC (permalink / raw) To: qemu-devel; +Cc: Cornelia Huck, borntraeger, jfrei, agraf, Thomas Huth From: Thomas Huth <thuth@linux.vnet.ibm.com> When running "sparse" with the s390x kvm.c code, it complains that "constant 0x00400f1d40330000 is so big it is long" - let's fix this by appending a proper suffix. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> --- target-s390x/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 690cb71..d247471 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -1272,7 +1272,7 @@ void kvm_s390_crw_mchk(void) struct kvm_s390_irq irq = { .type = KVM_S390_MCHK, .u.mchk.cr14 = 1 << 28, - .u.mchk.mcic = 0x00400f1d40330000, + .u.mchk.mcic = 0x00400f1d40330000ULL, }; kvm_s390_floating_interrupt(&irq); } -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-03 14:42 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-11-03 14:30 [Qemu-devel] [PATCH 0/2] s390x bugfixes for 2.2 Cornelia Huck 2014-11-03 14:30 ` [Qemu-devel] [PATCH 1/2] s390x/kvm: Fix opcode decoding for eb instruction handler Cornelia Huck 2014-11-03 14:42 ` Thomas Huth 2014-11-03 14:30 ` [Qemu-devel] [PATCH 2/2] s390x/kvm: Fix warning from sparse Cornelia Huck
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).