All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre Morel <pmorel@linux.ibm.com>
To: Janosch Frank <frankja@linux.ibm.com>, linux-s390@vger.kernel.org
Cc: thuth@redhat.com, kvm@vger.kernel.org, cohuck@redhat.com,
	imbrenda@linux.ibm.com, david@redhat.com
Subject: Re: [kvm-unit-tests PATCH v2 3/4] s390x: topology: Check the Perform Topology Function
Date: Thu, 12 Aug 2021 13:40:02 +0200	[thread overview]
Message-ID: <d346d79c-4f72-cbcf-7aef-9c9a03cd61ec@linux.ibm.com> (raw)
In-Reply-To: <ae1eb2bc-8570-d114-9f45-4aaf40d23d3f@linux.ibm.com>



On 8/12/21 11:38 AM, Janosch Frank wrote:
> On 8/10/21 6:22 PM, Pierre Morel wrote:
>> We check the PTF instruction.
>>
>> - We do not expect to support vertical polarization.
> 
> KVM does not support vertical polarization and we don't expect it to be
> added in the future?

OK

> 
>>
>> - We do not expect the Modified Topology Change Report to be
>> pending or not at the moment the first PTF instruction with
>> PTF_CHECK function code is done as some code already did run
>> a polarization change may have occur.
> 
> ENOPARSE

OK I find another way to explain:

"
The Topology changes if the topology of the real CPUs backing the vCPUs 
changes.
This can happen between the initialization of the VM and the start of 
the guest.
As a consequence we can not expect the result of the first PTF instruction.
"
...
>> +	/*
>> +	 * In the LPAR we can not assume the state of the polarizatiom
> 
> polarization

yes

> 
>> +	 * at this moment.
>> +	 * Let's skip the tests for LPAR.
>> +	 */
> 
> Any idea what happens on z/VM?
> We don't necessarily need to support z/VM but we at least need to skip
> like we do on lpar :-)

No, I do not know.
Then OK we skip the test for zVM too

> 
> Maybe also add a TODO, so we know we could improve the test?
> 
>> +	if (machine_level < 3)
>> +		goto end;
>> +
> 
> Add comments:
> We're always horizontally polarized in KVM.

OK

> 
>> +	cc = ptf(PTF_REQ_HORIZONTAL, &rc);
>> +	report(cc == 2 && rc == PTF_ERR_ALRDY_POLARIZED,
>> +	       "PTF horizontal already configured");
>> +
> 
> KVM doesn't support vertical polarization.

OK too

> 
>> +	cc = ptf(PTF_REQ_VERTICAL, &rc);
>> +	report(cc == 2 && rc == PTF_ERR_NO_REASON,
>> +	       "PTF vertical non possible");
> 
> s/non/not/

yes, seems I forgot to change this.

...


Thanks,
Pierre

-- 
Pierre Morel
IBM Lab Boeblingen

  reply	other threads:[~2021-08-12 11:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10 16:22 [kvm-unit-tests PATCH v2 0/4] S390x: CPU Topology Information Pierre Morel
2021-08-10 16:22 ` [kvm-unit-tests PATCH v2 1/4] s390x: lib: Add SCLP toplogy nested level Pierre Morel
2021-08-11 14:59   ` Janosch Frank
2021-08-12  8:36     ` Pierre Morel
2021-08-12 12:56   ` Cornelia Huck
2021-08-12 15:05     ` Pierre Morel
2021-08-12 15:12       ` Cornelia Huck
2021-08-10 16:22 ` [kvm-unit-tests PATCH v2 2/4] s390x: lib: Simplify stsi_get_fc and move it to library Pierre Morel
2021-08-11 15:01   ` Janosch Frank
2021-08-12  8:38     ` Pierre Morel
2021-08-18  7:45   ` Thomas Huth
2021-08-23  9:17     ` Pierre Morel
2021-08-10 16:22 ` [kvm-unit-tests PATCH v2 3/4] s390x: topology: Check the Perform Topology Function Pierre Morel
2021-08-12  9:38   ` Janosch Frank
2021-08-12 11:40     ` Pierre Morel [this message]
2021-08-10 16:22 ` [kvm-unit-tests PATCH v2 4/4] s390x: topology: Checking Configuration Topology Information Pierre Morel

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=d346d79c-4f72-cbcf-7aef-9c9a03cd61ec@linux.ibm.com \
    --to=pmorel@linux.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=david@redhat.com \
    --cc=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.