qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Eduardo Habkost <ehabkost@redhat.com>, Borislav Petkov <bp@alien8.de>
Cc: "Michael Mueller" <mimu@linux.vnet.ibm.com>,
	kvm@vger.kernel.org, "Michael S. Tsirkin" <mst@redhat.com>,
	qemu-devel@nongnu.org,
	"Christian Borntraeger" <borntraeger@de.ibm.com>,
	"Gabriel L. Somlo" <gsomlo@gmail.com>,
	"Jason J. Herne" <jjherne@linux.vnet.ibm.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with "allow-emulation" option
Date: Fri, 06 Jun 2014 13:16:00 +0200	[thread overview]
Message-ID: <5391A2F0.7010007@suse.de> (raw)
In-Reply-To: <20140606023716.GX17594@otherpad.lan.raisama.net>


On 06.06.14 04:37, Eduardo Habkost wrote:
> On Fri, Jun 06, 2014 at 03:21:04AM +0200, Borislav Petkov wrote:
>> On Fri, Jun 06, 2014 at 12:24:26AM +0200, Alexander Graf wrote:
>>> But can we drop the EMULATED name somehow? Can we rename [1] the ioctl
>>> to say GET_UNSUPPORTED_CPUID or something along those lines? The name
>>> is just a really really bad pick.
>> What do you mean, a "bad pick" :-P? I added extra care in naming that
>> functionality what it is - bitfield in CPUID format of *emulated*
>> features. Unsupported is wrong too - we do support them if we enable
>> them explicitly. :-)
>>
>> How about GET_NOT_REALLY_FAST_BUT_STILL_NOT_FAST_ENOUGH_AS_IN_HW_FAST_CPUID?
> IMO, "emulated" on the kernel interface is good, because it describe
> what it is. Deciding which emulated features are "experimental" or "good
> enough to be enabled implicitly even if emulated" is policy for
> userspace to decide.
>
> "allow-experimental" is being mapped to GET_EMULATED_CPUID initially
> only because _by default_ the GET_EMULATED_CPUID-only features won't be
> enabled implicitly unless forced. But if one day we decide that
> emulation is good enough for a specific feature, we can make
> kvm_arch_get_supported_cpuid() return it even if it is present only on
> the GET_EMULATED_CPUID bitmap. Even if that decision depends on a
> specific implementation of that feature, the kernel can report that
> using KVM capabilities (to be checked by kvm_arch_get_supported_cpuid(),
> like we already do for tsc-deadline).

Ok, works for me. I still don't see the point in having the bitmap at 
all then when we need to carry separate CAPs for individual features' 
"working" status, but if it makes people happy I'm ok with it.


Alex

  reply	other threads:[~2014-06-06 11:16 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-05 16:12 [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with "allow-emulation" option Eduardo Habkost
2014-06-05 16:12 ` [Qemu-devel] [RFC 1/2] kvm: Implement kvm_arch_get_emulated_cpuid() Eduardo Habkost
2014-06-05 16:12 ` [Qemu-devel] [RFC 2/2] target-i386: Add "allow-emulation" X86CPU property Eduardo Habkost
2014-06-05 19:57   ` [Qemu-devel] [RFC 2/2 v2] target-i386: Add "x-allow-emulation" " Eduardo Habkost
2014-06-05 22:27     ` Alexander Graf
2014-06-05 16:24 ` [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with "allow-emulation" option Alexander Graf
2014-06-05 16:26   ` Paolo Bonzini
2014-06-05 16:40     ` Alexander Graf
2014-06-05 16:44       ` Paolo Bonzini
2014-06-05 16:45         ` Alexander Graf
2014-06-05 16:52           ` Paolo Bonzini
2014-06-05 16:54             ` Alexander Graf
2014-06-05 16:57               ` Paolo Bonzini
2014-06-05 17:19                 ` Eduardo Habkost
2014-06-05 17:39                   ` Paolo Bonzini
2014-06-05 18:02                     ` Eduardo Habkost
2014-06-05 19:12                       ` Eduardo Habkost
2014-06-05 19:24                         ` Borislav Petkov
2014-06-05 19:45                           ` Eric Blake
2014-06-05 19:52                             ` Eduardo Habkost
2014-06-05 16:58             ` Alexander Graf
2014-06-05 17:48               ` Eduardo Habkost
2014-06-05 22:24                 ` Alexander Graf
2014-06-06  1:21                   ` Borislav Petkov
2014-06-06  2:37                     ` Eduardo Habkost
2014-06-06 11:16                       ` Alexander Graf [this message]
2014-06-06 18:38                         ` Eduardo Habkost
2014-06-05 17:17           ` Eduardo Habkost
2014-06-05 17:38             ` Paolo Bonzini
2014-06-05 17:52               ` Eduardo Habkost
2014-06-05 17:34       ` Eduardo Habkost
2014-06-06 13:29     ` gleb
2014-06-05 18:11   ` Eduardo Habkost

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=5391A2F0.7010007@suse.de \
    --to=agraf@suse.de \
    --cc=afaerber@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=bp@alien8.de \
    --cc=ehabkost@redhat.com \
    --cc=gsomlo@gmail.com \
    --cc=jjherne@linux.vnet.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=mimu@linux.vnet.ibm.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@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).