diff mbox

[18/18] KVM/MIPS32-VZ: Dump out additional info about VZ features as part of /proc/cpuinfo

Message ID 1368942460-15577-19-git-send-email-sanjayl@kymasys.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sanjay Lal May 19, 2013, 5:47 a.m. UTC
Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
---
 arch/mips/kernel/proc.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox

Patch

diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index a3e4614..308e042 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -99,6 +99,17 @@  static int show_cpuinfo(struct seq_file *m, void *v)
 	if (cpu_has_vz)		seq_printf(m, "%s", " vz");
 	seq_printf(m, "\n");
 
+#ifdef CONFIG_KVM_MIPS_VZ
+	if (cpu_has_vz) {
+		seq_printf(m, "vz guestid\t\t: %s\n",
+			cpu_has_vzguestid ? "yes" : "no");
+		seq_printf(m, "vz virt irq\t\t: %s\n",
+			cpu_has_vzvirtirq ? "yes" : "no");
+	}
+	seq_printf(m, "tlbinv instructions\t: %s\n",
+		cpu_has_tlbinv ? "yes" : "no");
+#endif
+
 	if (cpu_has_mmips) {
 		seq_printf(m, "micromips kernel\t: %s\n",
 		      (read_c0_config3() & MIPS_CONF3_ISA_OE) ?  "yes" : "no");