From: David Gibson <david@gibson.dropbear.id.au>
To: Alexander Graf <agraf@suse.de>
Cc: qemu-ppc@nongnu.org,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases
Date: Tue, 25 Oct 2011 10:08:47 +1100 [thread overview]
Message-ID: <20111024230847.GB4191@truffala.fritz.box> (raw)
In-Reply-To: <C1ACA348-BFF4-4146-9C06-F35D63CB1FD1@suse.de>
[snip]
> >> Reading through the patch again I think I see your point now :). Yes, the kvmppc_host_cpu_def function only tries to fetch the host CPU capabilities.
> >>
> >> So yes, there is basically only the masking part with what we can actually virtualize missing. But for now we can just assume that every feature the host CPU supports is available.
> >>
> >> I'll apply your patch for now, as it certainly is better than what we had before.
> >
> > This breaks on 970mp (PowerStation). kvmppc_get_vmx returns -1 because ibm,vmx doesn't exist in the host dt, but the CPU still supports Altivec.
> >
> > Any alternative way to enumerate VMX availability?
>
> Thinking about it a bit more ... Why do we need to check the host's
> capability to do VMX/VSX/DFP? Shouldn't the PVR already tell us
> everything we need to know?
Well.. not necessarily. First there's the possibility of a CPU that's
theoretically capable of VSX or DFP, but where the administrator has
disabled it in firmware. Second, if we add approximate PVR matching
(which I'd like to do), then we should trust the host information over
the table, because we could actually be dealing with a diffferent
revision to the one we got from the table.
> We're still missing some way for KVM to tell us what it can
> virtualize to the guest, but for now we assume that anything we
> throw at it works anyways.
Right. I think we'll hneed to do that on a feature by feature basis
as we discover things that can't be KVM virtualized. I will send a
patch that deals with the masking for features that TCG can't emulate.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2011-10-24 23:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 4:15 [Qemu-devel] [PATCH] pseries: Correct vmx/dfp handling in both KVM and TCG cases David Gibson
2011-10-20 17:12 ` Alexander Graf
2011-10-21 0:41 ` [Qemu-devel] [Qemu-ppc] " David Gibson
2011-10-21 2:40 ` Alexander Graf
2011-10-21 5:06 ` David Gibson
2011-10-21 6:49 ` Alexander Graf
2011-10-24 5:29 ` David Gibson
2011-10-24 17:25 ` Alexander Graf
2011-10-24 17:55 ` Alexander Graf
2011-10-24 17:59 ` Alexander Graf
2011-10-24 23:08 ` David Gibson [this message]
2011-10-24 23:43 ` Alexander Graf
2011-10-25 0:09 ` David Gibson
2011-10-25 1:20 ` Alexander Graf
2011-10-24 23:11 ` David Gibson
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=20111024230847.GB4191@truffala.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).