]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/nvme: fix number of PIDs for FDP RUH update
authorVincent Fu <vincentfu@gmail.com>
Fri, 3 May 2024 17:50:04 +0000 (13:50 -0400)
committerKlaus Jensen <k.jensen@samsung.com>
Thu, 11 Jul 2024 15:05:37 +0000 (17:05 +0200)
commit3936bbdf9a2e9233875f850c7576c79d06add261
tree1af33a4a6ca401a15a13ca4bfc97f658ce66c3cb
parentbc432bc522f5f4ab57e8994d63be41ba20f95b37
hw/nvme: fix number of PIDs for FDP RUH update

The number of PIDs is in the upper 16 bits of cdw10. So we need to
right-shift by 16 bits instead of only a single bit.

Fixes: 73064edfb864 ("hw/nvme: flexible data placement emulation")
Cc: qemu-stable@nongnu.org
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c