Kernel: Add hypervisor_vendor_id entry to /proc/cpuinfo

This commit is contained in:
Linus Groh 2022-04-03 17:15:18 +01:00 committed by Andreas Kling
parent 0f27432ec6
commit 33004f9b9d
Notes: sideshowbarker 2024-07-17 22:09:47 +09:00

View file

@ -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;