qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Denemark <jdenemar@redhat.com>
To: David Hildenbrand <david@redhat.com>
Cc: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>,
	libvir-list@redhat.com, qemu-devel@nongnu.org,
	Christian Borntraeger <borntraeger@de.ibm.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: Mon, 23 Oct 2017 09:25:46 +0200	[thread overview]
Message-ID: <20171023072546.GO130425@orkuz.home> (raw)
In-Reply-To: <f43de685-b6d6-14fe-38d1-35481a6ac954@redhat.com>

On Fri, Oct 20, 2017 at 15:04:57 +0200, David Hildenbrand wrote:
> On 20.10.2017 14:50, Jiri Denemark wrote:
> > The thing is libvirt calls query-cpu-model-expansion to check what the
> > host CPU is. This 'host-model' CPU is replaced with the probed CPU model
> > when a domain starts. The problem described by Marc is that the probed
> > CPU model cannot be used universally with all machine types. So starting
> > a domain on such host with machine type s390-virtio-ccw-2.10 works, but
> > a domain with machine type s390-virtio-ccw-2.9 fails to start with the
> > same probed CPU model.
> > 
> 
> My assumption would be that the CPU model is copied into the XML when
> the domain fist starts. This is what the documentation describes.

The CPU model is copied into the XML each time the domain starts.

> So when upgrading QEMU, the CPU model in the XML is still the same
> (z13), even though something different is now reported in the host info
> after upgrading QEMU (z14).
> 
> In this case it would continue to work.
> 
> The problem is that the CPU model is not copied into the XML doesn't
> remain there, right? It is suddenly replaced with a z14 host model.

Even preserving the actual CPU model in the XML from the first start
wouldn't solve the issue. You can always create a new domain with
s390-virtio-ccw-2.9 machine type even on the upgraded host.

Jirka

  reply	other threads:[~2017-10-23  7:26 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 [this message]
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
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=20171023072546.GO130425@orkuz.home \
    --to=jdenemar@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=david@redhat.com \
    --cc=fiuczy@linux.vnet.ibm.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).