summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-04-03 17:16:09 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-03 23:20:33 +0200
commit4f35c206e43cb7f62e6d89c1c39da54762414aae (patch)
tree0bc65403770c9aec5aae9a7581ca4fa100b3e7c8
parent33004f9b9d511e0d3b2721e039eccbec143b5c74 (diff)
downloadserenity-4f35c206e43cb7f62e6d89c1c39da54762414aae.zip
lscpu: Show hypervisor_vendor_id if present
-rw-r--r--Userland/Utilities/lscpu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Utilities/lscpu.cpp b/Userland/Utilities/lscpu.cpp
index 89af32f9c4..1e98f8f4f2 100644
--- a/Userland/Utilities/lscpu.cpp
+++ b/Userland/Utilities/lscpu.cpp
@@ -15,6 +15,8 @@ static void print_cpu_info(JsonObject const& value)
{
outln("CPU {}:", value.get("processor").as_u32());
outln("\tVendor ID: {}", value.get("vendor_id").as_string());
+ if (value.has("hypervisor_vendor_id"))
+ outln("\tHypervisor Vendor ID: {}", value.get("hypervisor_vendor_id").as_string());
outln("\tBrand: {}", value.get("brand").as_string());
outln("\tFamily: {}", value.get("family").as_u32());
outln("\tModel: {}", value.get("model").as_u32());