block: get rid of blk->guest_block_size
commit1ab5096b3a9790f28be0399f8642b8cebd3529e0
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 18 May 2022 13:09:45 +0000 (18 14:09 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jun 2022 15:07:06 +0000 (24 17:07 +0200)
tree460e4fa771fa43e97f94b515584c80d41d5eb6ba
parent3399848b7fffcf388f53c5308a9b97bcd346ea7c
block: get rid of blk->guest_block_size

Commit 1b7fd729559c ("block: rename buffer_alignment to
guest_block_size") noted:

  At this point, the field is set by the device emulation, but completely
  ignored by the block layer.

The last time the value of buffer_alignment/guest_block_size was
actually used was before commit 339064d50639 ("block: Don't use guest
sector size for qemu_blockalign()").

This value has not been used since 2013. Get rid of it.

Cc: Xie Yongji <xieyongji@bytedance.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220518130945.2657905-1-stefanha@redhat.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Faria <afaria@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
block/export/vhost-user-blk-server.c
hw/block/virtio-blk.c
hw/block/xen-block.c
hw/ide/core.c
hw/scsi/scsi-disk.c
hw/scsi/scsi-generic.c
include/sysemu/block-backend-io.h