Re: [Patch v5 3/4] Mask function7 ebx against host capability word9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/30/2011 06:01 AM, Yang, Wei Y wrote:
This patch masks CPUID leaf 7 ebx against host capability word9.

  		}
  		break;
  	}
+	case 7:
+		/* Mask ebx against host capability word 9 */
+		if (index == 0) cpuid_mask(&entry->ebx, 9);
+		break;
+	/* function 0xb has additional index. */
  	case 0xb: {
  		int i, level_type;


It's not just masking leaf 7. It's enabling it - before we passed 0 every time.

So we need to give it the same treatment as other leaves. We expose a bit only if we explicitly support it in kvm, and it is enabled in the host. See kvm_supported_word[01456] features for examples.

btw, we could also expose fsgsbase and rep/movsb (but in a separate patch, please).

--
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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux