From: David Hildenbrand <david@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, kvm@vger.kernel.org
Cc: "Radim Krčmář" <rkrcmar@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Christian Borntraeger" <borntraeger@de.ibm.com>
Subject: Re: [kvm-unit-tests PATCH v2 2/2] s390x: pgm interrupt handler and a way to test them
Date: Wed, 31 May 2017 15:26:07 +0200 [thread overview]
Message-ID: <99b9fbae-2a5c-57b0-2716-818e00a6fee0@redhat.com> (raw)
In-Reply-To: <086518bc-36df-44a2-b505-008ced697d88@redhat.com>
On 31.05.2017 14:51, Paolo Bonzini wrote:
>
>
> On 31/05/2017 14:39, David Hildenbrand wrote:
>> + expect_pgm_int();
>> + *((unsigned int*)-1) = 1;
>> + check_pgm_int_code(PGM_INT_CODE_ADDRESSING);
>
> QEMU gets
>
> ABORT: selftest: Unexpected program interrupt: 5 at 0x12b4c, ilen 4
>
> It seems that QEMU doesn't point the PSW at the next instruction:
>
> IN: main
> 0x0000000000012b44: lghi %r1,-1
> 0x0000000000012b48: lhi %r3,1
> 0x0000000000012b4c: st %r3,0(%r1)
> 0x0000000000012b50: lghi %r2,5
> 0x0000000000012b54: brasl %r14,0x128e8
> 0x0000000000012b4c: st %r3,0(%r1)
> 0x0000000000012b50: lghi %r2,5
> 0x0000000000012b54: brasl %r14,0x128e8 # this is expect_pgm_int
>
> Trace 0x7f5ff6c7f520 [0: 0000000000012b44] main
> Trace 0x7f5ff6c7bc20 [0: 000000000001004e]
> Trace 0x7f5ff6c7c960 [0: 0000000000012918] handle_pgm_int
> Trace 0x7f5ff6c7d280 [0: 00000000000100a4]
>
> and now it gets another program interrupt:
Exactly, the emulator doesn't properly forward the PSW.
>
> IN: main
> 0x0000000000012b4c: st %r3,0(%r1)
> 0x0000000000012b50: lghi %r2,5
> 0x0000000000012b54: brasl %r14,0x128e8
>
> Trace 0x7f5ff6c7f600 [0: 0000000000012b4c] main
> Trace 0x7f5ff6c7bc20 [0: 000000000001004e]
> Trace 0x7f5ff6c7c960 [0: 0000000000012918] handle_pgm_int
>
> Thanks,
>
> Paolo
>
Yes, known problem as described in the cover letter. Happens with
current TCG and old KVM. Patch for TCG is on the list.
Thanks for testing!
--
Thanks,
David
next prev parent reply other threads:[~2017-05-31 13:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-31 12:39 [kvm-unit-tests PATCH v2 0/2] s390x: program interrupt handler David Hildenbrand
2017-05-31 12:39 ` [kvm-unit-tests PATCH v2 1/2] s390x: generate asm offsets for the lowcore David Hildenbrand
2017-05-31 12:39 ` [kvm-unit-tests PATCH v2 2/2] s390x: pgm interrupt handler and a way to test them David Hildenbrand
2017-05-31 12:51 ` Paolo Bonzini
2017-05-31 13:25 ` Thomas Huth
2017-05-31 14:23 ` Paolo Bonzini
2017-05-31 13:26 ` David Hildenbrand [this message]
2017-05-31 13:22 ` Thomas Huth
2017-05-31 13:30 ` David Hildenbrand
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=99b9fbae-2a5c-57b0-2716-818e00a6fee0@redhat.com \
--to=david@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=thuth@redhat.com \
/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).