From: Kashyap Chamarthy <kchamart@redhat.com>
To: Chris Friesen <chris.friesen@windriver.com>
Cc: 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 11:45:46 +0200 [thread overview]
Message-ID: <20160526094546.slj7r3rkpv24ihjx@eukaryote> (raw)
In-Reply-To: <574685F4.8070304@windriver.com>
On Wed, May 25, 2016 at 11:13:24PM -0600, Chris Friesen wrote:
[...]
> However, if I explicitly specify a custom CPU model of "qemu64" the
> instance refuses to boot and I get a log saying:
[Not a direct answer to the exact issue you're facing, but a related
issue that is being investigated presently...]
Currently there's a related (regression) in upstream libvirt 1.3.4:
The crux of the issue here is: the libvirt custom 'gate64' model is not
being translated into a CPU definition that QEMU can recognize
(which you can find from `qemu-system-x86 -cpu \?`).
See this bug (it has reproducer, and discussion):
https://bugzilla.redhat.com/show_bug.cgi?id=1339680 -- libvirt CPU
driver fails to translate a custom CPU model into something that
QEMU recognizes
The bug (regression) is bisected, by Jiri Denemark, to this commit:
v1.2.9-31-g445a09b "qemu: Don't compare CPU against host for TCG".
> libvirtError: unsupported configuration: guest and host CPU are not
> compatible: Host CPU does not provide required features: svmlibvirtError:
> unsupported configuration: guest and host CPU are not compatible: Host CPU
> does not provide required features: svm
>
> When this happens, some of the XML for the domain looks like this:
> <os>
> <type arch='x86_64' machine='pc-i440fx-utopic'>hvm</type>
> ....
>
> <cpu mode='custom' match='exact'>
> <model fallback='allow'>qemu64</model>
> <topology sockets='1' cores='1' threads='1'/>
> </cpu>
>
> Of course "svm" is an AMD flag and I'm running an Intel CPU. But why does
> it work when I just rely on the default virtual CPU? Is
> kvm_default_unset_features handled differently when it's implicit vs
> explicit?
>
> If I explicitly specify a custom CPU model of "kvm64" then it boots, but of
> course I get a different virtual CPU from what I get if I don't specify
> anything.
>
> Following some old suggestions I tried turning off nested kvm, deleting
> /var/cache/libvirt/qemu/capabilities/*, and restarting libvirtd. Didn't
> help.
>
> So...anyone got any ideas what's going on? Is there no way to explicitly
> specify the model that you get by default?
>
>
> Thanks,
> Chris
>
> --
> libvir-list mailing list
> libvir-list@redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
--
/kashyap
next prev parent reply other threads:[~2016-05-26 9:45 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 ` Kashyap Chamarthy [this message]
2016-05-26 10:41 ` [Qemu-devel] [libvirt] " Jiri Denemark
2016-05-26 14:08 ` Chris Friesen
-- 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=20160526094546.slj7r3rkpv24ihjx@eukaryote \
--to=kchamart@redhat.com \
--cc=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 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).