Skip to content
Snippets Groups Projects
Commit 67d53e56 authored by Venkatesh Srinivas's avatar Venkatesh Srinivas
Browse files

[zircon][arch/x86] CPU Features: Minor cleanup

* Add an enumeration entry for when we're not running under a hypervisor;
  today UNKNOWN is used for 'all non-KVM and all physical'.

  This allows code elsewhere in the kernel to see whether we're running
  under a hypervisor or not, so we can apply certain workarounds if
  needed.

* Modify select_microarch_config to take the x86 uarch enum by parameter
  rather than global and have it return the selected config operations
  table.

I'd like to move towards an interface for code throughout the kernel to
query decoded CPUID feature bits/synthetic feature bits/family-model-
stepping data. The interface would allow writing tests for particular
F/M/S targets. Marking the globals as such is a start towards that.

Change-Id: Ic94d7661c8051fbda3ec9eef6e31750e0c53a08d
parent 1a2d5512
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment