Skip to contentSkip to conversation

Add VT flag to cpuinfo

PATCH In review Donald D Dugger 2 participants 2 messages Nov 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add VT flag to cpuinfo

Andrew-

Attached is a trivial patch to 2.6 that will add vt' to the flags field of /proc/cpuinfo' for CPUs that have Intel's virtualization technology.

--
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale [email protected]
Ph: (303)440-1368

arch/i386/kernel/cpu/proc.c +1 -1
diff -Naur linux-2.6.14/arch/i386/kernel/cpu/proc.c linux-2.6.14-ddd/arch/i386/kernel/cpu/proc.c
@@ -44,7 +44,7 @@
 		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 
 		/* Intel-defined (#2) */
-		"pni", NULL, NULL, "monitor", "ds_cpl", NULL, NULL, "est",
+		"pni", NULL, NULL, "monitor", "ds_cpl", "vt", NULL, "est",
 		"tm2", NULL, "cid", NULL, NULL, "cx16", "xtpr", NULL,
 		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
arch/x86_64/kernel/setup.c +1 -1
diff -Naur linux-2.6.14/arch/x86_64/kernel/setup.c linux-2.6.14-ddd/arch/x86_64/kernel/setup.c
@@ -1213,7 +1213,7 @@
 		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 
 		/* Intel-defined (#2) */
-		"pni", NULL, NULL, "monitor", "ds_cpl", NULL, NULL, "est",
+		"pni", NULL, NULL, "monitor", "ds_cpl", "vt", NULL, "est",
 		"tm2", NULL, "cid", NULL, NULL, "cx16", "xtpr", NULL,
 		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
 		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
#1 lore raw
Quoted 4 lines · [email protected] (Donald D Dugger) writes:

Andrew-

Attached is a trivial patch to 2.6 that will add vt' to the flags field of /proc/cpuinfo' for CPUs that have Intel's virtualization technology.

The x86-64 tree already has "vmx" for it. What is the correct name?

-Andi