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)
commitb91cf6e95b4f987d0d26def0c9cca3168d7752cb
treedfc470f4cf949f3ffd85d5f31a9e1d94f0e19b6a
parent0c89e2a3a9d0815b6eb769ed22157bd9996cbb58
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