mbox series

[-qemu,0/3] hw/cxl: Support dirty shutdown

Message ID 20241220160026.204055-1-dave@stgolabs.net
Headers show
Series hw/cxl: Support dirty shutdown | expand

Message

Davidlohr Bueso Dec. 20, 2024, 4 p.m. UTC
Hello,

The following adds support for emulating dirty shutdown semantics.

Patch 1 is a trivial cleanup, patch 2 adds get/set shutdown state
commands, and patch 3 introduces a new 'dirty-shutdown=N' parameter
for type3 memdevs which explicitly sets the dirty shutdown counter
to whatever passed value.

This series aids testing Global Persistent Flush support in the kernel.

Applies against the 'cxl-2024-11-27' branch in Jonathan's tree.

Thanks!

Davidlohr Bueso (3):
  cxl: Fix mbox cmd enum order
  cxl: Support Get/Set Shutdown State commands
  cxl/type3: Add 'dirty-shutdown' parameter

 hw/cxl/cxl-mailbox-utils.c  | 91 +++++++++++++++++++++++++++++++++++--
 hw/mem/cxl_type3.c          |  1 +
 include/hw/cxl/cxl_device.h |  5 ++
 3 files changed, 92 insertions(+), 5 deletions(-)