src/hotspot/cpu/s390/vm_version_s390.cpp
changeset 54485 ddc19ea5059c
parent 53789 b776653628c5
child 54960 e46fe26d7f77
--- a/src/hotspot/cpu/s390/vm_version_s390.cpp	Wed Apr 10 02:41:43 2019 +0000
+++ b/src/hotspot/cpu/s390/vm_version_s390.cpp	Wed Apr 10 08:51:38 2019 +0200
@@ -516,6 +516,19 @@
   }
 }
 
+void VM_Version::print_platform_virtualization_info(outputStream* st) {
+  // /proc/sysinfo contains interesting information about
+  // - LPAR
+  // - whole "Box" (CPUs )
+  // - z/VM / KVM (VM<nn>); this is not available in an LPAR-only setup
+  const char* kw[] = { "LPAR", "CPUs", "VM", NULL };
+  const char* info_file = "/proc/sysinfo";
+
+  if (!print_matching_lines_from_file(info_file, st, kw)) {
+    st->print_cr("  <%s Not Available>", info_file);
+  }
+}
+
 void VM_Version::print_features() {
   print_features_internal("Version:");
 }