src/library/os/cpu_info_common.cpp
@@ -8,6 +8,7 @@ #include "cpu_info.hpp" namespace license { namespace os { using namespace std; const unordered_map<string, VIRTUALIZATION_DETAIL> virtual_cpu_names{ @@ -28,7 +29,8 @@ } return is_virtual; } VIRTUALIZATION_DETAIL CpuInfo::getVirtualizationDetail() const { VIRTUALIZATION_DETAIL CpuInfo::virtualization_details() const { string cpu_vendor = vendor(); auto it = virtual_cpu_names.find(cpu_vendor); VIRTUALIZATION_DETAIL result = BARE_TO_METAL; @@ -39,4 +41,5 @@ } return result; } } // namespace os } // namespace license