vmm: device_manager: Scan memory devices upon GED interrupt

If there is a GED interrupt and the field indicates that the memory
device has changed triggers a scan of the memory devices.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-01-10 16:14:52 +00:00 committed by Samuel Ortiz
parent 284d5e011a
commit 4e414f0d84
2 changed files with 5 additions and 0 deletions

View File

@ -75,4 +75,5 @@ pub trait Interrupt: Send + Sync {
pub enum HotPlugNotificationType {
NoDevicesChanged,
CPUDevicesChanged,
MemoryDevicesChanged,
}

View File

@ -1674,6 +1674,10 @@ fn create_ged_device(ged_irq: u32) -> Vec<u8> {
&aml::Equal::new(&aml::Local(0), &aml::ONE),
vec![&aml::MethodCall::new("\\_SB_.CPUS.CSCN".into(), vec![])],
),
&aml::If::new(
&aml::Equal::new(&aml::Local(0), &2usize),
vec![&aml::MethodCall::new("\\_SB_.MHPC.MSCN".into(), vec![])],
),
],
),
],