kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nico Boehr <nrb@linux.ibm.com>
To: kvm@vger.kernel.org
Cc: frankja@linux.ibm.com, imbrenda@linux.ibm.com
Subject: Re: [kvm-unit-tests PATCH v3 1/1] s390x: verify EQBS/SQBS is unavailable
Date: Tue, 09 Aug 2022 08:20:44 +0200	[thread overview]
Message-ID: <166002604475.24812.2883502978971812957@localhost.localdomain> (raw)
In-Reply-To: <b1383c10-fa60-56b5-7d57-7d6d59efd572@redhat.com>

Quoting Thomas Huth (2022-08-04 00:17:38)
> On 03/08/2022 15.58, Nico Boehr wrote:
> > QEMU doesn't provide EQBS/SQBS instructions, so we should check they
> > result in an exception.
> 
> I somewhat fail to see the exact purpose of this patch... QEMU still doesn't 
> emulate a lot of other instructions, too, so why are we checking now these 
> QBS instructions? 

I agree with you, it certainly doesn't make sense to test all kinds of random instructions that aren't implemented in QEMU.

But, for the QBS instructions, there is a special case in handle_b9 and handle_eb in QEMU. I would argue since there is code for it, there can be (or even should be) tests for it.

But if you guys say it is not worth having this test, this is fine for me as well.

[...]
> > diff --git a/s390x/intercept.c b/s390x/intercept.c
> > index 9e826b6c79ad..48eb2d22a2cc 100644
> > --- a/s390x/intercept.c
> > +++ b/s390x/intercept.c
> > @@ -197,6 +197,34 @@ static void test_diag318(void)
> >   
> >   }
> >   
> > +static void test_qbs(void)
> > +{
> > +     report_prefix_push("qbs");
> 
> You should definitely add a comment here, explaining why this is only a test 
> for QEMU and saying that this could be removed as soon as QEMU implements 
> these instructions later - otherwise this would be very confusing to the 
> readers later (if they forget or cannot check the commit message).

OK, I can add this once we have an answer to your first question.

  reply	other threads:[~2022-08-09  6:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 13:58 [kvm-unit-tests PATCH v3 0/1] s390x: verify EQBS/SQBS is unavailable Nico Boehr
2022-08-03 13:58 ` [kvm-unit-tests PATCH v3 1/1] " Nico Boehr
2022-08-03 17:23   ` Claudio Imbrenda
2022-08-03 22:17   ` Thomas Huth
2022-08-09  6:20     ` Nico Boehr [this message]
2022-08-24  7:40     ` Janosch Frank
2022-08-24  8:31       ` Thomas Huth
2022-09-08 12:43       ` Christian Borntraeger

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=166002604475.24812.2883502978971812957@localhost.localdomain \
    --to=nrb@linux.ibm.com \
    --cc=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.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).