mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 16:31:16 +00:00
devices: acpi: Update GED to support PCI devices hotplug
Expands the existing GED device description in the DSDT table. A new case of hotplug notification is being added to the already existing CPU and memory hotplug. The third case of hotplug being the addition/removal of a PCI device, it is identified through the flag 0x4. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
8dbc84318c
commit
2eb26d4de4
@ -137,6 +137,11 @@ impl Aml for AcpiGEDDevice {
|
|||||||
&aml::Equal::new(&aml::Local(1), &2usize),
|
&aml::Equal::new(&aml::Local(1), &2usize),
|
||||||
vec![&aml::MethodCall::new("\\_SB_.MHPC.MSCN".into(), vec![])],
|
vec![&aml::MethodCall::new("\\_SB_.MHPC.MSCN".into(), vec![])],
|
||||||
),
|
),
|
||||||
|
&aml::And::new(&aml::Local(1), &aml::Local(0), &4usize),
|
||||||
|
&aml::If::new(
|
||||||
|
&aml::Equal::new(&aml::Local(1), &4usize),
|
||||||
|
vec![&aml::MethodCall::new("\\_SB_.PCI0.PCNT".into(), vec![])],
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user