[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 13/15] hw/nvme: Add support for the Virtualization Managem
From: |
Klaus Jensen |
Subject: |
Re: [PATCH v2 13/15] hw/nvme: Add support for the Virtualization Management command |
Date: |
Wed, 24 Nov 2021 09:06:23 +0100 |
On Nov 16 16:34, Łukasz Gieryk wrote:
> With the new Virtualization Management command one can:
> - assign flexible resources (queues, interrupts) to primary and
> secondary controllers,
> - toggle the online/offline state of given controller.
>
> Signed-off-by: Łukasz Gieryk <lukasz.gieryk@linux.intel.com>
> ---
> hw/nvme/ctrl.c | 204 +++++++++++++++++++++++++++++++++++++++++++
> hw/nvme/nvme.h | 16 ++++
> hw/nvme/trace-events | 3 +
> include/block/nvme.h | 17 ++++
> 4 files changed, 240 insertions(+)
>
> diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c
> index f589ffde59..9d0432a2e5 100644
> --- a/hw/nvme/ctrl.c
> +++ b/hw/nvme/ctrl.c
[... snip]
> +static uint16_t nvme_assign_virt_res_to_sec(NvmeCtrl *n, NvmeRequest *req,
> + uint16_t cntlid, uint8_t rt, int
> nr)
> +{
> + int limit = rt ? n->params.sriov_max_vi_per_vf :
> + n->params.sriov_max_vq_per_vf;
If these parameters are left at the default, limit is 0 and the check
below fails.
[... snip]
> + if (nr > limit) {
> + return NVME_INVALID_NUM_RESOURCES | NVME_DNR;
> + }
signature.asc
Description: PGP signature
- [PATCH v2 09/15] hw/nvme: Make max_ioqpairs and msix_qsize configurable in runtime, (continued)
- [PATCH v2 14/15] docs: Add documentation for SR-IOV and Virtualization Enhancements, Łukasz Gieryk, 2021/11/16
- [PATCH v2 15/15] hw/nvme: Update the initalization place for the AER queue, Łukasz Gieryk, 2021/11/16
- [PATCH v2 13/15] hw/nvme: Add support for the Virtualization Management command, Łukasz Gieryk, 2021/11/16
- Re: [PATCH v2 13/15] hw/nvme: Add support for the Virtualization Management command,
Klaus Jensen <=
- Re: [PATCH v2 00/15] hw/nvme: SR-IOV with Virtualization Enhancements, Klaus Jensen, 2021/11/24