]> 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)
commitfe7a881b6e8c9ef0771e3c6b8d1341fb5d57a369
treedfc470f4cf949f3ffd85d5f31a9e1d94f0e19b6a
parent19b5d9a640258c0d31e51a41e3b53c1a4af1ed9a
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