aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-09-29 20:31:11 +0200
committerErwan Velu <erwan.velu@free.fr>2009-09-29 20:31:11 +0200
commit8ba991f9e17c5bdaa24dccbc5aa0a4e5db690756 (patch)
tree60a959f97ac26294cfcca3e48546934fe213d6ef /com32/gpllib
parent15c6dc79f8d488c585057987eefddd72b114534e (diff)
downloadsyslinux-8ba991f9e17c5bdaa24dccbc5aa0a4e5db690756.tar.gz
syslinux-8ba991f9e17c5bdaa24dccbc5aa0a4e5db690756.tar.xz
syslinux-8ba991f9e17c5bdaa24dccbc5aa0a4e5db690756.zip
Adding VMX & SVM cpu flags
Impact: Hardware virtualization is now detected Minor update to detect vmx & svm cpu flags
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/cpuid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/gpllib/cpuid.c b/com32/gpllib/cpuid.c
index 6d464c7e..fb69cef6 100644
--- a/com32/gpllib/cpuid.c
+++ b/com32/gpllib/cpuid.c
@@ -295,6 +295,8 @@ void set_cpu_flags(struct cpuinfo_x86 *c, s_cpu * cpu)
cpu->flags.nowext = cpu_has(c, X86_FEATURE_3DNOWEXT);
cpu->flags.now = cpu_has(c, X86_FEATURE_3DNOW);
cpu->flags.smp = find_smp_config();
+ cpu->flags.vmx = cpu_has(c, X86_FEATURE_VMX);
+ cpu->flags.svm = cpu_has(c, X86_FEATURE_SVM);
}
void set_generic_info(struct cpuinfo_x86 *c, s_cpu * cpu)