vmm: acpi: Refactor ACPI CPU notification

Continue to notify on all vCPUs but instead separate the notification
functionality into two methods, CSCN that walks through all the CPUs
and CTFY which notifies based on the numerical CPU id. This is an
interim step towards only notifying on changed CPUs and ultimately CPU
removal.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2019-12-16 16:09:24 +00:00
committed by Samuel Ortiz
parent 43d2e09e1f
commit e8313e3e69
2 changed files with 42 additions and 13 deletions

View File

@@ -1685,7 +1685,7 @@ fn create_ged_device(ged_irq: u32) -> Vec<u8> {
true,
vec![&aml::If::new(
&aml::Equal::new(&aml::Path::new("GDAT"), &aml::ONE),
vec![&aml::MethodCall::new("\\_SB_.CPUS.CTFY".into(), vec![])],
vec![&aml::MethodCall::new("\\_SB_.CPUS.CSCN".into(), vec![])],
)],
),
],