All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] x86 CPU feature +/- fiddling and +kvm-no-defaults
@ 2021-01-19 14:22 David Edmondson
  2021-01-19 14:22 ` [RFC PATCH 1/2] hw/i386: -cpu model, -feature, +feature should enable feature David Edmondson
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: David Edmondson @ 2021-01-19 14:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Thomas Huth, Eduardo Habkost, Michael S. Tsirkin,
	Richard Henderson, David Edmondson, Paolo Bonzini

Currently "-cpu -feature,+feature" will disable -feature, which seems
contrary to the intention of the user. Fix this such that the later
flag wins. There are no changes to the interaction of +/- and =on/=off.

Enabling KVM currently causes a default set of KVM features to be
enabled. Allow this default set to be defeated, requiring all features
to be explicitly enabled.

David Edmondson (1):
  hw/i386: -cpu model,-feature,+feature should enable feature

Joao Martins (1):
  target/i386: Add "-cpu +kvm-no-defaults"

 target/i386/cpu.c                   | 38 +++++++++++++++++++++++------
 target/i386/cpu.h                   |  3 +++
 tests/qtest/test-x86-cpuid-compat.c |  8 +++---
 3 files changed, 38 insertions(+), 11 deletions(-)

-- 
2.29.2



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-01-27  0:16 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 14:22 [RFC PATCH 0/2] x86 CPU feature +/- fiddling and +kvm-no-defaults David Edmondson
2021-01-19 14:22 ` [RFC PATCH 1/2] hw/i386: -cpu model, -feature, +feature should enable feature David Edmondson
2021-01-19 15:20   ` [RFC PATCH 1/2] hw/i386: -cpu model,-feature,+feature " Eduardo Habkost
2021-01-19 16:27     ` [External] : " David Edmondson
2021-01-19 16:30       ` Eduardo Habkost
2021-01-20  9:59         ` Igor Mammedov
2021-01-20 10:08           ` David Edmondson
2021-01-20 10:08         ` [External] : " Daniel P. Berrangé
2021-01-20 10:17           ` David Edmondson
2021-01-20 16:18             ` Eduardo Habkost
2021-01-20 19:21               ` Igor Mammedov
2021-01-20 20:12                 ` [PATCH] docs/system: Deprecate `-cpu ...,+feature,-feature` syntax Eduardo Habkost
2021-01-20 20:19                   ` [PATCH] docs/system: Deprecate `-cpu ..., +feature, -feature` syntax David Edmondson
2021-01-21  9:39                   ` [PATCH] docs/system: Deprecate `-cpu ...,+feature,-feature` syntax Daniel P. Berrangé
2021-01-27  0:14                     ` John Snow
2021-01-21 10:25                   ` Igor Mammedov
2021-01-19 14:22 ` [RFC PATCH 2/2] target/i386: Add "-cpu +kvm-no-defaults" David Edmondson
2021-01-19 16:28 ` [RFC PATCH 0/2] x86 CPU feature +/- fiddling and +kvm-no-defaults Daniel P. Berrangé
2021-01-19 16:35   ` Eduardo Habkost
2021-01-19 16:41     ` Daniel P. Berrangé
2021-01-20 10:01       ` Igor Mammedov

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.