mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/nvme: Initialize capability structures for primary/secondary controllers
With four new properties: - sriov_v{i,q}_flexible, - sriov_max_v{i,q}_per_vf, one can configure the number of available flexible resources, as well as the limits. The primary and secondary controller capability structures are initialized accordingly. Since the number of available queues (interrupts) now varies between VF/PF, BAR size calculation is also adjusted. Signed-off-by: Łukasz Gieryk <lukasz.gieryk@linux.intel.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
This commit is contained in:
parent
aa81771337
commit
746d42b133
3 changed files with 143 additions and 7 deletions
|
@ -1576,6 +1576,11 @@ typedef struct QEMU_PACKED NvmePriCtrlCap {
|
|||
uint8_t rsvd80[4016];
|
||||
} NvmePriCtrlCap;
|
||||
|
||||
typedef enum NvmePriCtrlCapCrt {
|
||||
NVME_CRT_VQ = 1 << 0,
|
||||
NVME_CRT_VI = 1 << 1,
|
||||
} NvmePriCtrlCapCrt;
|
||||
|
||||
typedef struct QEMU_PACKED NvmeSecCtrlEntry {
|
||||
uint16_t scid;
|
||||
uint16_t pcid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue