Fix the bitmask in kvm_setup_cpuid() to a value which represents only the
common bits between cpuid function 0x00000001 and 0x80000001.

Signed-off-by: Joerg Roedel <[email protected]>
---
 target-i386/libkvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/target-i386/libkvm.c b/target-i386/libkvm.c
index 0f4e009..6391caf 100644
--- a/target-i386/libkvm.c
+++ b/target-i386/libkvm.c
@@ -644,7 +644,7 @@ uint32_t kvm_get_supported_cpuid(kvm_context_t kvm, 
uint32_t function, int reg)
                                 */
                                if (function == 0x80000001) {
                                        cpuid_1_edx = 
kvm_get_supported_cpuid(kvm, 1, R_EDX);
-                                       ret |= cpuid_1_edx & 0xdfeff7ff;
+                                       ret |= cpuid_1_edx & 0x0183f3ff;
                                }
                                break;
                        }
-- 
1.6.3.1


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to