Message ID | 1245261402-26440-2-git-send-email-joerg.roedel@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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; }
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 <joerg.roedel@amd.com> --- target-i386/libkvm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)