Commit 173a41dd authored by Anders Björklund's avatar Anders Björklund

Fix broken IsVTXDisabled detection on AMD CPU

VMX is in FeatureNames, but SVM is in ExtraFeatureNames
This meant that detection *always* failed for SVM (AMD)

Thanks to user @hilbertxia
Signed-off-by: Anders Björklund's avatarAnders F Björklund <[email protected]>
parent 61ef47dc
......@@ -6,7 +6,7 @@ import ""
// IsVTXDisabled checks if VT-x is disabled in the CPU.
func (d *Driver) IsVTXDisabled() bool {
if cpuid.HasFeature(cpuid.VMX) || cpuid.HasFeature(cpuid.SVM) {
if cpuid.HasFeature(cpuid.VMX) || cpuid.HasExtraFeature(cpuid.SVM) {
return false
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment