]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 12 Jul 2024 18:50:41 +0000 (21:50 +0300)
commit57d9378af91537edb3f80fc732da31c603ae8579
tree9e82453357777d83fee65c01233654108521fb6f
parent55b151b6a67c0fc4c4cbdabc5bc4509ad0b81f30
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>
(cherry picked from commit 3936bbdf9a2e9233875f850c7576c79d06add261)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/nvme/ctrl.c