Skip to content
Snippets Groups Projects
Commit f432fdfa authored by Minwoo Im's avatar Minwoo Im Committed by Klaus Jensen
Browse files

hw/block/nvme: support changed namespace asynchronous event


If namespace inventory is changed due to some reasons (e.g., namespace
attachment/detachment), controller can send out event notifier to the
host to manage namespaces.

This patch sends out the AEN to the host after either attach or detach
namespaces from controllers.  To support clear of the event from the
controller, this patch also implemented Get Log Page command for Changed
Namespace List log type.  To return namespace id list through the
command, when namespace inventory is updated, id is added to the
per-controller list (changed_ns_list).

To indicate the support of this async event, this patch set
OAES(Optional Asynchronous Events Supported) in Identify Controller data
structure.

Signed-off-by: default avatarMinwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarKlaus Jensen <k.jensen@samsung.com>
Tested-by: default avatarKlaus Jensen <k.jensen@samsung.com>
Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
parent 645ce1a7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment