Eduardo Habkost fcb93c0360 target-i386: kvm: -cpu host: Use GET_SUPPORTED_CPUID for SVM features
The existing -cpu host code simply sets every bit inside svm_features
(initializing it to -1), and that makes it impossible to make the
enforce/check options work properly when the user asks for SVM features
explicitly in the command-line.

So, instead of initializing svm_features to -1, use GET_SUPPORTED_CPUID
to fill only the bits that are supported by the host (just like we do
for all other CPUID feature words inside kvm_cpu_fill_host()).

This will keep the existing behavior (as filter_features_for_kvm()
already uses GET_SUPPORTED_CPUID to filter svm_features), but will allow
us to properly check for KVM features inside
kvm_check_features_against_host() later.

For example, we will be able to make this:

  $ qemu-system-x86_64 -cpu ...,+pfthreshold,enforce

refuse to start if the SVM "pfthreshold" feature is not supported by the
host (after we fix kvm_check_features_against_host() to check SVM flags
as well).

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-01-08 21:03:44 +01:00
2012-12-17 14:01:41 +01:00
2013-01-08 21:03:44 +01:00
2012-12-19 08:29:06 +01:00
2012-12-22 12:06:48 +00:00
2012-10-24 10:26:22 +02:00
2013-01-08 21:03:44 +01:00
2013-01-02 11:23:21 -06:00
2012-09-07 09:02:44 +03:00
2012-11-01 13:10:06 +01:00
…
2012-05-14 07:27:24 +02:00
…
…
2012-12-20 23:08:47 +01:00
2013-01-02 15:58:09 +01:00
…
2012-12-20 23:09:25 +01:00
…
2013-01-03 12:53:41 -06:00
…
…
2013-01-02 13:32:48 -06:00
…
2013-01-08 10:56:58 +01:00
2012-12-03 14:08:40 -06:00
2012-12-22 12:04:44 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
713 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%