Displaying 2 results from an estimated 2 matches for "cpu_has_3dnow".
2008 May 06
4
[PATCH] fixup 3dnow! support
...m_vcpu *vcpu)
+static void cpuid_fix_caps(struct kvm_vcpu *vcpu)
{
int i;
struct kvm_cpuid_entry2 *e, *entry;
@@ -932,6 +932,20 @@ static void cpuid_fix_nx_cap(struct kvm_vcpu *vcpu)
break;
}
}
+
+ /* 3DNOWEXT */
+ if (entry && (entry->edx & (1 << 30)) && !cpu_has_3dnowext) {
+ entry->edx &= ~(1 << 30);
+ printk(KERN_INFO "kvm: guest 3DNOWEXT capability removed\n");
+ }
+
+ /* 3DNOW */
+ if (entry && (entry->edx & (1 << 31)) && !cpu_has_3dnow) {
+ entry->edx &= ~(1 << 31);
+ printk(KERN_INFO &quo...
2008 May 06
4
[PATCH] fixup 3dnow! support
...m_vcpu *vcpu)
+static void cpuid_fix_caps(struct kvm_vcpu *vcpu)
{
int i;
struct kvm_cpuid_entry2 *e, *entry;
@@ -932,6 +932,20 @@ static void cpuid_fix_nx_cap(struct kvm_vcpu *vcpu)
break;
}
}
+
+ /* 3DNOWEXT */
+ if (entry && (entry->edx & (1 << 30)) && !cpu_has_3dnowext) {
+ entry->edx &= ~(1 << 30);
+ printk(KERN_INFO "kvm: guest 3DNOWEXT capability removed\n");
+ }
+
+ /* 3DNOW */
+ if (entry && (entry->edx & (1 << 31)) && !cpu_has_3dnow) {
+ entry->edx &= ~(1 << 31);
+ printk(KERN_INFO &quo...