[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH 4/4] hw/block/nvme: add zone descriptor changed AEN
From: |
Clay Mayers |
Subject: |
RE: [PATCH 4/4] hw/block/nvme: add zone descriptor changed AEN |
Date: |
Fri, 21 Oct 2022 16:39:15 +0000 |
> From: Klaus Jensen <its@irrelevant.dk>
> Sent: Thursday, October 20, 2022 11:41 PM
>
> On Oct 20 17:18, clay.mayers@kioxia.com wrote:
> > From: Clay Mayers <clay.mayers@kioxia.com>
> >
> > If a namespace's param.zoned.finish_time is non-zero,
> > controllers register with the namespace to be notified
> > when entries are added to its zone-descriptor-changed
> > log page. If the zone-descriptor-changed aen is enabled,
> > this will cause an AEN to be sent from that controller.
> >
> > Signed-off-by: Clay Mayers <clay.mayers@kioxia.com>
> > ---
> > hw/nvme/ctrl.c | 62 +++++++++++++++++++++++++++++++++++++++++++-
> > hw/nvme/ns.c | 1 +
> > hw/nvme/nvme.h | 9 +++++++
> > include/block/nvme.h | 2 ++
> > 4 files changed, 73 insertions(+), 1 deletion(-)
> >
>
> If the controller is hotplugged (device_del'ed), you need to remove the
> controller from the watch list as well. I think in nvme_exit().
>
> Otherwise, looks good!
Thanks for the quick and useful review. Adding the watch list was
a significant design change and I wasn't certain it was in the
spirit of the existing code. The logic split between ctrl/ns was to
handle shared namespaces as smoothly as possible.
- [PATCH 0/4] hw/block/nvme: Implement ZNS finish-zone ZDC AEN, clay.mayers, 2022/10/20
- [PATCH 1/4] hw/block/nvme: add ZONE_FINISH_RECOMMENDED functionality, clay.mayers, 2022/10/20
- [PATCH 2/4] hw/block/nvme: add zone descriptor changed log page, clay.mayers, 2022/10/20
- [PATCH 4/4] hw/block/nvme: add zone descriptor changed AEN, clay.mayers, 2022/10/20
- [PATCH 3/4] hw/block/nvme: supply dw1 for aen result, clay.mayers, 2022/10/20
- Re: [PATCH 0/4] hw/block/nvme: Implement ZNS finish-zone ZDC AEN, Klaus Jensen, 2022/10/21