Re: [PATCH v3 5/5] KVM: SVM: Enable shadow stack virtualization for SVM

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

 



>> >-	/* KVM doesn't yet support CET virtualization for SVM. */
>> >-	kvm_cpu_cap_clear(X86_FEATURE_SHSTK);
>> >-	kvm_cpu_cap_clear(X86_FEATURE_IBT);
>> 
>> IIUC, IBT should be cleared because KVM doesn't support IBT for SVM.
>
>Yeah, I wondered about this. The reason I chose to not clear this is
>because we don't explicitly clear other features that are not supported
>on AMD hardware AFAICT.

Your series doesn't enable IBT for SVM. If future AMD CPUs add IBT support,
this KVM running on those CPUs will inadvertently advertise IBT support.

>Is there a reason we should clear this and not
>other unsupported features?

I think they should be cleared if they require any KVM enabling beyond just
adding the CPUID bits. At the very least, we can handle IBT correctly.




[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