Skip to content

cxl: fixes for hot-removal of devices

Joshua Lant linux-cxl 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cxl-type3: Properly unmap the memory-backend on device exithw/mem/cxl_type3.c+6 -00 replies
2/2cxl_downstream: enable power controller present capability.hw/pci-bridge/cxl_downstream.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [QEMU PATCH 0/2] cxl: fixes for hot-removal of devices

As requested from the discussion in:
https://lore.kernel.org/linux-cxl/[email protected]/T/#t

Two bugs have been found when testing cxl topologies for managed hot-remove of a device:

Patch 1 properly unmaps the backend memory device, allowing it to be remapped if the removed device is re-added.

Patch 2 sets the power controller present capability in the downstream port. This is required to notify the device from the guest of removal.

Modifications from linked RFC (patches 3 & 4):

- Originally patch 3 (1 here) unmaps only on exit. It should also unmap in the error goto in the realize function.
- "Fixes:" tags added to commit messages.

Joshua Lant (2):
cxl-type3: Properly unmap the memory-backend on device exit
cxl_downstream: enable power controller present capability.

 hw/mem/cxl_type3.c             | 6 ++++++
 hw/pci-bridge/cxl_downstream.c | 2 ++
 2 files changed, 8 insertions(+)
Signature · 1 line
2.47.3