qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH v5 untested] kvm: better MWAIT emulation for guests
       [not found]                 ` <a37a29a2-429c-6f41-42d5-a1a8928045b0@suse.de>
@ 2017-04-04 13:44                   ` Radim Krčmář
  0 siblings, 0 replies; only message in thread
From: Radim Krčmář @ 2017-04-04 13:44 UTC (permalink / raw)
  To: Alexander Graf
  Cc: Jim Mattson, Michael S. Tsirkin, LKML, Gabriel L. Somlo,
	Paolo Bonzini, Jonathan Corbet, Thomas Gleixner, Ingo Molnar,
	H. Peter Anvin, the arch/x86 maintainers, Joerg Roedel, kvm list,
	linux-doc, qemu-devel

[Cc qemu-devel as we've gone off-topic]

2017-04-04 15:15+0200, Alexander Graf:
> On 04/04/2017 03:13 PM, Radim Krčmář wrote:
>> 2017-04-04 14:51+0200, Alexander Graf:
>> > Please see my patch to force enable CPUID bits ;).
>> Nice.  MWAIT could also use setting of arbitrary values for its leaf,
>> but a generic interface for that would probably look clunky on the
>> command line ...
> 
> 
> I think we should have an interface similar to smbios for that eventually.
> Something where you can explicitly set arbitrary CPUID leaf information
> using leaf specific syntax. There are more leafs where it would make sense -
> cache topology for example.

Right, separating cpuid from -cpu makes it bearable, like

  -cpuid leaf=%x[,subleaf=%x][,eax=%x][,ebx=%x][,ecx=%x][,edx=%x]

And Having multiple interfaces for the same thing would result in some
corner case decisions ...
I think QEMU should check that feature flags specified flags specified
by -cpu are not cleared by -cpuid.
I'm not sure if setters like "|=" and "&=~" would be beneficial in some
cases.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-04 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1489612895-12799-1-git-send-email-mst@redhat.com>
     [not found] ` <87f187de-64ef-22a2-7714-a811883bce02@suse.de>
     [not found]   ` <20170328142837.GA21738@potion>
     [not found]     ` <CALMp9eRs+WMt+8+wgWk7+H8Kd5zU0_U+On0O_G4cp_7xEffrGQ@mail.gmail.com>
     [not found]       ` <20170329121147.GA5129@potion>
     [not found]         ` <f6607513-4cbd-3fa0-1663-5477e855e783@suse.de>
     [not found]           ` <20170404123915.GA9525@potion>
     [not found]             ` <abcfc109-296d-ec8e-2f4a-4f55f6a1b632@suse.de>
     [not found]               ` <20170404131308.GA9826@potion>
     [not found]                 ` <a37a29a2-429c-6f41-42d5-a1a8928045b0@suse.de>
2017-04-04 13:44                   ` [Qemu-devel] [PATCH v5 untested] kvm: better MWAIT emulation for guests Radim Krčmář

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).