From: David Hildenbrand <david@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>,
Marc Hartmayer <mhartmay@linux.vnet.ibm.com>,
libvir-list@redhat.com, qemu-devel@nongnu.org
Cc: Jiri Denemark <jdenemar@redhat.com>,
Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>,
"Jason J. Herne" <jjherne@linux.vnet.ibm.com>,
Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [libvirt] Question about the host-model CPU mode
Date: Fri, 20 Oct 2017 15:51:42 +0200 [thread overview]
Message-ID: <fb0b2486-706c-c7af-0e38-ddea1faa7b92@redhat.com> (raw)
In-Reply-To: <2bfd5f45-3db1-b6c7-3162-43be564cfa05@de.ibm.com>
On 20.10.2017 15:49, Christian Borntraeger wrote:
>
>
> On 10/20/2017 03:43 PM, David Hildenbrand wrote:
>> On 20.10.2017 15:36, Christian Borntraeger wrote:
>>>
>>>
>>> On 10/20/2017 03:16 PM, David Hildenbrand wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> we recently encountered the problem that the 'host-model' [1] has to be
>>>>> related to the machine type of a domain. We have following problem:
>>>>>
>>>>> Let's assume we've a z13 system with a QEMU 2.9 and we define a
>>>>> domain using the default s390-virtio-ccw machine together with the
>>>>> host-model CPU mode [1]. The definition will have the machine
>>>>> expanded to s390-virtio-ccw-2.9 but retain the host-model CPU mode
>>>>> in the domain definition. In a next step we upgrade to QEMU 2.10
>>>>> (first version to recognize z14). Everything is still fine, even
>>>>> though the machine runs in 2.9 compatibility mode. Finally we
>>>>> upgrade to a z14. As a consequence it is not possible to start the
>>>>> domain anymore as the machine type doesn't support our CPU host
>>>>> model (which is expanded at start time of the domain).
>>>>
>>>> Actually, what is the cause of that problem? I assume it is the gs
>>>> feature (gs_allowed)?
>>>>
>>>> We should really avoid such things (..._allowed) for CPU model features
>>>> in the future and clue all new such stuff to cpumodel_allowed.
>>>
>>> Yes, starting a guest with
>>> <os>
>>> <type arch='s390x' machine='s390-ccw-virtio-2.9'>hvm</type>
>>> </os>
>>> <cpu mode='host-model'/>
>>>
>>> results in
>>>
>>> qemu-system-s390x: Some features requested in the CPU model are not available in the configuration: gs
>>>
>>> Tying it to cpumodel_allowed would not help, migration-wise though.
>>> libvirt would still transform
>>>
>>> <os>
>>> <type arch='s390x' machine='s390-ccw-virtio-2.9'>hvm</type>
>>> </os>
>>> <cpu mode='host-model'/>
>>
>> My point was, that the host model would have to be copied and _remain_
>> there when s390-ccw-virtio was expanded to s390-ccw-virtio-2.9.
>>
>> So really replacing <cpu mode='host-model'/> by the model z13-base....
>> This would at least fix this issue. Just like s390-ccw-virtio get's
>> replaced and remains thats way.
>>
>> But this might for sure have other problems.
>
> The problem goes much further.
> A fresh guest with
>
> <os>
> <type arch='s390x' machine='s390-ccw-virtio-2.9'>hvm</type>
> </os>
> <cpu mode='host-model'/>
>
> does not start. No migration from an older system is necessary.
>
Yes, as stated in the documentation "copying host CPU definition from
capabilities XML" this can not work. And it works just as documented.
Not saying this is a nice thing :)
I think we should try to fix gs_allowed (if possible) and avoid
something like that in the future. This would avoid other complexity
involved when suddenly having X host models.
--
Thanks,
David
next prev parent reply other threads:[~2017-10-20 13:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87y3oqugm7.fsf@marc-ibm.boeblingen.de.ibm.com>
[not found] ` <20171005121115.GD3946746@orkuz.home>
[not found] ` <87y3ok7n2n.fsf@marc-ibm.boeblingen.de.ibm.com>
[not found] ` <20171012120714.GA314661@orkuz.home>
2017-10-20 11:09 ` [Qemu-devel] [libvirt] Question about the host-model CPU mode Marc Hartmayer
2017-10-20 11:37 ` David Hildenbrand
2017-10-20 12:50 ` Jiri Denemark
2017-10-20 13:04 ` David Hildenbrand
2017-10-23 7:25 ` Jiri Denemark
2017-10-20 12:43 ` Jiri Denemark
2017-10-20 13:16 ` David Hildenbrand
2017-10-20 13:36 ` Christian Borntraeger
2017-10-20 13:43 ` David Hildenbrand
2017-10-20 13:49 ` Christian Borntraeger
2017-10-20 13:51 ` David Hildenbrand [this message]
2017-10-20 14:02 ` Christian Borntraeger
2017-10-20 14:06 ` David Hildenbrand
2017-10-20 14:12 ` Christian Borntraeger
2017-10-20 14:58 ` Halil Pasic
2017-10-20 15: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=fb0b2486-706c-c7af-0e38-ddea1faa7b92@redhat.com \
--to=david@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=fiuczy@linux.vnet.ibm.com \
--cc=jdenemar@redhat.com \
--cc=jjherne@linux.vnet.ibm.com \
--cc=libvir-list@redhat.com \
--cc=mhartmay@linux.vnet.ibm.com \
--cc=mihajlov@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.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).