[SPDK] Re: NVMe devices with CMB

Klaus Jensen <its at irrelevant.dk> Mon, 08 Nov 2021 09:29:41 +0100
Newsgroups dev.linux.lists.spdk
Message-ID <[email protected]>
On Nov  4 22:39, Kit Chow wrote:
> Hi Benjamin,
> 
> I found the following qemu nvme blog - http://blog.frankenmichl.de/2018/02/13/add-nvme-device-to-vm/
> 
> Following the instructions, I get the NVMe device listed below with a bar4 size of 4K. Is this the CMB and is it large enough for small p2p copies?
> 

Hi Kit,

You need to specifically enable the CMB with the `cmb_size_mb`
parameters (argument in MBs).

  -device "nvme,id=nvme0,serial=deadbeef,cmb_size_mb=64"

Looks like you are using a pretty old version of QEMU. In current
versions the CMB is exclusively using BAR 4 - I think what you are
seeing is an older version where the MSI-X tables were in BAR4.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAmGI3/QACgkQTeGvMW1P
Den4lgf+Pr72M8FEifLRAwJD7VmdnTaBlPPu3KNgg94MSxsy8BDPqXtpUehuojI9
Iv3iCzbGD9YajU2FRPvI/MqcdAFTJO8bGO/cIkhSvfKjhNsKFGnLM+jiSgf45k7p
5obewl1CyCkksIan32RyiIE5FzMt2UvBKVtq9f1FmQzzYWW2pViGMElKm533Vm6z
53/l9bJmIBQI+87ORFJdzT+QpJoU5eAd5Tk0Bk0bRXaNz0XgXP9zem71BNLp5t3A
Osvw0KKIGLDDfOaSuL1pMJCSKysIJEtZIJiGB+SMP0M1Y0RzB0fReiKe+Ttm4oVl
AXkv+mzW/ebWDQuxoidpu26l8wMzew==
=nFN5
-----END PGP SIGNATURE-----