From 173a41dd536bf2d7cac4126950c698c590f1f3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sat, 2 Mar 2019 14:12:46 +0100 Subject: [PATCH] Fix broken IsVTXDisabled detection on AMD CPU MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 F Björklund --- drivers/virtualbox/vtx_intel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtualbox/vtx_intel.go b/drivers/virtualbox/vtx_intel.go index 3f1352ae0..852f451d1 100644 --- a/drivers/virtualbox/vtx_intel.go +++ b/drivers/virtualbox/vtx_intel.go @@ -6,7 +6,7 @@ import "github.com/intel-go/cpuid" // 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 }