mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
pci: acpi hotplug: rename x-native-hotplug to x-do-not-expose-native-hotplug-cap
When ACPI PCI hotplug for Q35 was introduced (6.1), it was implemented by hiding HPC capability on PCIE slot. That however led to a number of regressions and to fix it, it was decided to keep HPC cap exposed in ACPI PCI hotplug case and force guest in ACPI PCI hotplug mode by other means [1]. That reduced meaning of x-native-hotplug to a compat knob [2] for broken 6.1 machine type. Rename property to match its current purpose. 1)211afe5c69
(hw/i386/acpi-build: Deny control on PCIe Native Hot-plug in _OSC) 2)c318bef762
(hw/acpi/ich9: Add compat prop to keep HPC bit set for 6.1 machine type) Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20230112140312.3096331-10-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
f7b35824b1
commit
1d77e15718
5 changed files with 16 additions and 8 deletions
|
@ -611,11 +611,11 @@ void pcie_cap_slot_init(PCIDevice *dev, PCIESlot *s)
|
|||
PCI_EXP_SLTCAP_ABP);
|
||||
|
||||
/*
|
||||
* Enable native hot-plug on all hot-plugged bridges unless
|
||||
* hot-plug is disabled on the slot.
|
||||
* Expose native hot-plug on all bridges if hot-plug is enabled on the slot.
|
||||
* (unless broken 6.1 ABI is enforced for compat reasons)
|
||||
*/
|
||||
if (s->hotplug &&
|
||||
(s->native_hotplug || DEVICE(dev)->hotplugged)) {
|
||||
(!s->hide_native_hotplug_cap || DEVICE(dev)->hotplugged)) {
|
||||
pci_long_test_and_set_mask(dev->config + pos + PCI_EXP_SLTCAP,
|
||||
PCI_EXP_SLTCAP_HPS |
|
||||
PCI_EXP_SLTCAP_HPC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue