[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 08/11] hw/nvme: enable ONCS reservations
From: |
Klaus Jensen |
Subject: |
Re: [PATCH v3 08/11] hw/nvme: enable ONCS reservations |
Date: |
Fri, 24 May 2024 09:10:51 +0200 |
On May 17 17:52, Changqi Lu wrote:
> This commit enables ONCS to support the reservation
> function at the controller level. It also lays the
> groundwork for detecting and enabling the reservation
> function on a per-namespace basis in RESCAP.
>
> Signed-off-by: Changqi Lu <luchangqi.123@bytedance.com>
> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
> ---
> hw/nvme/ctrl.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c
> index 127c3d2383..182307a48b 100644
> --- a/hw/nvme/ctrl.c
> +++ b/hw/nvme/ctrl.c
> @@ -8248,7 +8248,8 @@ static void nvme_init_ctrl(NvmeCtrl *n, PCIDevice
> *pci_dev)
> id->nn = cpu_to_le32(NVME_MAX_NAMESPACES);
> id->oncs = cpu_to_le16(NVME_ONCS_WRITE_ZEROES | NVME_ONCS_TIMESTAMP |
> NVME_ONCS_FEATURES | NVME_ONCS_DSM |
> - NVME_ONCS_COMPARE | NVME_ONCS_COPY);
> + NVME_ONCS_COMPARE | NVME_ONCS_COPY |
> + NVME_ONCS_RESRVATIONS);
>
> /*
> * NOTE: If this device ever supports a command set that does NOT use 0x0
> --
> 2.20.1
>
Should be merged with patch 10.
signature.asc
Description: PGP signature
- [PATCH v3 00/11] Support persistent reservation operations, Changqi Lu, 2024/05/17
- [PATCH v3 01/11] block: add persistent reservation in/out api, Changqi Lu, 2024/05/17
- [PATCH v3 03/11] scsi/constant: add persistent reservation in/out protocol constants, Changqi Lu, 2024/05/17
- [PATCH v3 04/11] scsi/util: add helper functions for persistent reservation types conversion, Changqi Lu, 2024/05/17
- [PATCH v3 05/11] hw/scsi: add persistent reservation in/out api for scsi device, Changqi Lu, 2024/05/17
- [PATCH v3 02/11] block/raw: add persistent reservation in/out driver, Changqi Lu, 2024/05/17
- [PATCH v3 06/11] block/nvme: add reservation command protocol constants, Changqi Lu, 2024/05/17
- [PATCH v3 07/11] hw/nvme: add helper functions for converting reservation types, Changqi Lu, 2024/05/17
- [PATCH v3 08/11] hw/nvme: enable ONCS reservations, Changqi Lu, 2024/05/17
- Re: [PATCH v3 08/11] hw/nvme: enable ONCS reservations,
Klaus Jensen <=
- [PATCH v3 09/11] hw/nvme: enable namespace rescap function, Changqi Lu, 2024/05/17
- [PATCH v3 10/11] hw/nvme: add reservation protocal command, Changqi Lu, 2024/05/17
- [PATCH v3 11/11] block/iscsi: add persistent reservation in/out driver, Changqi Lu, 2024/05/17
- Re: [PATCH v3 00/11] Support persistent reservation operations, 卢长奇, 2024/05/23