mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
vmm: acpi: Add _EJ0 to each PCI device slot
The _EJ0 method provides the guest OS a way to notify the VMM that the device has been properly ejected from the guest OS. Only after this point, the VMM can fully remove the device. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
4dc2a39f3a
commit
c62db97a81
@ -1582,6 +1582,15 @@ impl Aml for PciDevSlot {
|
||||
vec![
|
||||
&aml::Name::new("_SUN".into(), &sun),
|
||||
&aml::Name::new("_ADR".into(), &adr),
|
||||
&aml::Method::new(
|
||||
"_EJ0".into(),
|
||||
1,
|
||||
true,
|
||||
vec![&aml::MethodCall::new(
|
||||
"\\_SB_.PHPR.PCEJ".into(),
|
||||
vec![&aml::Path::new("_SUN")],
|
||||
)],
|
||||
),
|
||||
],
|
||||
)
|
||||
.to_aml_bytes()
|
||||
|
Loading…
x
Reference in New Issue
Block a user