]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa_sim_blk: check if sector is 0 for commands other than read or write
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 11 Aug 2022 08:36:29 +0000 (10:36 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:44:57 +0000 (04:44 -0400)
commit5319503cf67a5bbb2753dd1770d0755e204d40ae
treedfc470f4cf949f3ffd85d5f31a9e1d94f0e19b6a
parente5e240d28d5099a4d6040b9f1dcc6608b043b1a1
vdpa_sim_blk: check if sector is 0 for commands other than read or write

VIRTIO spec states: "The sector number indicates the offset
(multiplied by 512) where the read or write is to occur. This field is
unused and set to 0 for commands other than read or write."

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20220811083632.77525-2-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c