Skip to content

Commit

Permalink
Merge pull request #16 from afbjorklund/amd
Browse files Browse the repository at this point in the history
Fix broken IsVTXDisabled detection on AMD CPU
  • Loading branch information
afbjorklund authored Mar 6, 2019
2 parents c5f8168 + 3a0d935 commit 533ea58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/virtualbox/vtx_intel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 533ea58

Please sign in to comment.