From: Chris Friesen <chris.friesen@windriver.com>
To: libvir-list@redhat.com, "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [libvirt] inconsistent handling of "qemu64" CPU model
Date: Thu, 26 May 2016 08:08:56 -0600 [thread overview]
Message-ID: <57470378.4050402@windriver.com> (raw)
In-Reply-To: <20160526104154.GC40539@orkuz.home>
On 05/26/2016 04:41 AM, Jiri Denemark wrote:
> The qemu64 CPU model contains svm and thus libvirt will always consider
> it incompatible with any Intel CPUs (which have vmx instead of svm). On
> the other hand, QEMU by default ignores features that are missing in the
> host CPU and has no problem using qemu64 CPU, the guest just won't see
> some of the features defined in qemu64 model.
>
> In your case, you should be able to use
>
> <cpu mode'custom' match='exact'>
> <model>qemu64</model>
> <feature name='svm' policy='disable'/>
> </cpu>
>
> to get the same CPU model you'd get by default (if not, you may need to
> also add <feature name='vmx' policy='require'/>).
>
> Alternatively
>
> <cpu mode'custom' match='exact'>
> <model>qemu64</model>
> <feature name='svm' policy='force'/>
> </cpu>
>
> should work too (and it would be better in case you use it on an AMD
> host).
It's actually OpenStack that is setting up the XML, not me, so I'd have to
special-case the "qemu64" model and it'd get ugly. :)
The question remains, why is "qemu64" okay when used implicitly but not
explicitly? I would have expected them to behave the same.
> But why you even want to use qemu64 CPU in a domain XML explicitly? If
> you're fine with that CPU, just let QEMU use a default one. If not, use
> a CPU model that fits your host/needs better.
Working around another issue would be simpler/cleaner if I could just explicitly
set the model to qemu64.
Chris
next prev parent reply other threads:[~2016-05-26 15:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-26 5:13 [Qemu-devel] inconsistent handling of "qemu64" CPU model Chris Friesen
2016-05-26 9:45 ` [Qemu-devel] [libvirt] " Kashyap Chamarthy
2016-05-26 10:41 ` Jiri Denemark
2016-05-26 14:08 ` Chris Friesen [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-10-15 21:05 Divan Santana
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=57470378.4050402@windriver.com \
--to=chris.friesen@windriver.com \
--cc=libvir-list@redhat.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 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.