mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
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:
parent
284d5e011a
commit
4e414f0d84
@ -75,4 +75,5 @@ pub trait Interrupt: Send + Sync {
|
||||
pub enum HotPlugNotificationType {
|
||||
NoDevicesChanged,
|
||||
CPUDevicesChanged,
|
||||
MemoryDevicesChanged,
|
||||
}
|
||||
|
@ -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![])],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user