summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-04-03 17:15:18 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-03 23:20:33 +0200
commit33004f9b9d511e0d3b2721e039eccbec143b5c74 (patch)
tree8bb3b237d38d470885f2260a751e8974f041a2be
parent0f27432ec699e2d751bd88edd308738701590434 (diff)
downloadserenity-33004f9b9d511e0d3b2721e039eccbec143b5c74.zip
Kernel: Add hypervisor_vendor_id entry to /proc/cpuinfo
-rw-r--r--Kernel/GlobalProcessExposed.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp
index cab35c8682..d51bca3b1b 100644
--- a/Kernel/GlobalProcessExposed.cpp
+++ b/Kernel/GlobalProcessExposed.cpp
@@ -584,6 +584,8 @@ private:
TRY(obj.add("processor", proc.id()));
TRY(obj.add("vendor_id", info.vendor_id_string()));
TRY(obj.add("family", info.display_family()));
+ if (!info.hypervisor_vendor_id_string().is_null())
+ TRY(obj.add("hypervisor_vendor_id", info.hypervisor_vendor_id_string()));
auto features_array = TRY(obj.add_array("features"));
auto keep_empty = false;