[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 8/9] hw/nvme: add reservation protocal command
From: |
Klaus Jensen |
Subject: |
Re: [PATCH 8/9] hw/nvme: add reservation protocal command |
Date: |
Wed, 8 May 2024 12:41:16 +0200 |
On May 8 17:36, Changqi Lu wrote:
> Add reservation acquire, reservation register,
> reservation release and reservation report commands
> in the nvme device layer.
>
> By introducing these commands, this enables the nvme
> device to perform reservation-related tasks, including
> querying keys, querying reservation status, registering
> reservation keys, initiating and releasing reservations,
> as well as clearing and preempting reservations held by
> other keys.
>
> These commands are crucial for management and control of
> shared storage resources in a persistent manner.
>
> Signed-off-by: Changqi Lu <luchangqi.123@bytedance.com>
> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
> ---
> hw/nvme/ctrl.c | 304 ++++++++++++++++++++++++++++++++++++++++++-
> hw/nvme/nvme.h | 4 +
> include/block/nvme.h | 37 ++++++
> 3 files changed, 344 insertions(+), 1 deletion(-)
>
> diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c
> index 127c3d2383..1f881fc44c 100644
> --- a/hw/nvme/ctrl.c
> +++ b/hw/nvme/ctrl.c
> @@ -294,6 +294,10 @@ static const uint32_t nvme_cse_iocs_nvm[256] = {
> [NVME_CMD_COMPARE] = NVME_CMD_EFF_CSUPP,
> [NVME_CMD_IO_MGMT_RECV] = NVME_CMD_EFF_CSUPP,
> [NVME_CMD_IO_MGMT_SEND] = NVME_CMD_EFF_CSUPP | NVME_CMD_EFF_LBCC,
> + [NVME_CMD_RESV_REGISTER] = NVME_CMD_EFF_CSUPP,
> + [NVME_CMD_RESV_REPORT] = NVME_CMD_EFF_CSUPP,
> + [NVME_CMD_RESV_ACQUIRE] = NVME_CMD_EFF_CSUPP,
> + [NVME_CMD_RESV_RELEASE] = NVME_CMD_EFF_CSUPP,
> };
We need to indicate support for these commands in ONCS, right? And that
should depend on if or not the underlying block device supports it.
signature.asc
Description: PGP signature
- Re: [PATCH 1/9] block: add persistent reservation in/out api, (continued)
- [PATCH 5/9] hw/scsi: add persistent reservation in/out api for scsi device, Changqi Lu, 2024/05/08
- [PATCH 3/9] scsi/constant: add persistent reservation in/out protocol constants, Changqi Lu, 2024/05/08
- [PATCH 6/9] block/nvme: add reservation command protocol constants, Changqi Lu, 2024/05/08
- [PATCH 8/9] hw/nvme: add reservation protocal command, Changqi Lu, 2024/05/08
- Re: [PATCH 8/9] hw/nvme: add reservation protocal command,
Klaus Jensen <=
- Re: [PATCH 0/9] Support persistent reservation operations, Stefan Hajnoczi, 2024/05/09