Re: [PATCH v2] hw/nvme: allow to pass a memory backend object for the CMB

2022-06-07 Thread Wertenbroek Rick
/nvme/nvme.h index 739c8b8f79..63747cf967 100644 --- a/hw/nvme/nvme.h +++ b/hw/nvme/nvme.h @@ -434,10 +434,11 @@ typedef struct NvmeCtrl { uint8_t smart_critical_warning; struct { -MemoryRegion mem; -uint8_t *buf; - bool cmse; -hwaddr cba

Re: [PATCH v2] hw/nvme: allow to pass a memory backend object for the CMB

2022-06-07 Thread Wertenbroek Rick
-uint8_t *buf; - bool cmse; -hwaddr cba; +MemoryRegion mem; +HostMemoryBackend *dev; +uint8_t *buf; +bool cmse; +hwaddrcba; } cmb; struct { -- 2.24.3 (Apple Git-128) >

[PATCH v2] hw/nvme: allow to pass a memory backend object for the CMB

2022-04-19 Thread Wertenbroek Rick
Adds the optional -cmbdev= option that takes a QEMU memory backend -object to be used to for the CMB (Controller Memory Buffer). This option takes precedence over cmb_size_mb= if both used. (The size will be deduced from the memory backend option). Signed-off-by: Rick Wertenbroek --- hw/nvme/ctrl

[PATCH] hw/nvme: allow to pass a memory backend object for the CMB

2022-04-16 Thread Wertenbroek Rick
Adds the optional -cmbdev= option that takes a QEMU memory backend -object to be used to for the CMB (Controller Memory Buffer). This option takes precedence over cmb_size_mb= if both used. (The size will be deduced from the memory backend option). Signed-off-by: Rick Wertenbroek --- hw/nvme/ctrl