]> Git Repo - qemu.git/commit
pcie_root_port: Add hotplug disabling option
authorJulia Suvorova <[email protected]>
Wed, 26 Feb 2020 17:46:07 +0000 (18:46 +0100)
committerMichael S. Tsirkin <[email protected]>
Sun, 8 Mar 2020 13:18:29 +0000 (09:18 -0400)
commit530a0963184e57e71a5b538e9161f115df533e96
tree291cfc3dfecf070d1d928a2a25847e9e7dcc7ce6
parent67f17e23baca5dd545fe98b01169cc351a70fe35
pcie_root_port: Add hotplug disabling option

Make hot-plug/hot-unplug on PCIe Root Ports optional to allow libvirt
manage it and restrict unplug for the whole machine. This is going to
prevent user-initiated unplug in guests (Windows mostly).
Hotplug is enabled by default.
Usage:
    -device pcie-root-port,hotplug=off,...

If you want to disable hot-unplug on some downstream ports of one
switch, disable hot-unplug on PCIe Root Port connected to the upstream
port as well as on the selected downstream ports.

Discussion related:
    https://lists.gnu.org/archive/html/qemu-devel/2020-02/msg00530.html

Signed-off-by: Julia Suvorova <[email protected]>
Message-Id: <20200226174607[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Ján Tomko <[email protected]>
hw/pci-bridge/pcie_root_port.c
hw/pci-bridge/xio3130_downstream.c
hw/pci/pcie.c
hw/pci/pcie_port.c
include/hw/pci/pcie.h
include/hw/pci/pcie_port.h
This page took 0.022555 seconds and 4 git commands to generate.