mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
07cdb37dda
Rather than hardcode the CPU status for all the CPUs instead query from the CPU manager via the I/O port that is is on via the ACPI tables. Each CPU device has a _STA method that calls into the CSTA method which reads and writes the I/O ports via the PRST field which exposes the I/O port through and OpRegion. As we only support boot CPUS report that all the CPUs are enabled for now. Signed-off-by: Rob Bradford <robert.bradford@intel.com>