[PATCH] Add VT flag to cpuinfo

From: Donald D Dugger
Date: Wed Nov 30 2005 - 16:12:45 EST


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.

Signed-off-by: Donald D. Dugger <donald.d.dugger@xxxxxxxxx>

--
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
Donald.D.Dugger@xxxxxxxxx
Ph: (303)440-1368

diff -Naur linux-2.6.14/arch/i386/kernel/cpu/proc.c linux-2.6.14-ddd/arch/i386/kernel/cpu/proc.c
--- linux-2.6.14/arch/i386/kernel/cpu/proc.c 2005-10-27 18:02:08.000000000 -0600
+++ linux-2.6.14-ddd/arch/i386/kernel/cpu/proc.c 2005-11-14 14:22:52.000000000 -0700
@@ -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,
diff -Naur linux-2.6.14/arch/x86_64/kernel/setup.c linux-2.6.14-ddd/arch/x86_64/kernel/setup.c
--- linux-2.6.14/arch/x86_64/kernel/setup.c 2005-10-27 18:02:08.000000000 -0600
+++ linux-2.6.14-ddd/arch/x86_64/kernel/setup.c 2005-11-11 14:47:59.000000000 -0700
@@ -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,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/