qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Clay Mayers <Clay.Mayers@kioxia.com>
To: Klaus Jensen <its@irrelevant.dk>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Keith Busch" <kbusch@kernel.org>, "Fam Zheng" <fam@euphon.net>,
	"Phlippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: RE: [PATCH 4/4] hw/block/nvme: add zone descriptor changed AEN
Date: Fri, 21 Oct 2022 16:39:15 +0000	[thread overview]
Message-ID: <05759d4720ae493d881c254bc19d3e30@kioxia.com> (raw)
In-Reply-To: <Y1I/F1Q6IjL5rLRH@cormorant.local>

> 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.


  reply	other threads:[~2022-10-21 19:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-21  0:18 [PATCH 0/4] hw/block/nvme: Implement ZNS finish-zone ZDC AEN clay.mayers
2022-10-21  0:18 ` [PATCH 1/4] hw/block/nvme: add ZONE_FINISH_RECOMMENDED functionality clay.mayers
2022-10-21  6:36   ` Klaus Jensen
2022-10-21  0:18 ` [PATCH 2/4] hw/block/nvme: add zone descriptor changed log page clay.mayers
2022-10-21  6:26   ` Klaus Jensen
2022-10-21 15:24     ` Clay Mayers
2022-10-21  0:18 ` [PATCH 3/4] hw/block/nvme: supply dw1 for aen result clay.mayers
2022-10-21  5:59   ` Klaus Jensen
2022-10-21 15:25     ` Clay Mayers
2022-10-21  0:18 ` [PATCH 4/4] hw/block/nvme: add zone descriptor changed AEN clay.mayers
2022-10-21  6:41   ` Klaus Jensen
2022-10-21 16:39     ` Clay Mayers [this message]
2022-10-21  5:57 ` [PATCH 0/4] hw/block/nvme: Implement ZNS finish-zone ZDC AEN Klaus Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=05759d4720ae493d881c254bc19d3e30@kioxia.com \
    --to=clay.mayers@kioxia.com \
    --cc=f4bug@amsat.org \
    --cc=fam@euphon.net \
    --cc=its@irrelevant.dk \
    --cc=kbusch@kernel.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).