On Thu, Apr 18, 2024 at 04:11:00PM -0700, nifan....@gmail.com wrote: > From: Fan Ni <fan...@samsung.com> > > To simulate FM functionalities for initiating Dynamic Capacity Add > (Opcode 5604h) and Dynamic Capacity Release (Opcode 5605h) as in CXL spec > r3.1 7.6.7.6.5 and 7.6.7.6.6, we implemented two QMP interfaces to issue > add/release dynamic capacity extents requests. > > With the change, we allow to release an extent only when its DPA range > is contained by a single accepted extent in the device. That is to say, > extent superset release is not supported yet. > ... > > Signed-off-by: Fan Ni <fan...@samsung.com> > --- > hw/cxl/cxl-mailbox-utils.c | 62 +++++-- > hw/mem/cxl_type3.c | 311 +++++++++++++++++++++++++++++++++++- > hw/mem/cxl_type3_stubs.c | 20 +++ > include/hw/cxl/cxl_device.h | 22 +++ > include/hw/cxl/cxl_events.h | 18 +++ > qapi/cxl.json | 69 ++++++++ > 6 files changed, 489 insertions(+), 13 deletions(-) >
Reviewed-by: Gregory Price <gregory.pr...@memverge.com>