]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/nvme: Allocate sec-ctrl-list as a dynamic array
authorMinwoo Im <minwoo.im@samsung.com>
Wed, 29 May 2024 12:42:33 +0000 (21:42 +0900)
committerKlaus Jensen <k.jensen@samsung.com>
Thu, 11 Jul 2024 15:05:37 +0000 (17:05 +0200)
commitc6159d0e384f4176e69555a9bae37ac21fe69b57
tree8f313056e3f334665cb79dee837f037ff669ec5d
parent1a494d119abb57e835f1230f4524f1eb67eb83e9
hw/nvme: Allocate sec-ctrl-list as a dynamic array

To prevent further bumping up the number of maximum VF te support, this
patch allocates a dynamic array (NvmeCtrl *)->sec_ctrl_list based on
number of VF supported by sriov_max_vfs property.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c
hw/nvme/nvme.h
hw/nvme/subsys.c