diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-07-12 11:15:44 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-07-20 12:02:18 -0300 |
commit | c2f193b538032accb9db504998bf2ea7c0ef65af (patch) | |
tree | 4616da52042ae1f65fd8b0657411fe4b24000aa4 /target-i386/cpu.c | |
parent | d89c2b8b98e097b9cad5104b0f178bde1cfa011b (diff) | |
download | qemu-c2f193b538032accb9db504998bf2ea7c0ef65af.tar.gz qemu-c2f193b538032accb9db504998bf2ea7c0ef65af.tar.bz2 qemu-c2f193b538032accb9db504998bf2ea7c0ef65af.zip |
target-i386: Add support for UMIP and RDPID CPUID bits
These are both stored in CPUID[EAX=7,EBX=0].ECX. KVM is going to
be able to emulate both (albeit with a performance loss in the case
of RDPID, which therefore will be in KVM_GET_EMULATED_CPUID rather
than KVM_GET_SUPPORTED_CPUID).
It's also possible to implement both in TCG, but this is for 2.8.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target-i386/cpu.c')
-rw-r--r-- | target-i386/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c index de0295a51f..c36441d30c 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -305,12 +305,12 @@ static const char *cpuid_7_0_ebx_feature_name[] = { }; static const char *cpuid_7_0_ecx_feature_name[] = { - NULL, NULL, NULL, "pku", + NULL, NULL, "umip", "pku", "ospke", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, + NULL, NULL, "rdpid", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }; |