On 05/30/2011 06:17 PM, Yang, Wei Y wrote:
This patch masks CPUID leaf 7 ebx against host capability word9.
@@ -2404,6 +2408,15 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, } break; } + case 7: { + /* Mask ebx against host capbability word 9 */ + if (index == 0) { + entry->ebx&= kvm_supported_word9_x86_features; + cpuid_mask(&entry->edx, 9); + } + break; + } + /* function 0xb has additional index. */
I see that function 7 also depends on ecx, so it should set KVM_CPUID_FLAG_SIGNIFCANT_INDEX.
We should mask off ecx != 0 and all the reserved words, since we don't support the features in them.
-- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html