diff options
| author | Łukasz Gieryk | 2022-05-09 16:16:15 +0200 |
|---|---|---|
| committer | Klaus Jensen | 2022-06-23 23:24:29 +0200 |
| commit | aa817713376195cc5cd861183fc7f953a7b60d5d (patch) | |
| tree | 5a01228103204917ebba134fcee7c8f6d87f5f06 /include | |
| parent | hw/nvme: Remove reg_size variable and update BAR0 size calculation (diff) | |
| download | qemu-aa817713376195cc5cd861183fc7f953a7b60d5d.tar.gz qemu-aa817713376195cc5cd861183fc7f953a7b60d5d.tar.xz qemu-aa817713376195cc5cd861183fc7f953a7b60d5d.zip | |
hw/nvme: Calculate BAR attributes in a function
An NVMe device with SR-IOV capability calculates the BAR size
differently for PF and VF, so it makes sense to extract the common code
to a separate function.
Signed-off-by: Łukasz Gieryk <lukasz.gieryk@linux.intel.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
