]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr_pci.c
spapr: Don't allow unplug of NVLink2 devices
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 26 Mar 2020 05:27:37 +0000 (16:27 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 7 May 2020 01:10:50 +0000 (11:10 +1000)
commit05af7c77f5f24ef2bec25f2cab22170c29edaf37
tree41c6006f5019076b08b76dcd12271447c2dacc33
parentbeae5e9dc6eedc7d7fda333a3b71aa9f7e6b4a3f
spapr: Don't allow unplug of NVLink2 devices

Currently, we can't properly handle unplug of NVLink2 devices, because we
don't have code to tear down their special memory resources.  There's not
a lot of impetus to implement that: since hardware NVLink2 devices can't
be hot unplugged, the guest side drivers don't usually support unplug
anyway.

Therefore, simply prevent unplug of NVLink2 devices.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
hw/ppc/spapr_pci.c