From: David Hildenbrand <david@redhat.com>
To: Janosch Frank <frankja@linux.ibm.com>, kvm@vger.kernel.org
Cc: linux-s390@vger.kernel.org, cohuck@redhat.com, borntraeger@de.ibm.com
Subject: Re: [kvm-unit-tests PATCH] s390x: Add stsi 3.2.2 tests
Date: Mon, 30 Mar 2020 16:00:42 +0200 [thread overview]
Message-ID: <a7e1932e-c33e-6450-fb83-328613e77c98@redhat.com> (raw)
In-Reply-To: <2104b9a7-2ae0-6964-0eef-25ba7cca3119@linux.ibm.com>
On 30.03.20 15:30, Janosch Frank wrote:
> On 3/30/20 3:15 PM, David Hildenbrand wrote:
>> On 30.03.20 15:09, Janosch Frank wrote:
>>> On 3/30/20 3:03 PM, Janosch Frank wrote:
>>>> On 3/30/20 2:50 PM, David Hildenbrand wrote:
>>>>> On 30.03.20 14:20, Janosch Frank wrote:
>>>>>> + report(data->vm[0].total_cpus == smp_query_num_cpus(), "cpu # total");
>>>>>> + report(data->vm[0].conf_cpus == smp_query_num_cpus(), "cpu # configured");
>>>>>> + report(data->vm[0].standby_cpus == 0, "cpu # standby");
>>>>>> + report(data->vm[0].reserved_cpus == 0, "cpu # reserved");
>>>>>
>>>>> IIRC, using -smp 1,maxcpus=X, you could also test the reported reserved
>>>>> CPUs.
>>>>
>>>> Will try that
>>>
>>> Just like I thought, QEMU does not manipulate cpu counts and KVM
>>> pre-sets standby and reserved to 0. So we have absolutely no change when
>>> adding the smp parameter.
>>
>> Well, for TCG it is properly implemented. Is this a BUG in KVM's STSI code?
>>
>
> KVM tracks online cpus and created cpus, but only reports the online
> ones in stsi.
> Will QEMU register/create a reserved CPU with KVM?
>
> To fix this we could also fix-up the cpu reporting in QEMU after KVM
> wrote its results.
I think that would be preferred, and handling it similar to the TCG
implementation
>
> @Christian: Guidance?
>
--
Thanks,
David / dhildenb
next prev parent reply other threads:[~2020-03-30 14:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-30 12:20 [kvm-unit-tests PATCH] s390x: Add stsi 3.2.2 tests Janosch Frank
2020-03-30 12:50 ` David Hildenbrand
2020-03-30 13:03 ` Janosch Frank
2020-03-30 13:09 ` Janosch Frank
2020-03-30 13:15 ` David Hildenbrand
2020-03-30 13:30 ` Janosch Frank
2020-03-30 14:00 ` David Hildenbrand [this message]
2020-03-30 14:13 ` Christian Borntraeger
2020-03-30 12:51 ` David Hildenbrand
2020-03-30 13:00 ` Janosch Frank
2020-03-30 13:14 ` 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=a7e1932e-c33e-6450-fb83-328613e77c98@redhat.com \
--to=david@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=frankja@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@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