Bareflank / hypervisor

lightweight hypervisor SDK written in C++ with support for Windows, Linux and UEFI
Other
1.36k stars 207 forks source link

Loader: Fix machine hang when loading the hypervisor #975

Closed chp-io closed 3 years ago

chp-io commented 3 years ago

This patch fixes an issue where the machine would hang when trying to load the hypervisor. This would occur if the cmake HYPERVISOR_TARGET_ARCH variable is set to a different target architecture than the architecture of the machine it is being compiled and tested on, bypassing the CPU checks that are done in the loader.

This patch set also includes other minor improvements, such as:

codecov[bot] commented 3 years ago

Codecov Report

Merging #975 (d2030b6) into master (8ad8e34) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #975   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          572       572           
  Lines        50886     50886           
  Branches      1225      1225           
=========================================
  Hits         50886     50886