mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
vmm: acpi: Add PCNT method to invoke DVNT
Create a small method that will perform both hotplug of all the devices identified by PCIU bitmap, and then perform the hotunplug of all the devices identified by the PCID bitmap. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
c62db97a81
commit
8dbc84318c
@ -1635,7 +1635,28 @@ impl Aml for PciDevSlotMethods {
|
||||
device_notifies_refs.push(device_notify);
|
||||
}
|
||||
|
||||
aml::Method::new("DVNT".into(), 2, true, device_notifies_refs).to_aml_bytes()
|
||||
let mut bytes =
|
||||
aml::Method::new("DVNT".into(), 2, true, device_notifies_refs).to_aml_bytes();
|
||||
|
||||
bytes.extend_from_slice(
|
||||
&aml::Method::new(
|
||||
"PCNT".into(),
|
||||
0,
|
||||
true,
|
||||
vec![
|
||||
&aml::MethodCall::new(
|
||||
"DVNT".into(),
|
||||
vec![&aml::Path::new("\\_SB_.PHPR.PCIU"), &aml::ONE],
|
||||
),
|
||||
&aml::MethodCall::new(
|
||||
"DVNT".into(),
|
||||
vec![&aml::Path::new("\\_SB_.PHPR.PCID"), &3usize],
|
||||
),
|
||||
],
|
||||
)
|
||||
.to_aml_bytes(),
|
||||
);
|
||||
bytes
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user