]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r256926, r257005
authorgrehan <grehan@FreeBSD.org>
Fri, 25 Oct 2013 18:39:01 +0000 (18:39 +0000)
committergrehan <grehan@FreeBSD.org>
Fri, 25 Oct 2013 18:39:01 +0000 (18:39 +0000)
commitc26ecf05552e3861de3293801d85fe44f236b115
treef61d0d83e28cb48d2f2c466e962659a04c5f5620
parent47b928f216400825cad00e3435e0c50fcb7ebb58
MFC r256926, r257005

r256926
  Fix AHCI ATAPI emulation when backed with /dev/cd0

  - remove assumption that the backing file/device had
    512-byte sectors
  - fix incorrect iovec size variable that would result
    in a buffer overrun when an o/s issued an i/o request
    with more s/g elements than the blockif api

r257005
  Export the block size capability to guests.
  - Use #defines for capability bits
  - Export the VTBLK_F_BLK_SIZE capability
  - Fix bug in calculating capacity: it is in
    512-byte units, not the underlying sector size

  This allows virtio-blk to have backing devices
  with non 512-byte sector sizes e.g. /dev/cd0, and
  4K-block harddrives.

Approved by:  re (glebius)
usr.sbin/bhyve/pci_ahci.c
usr.sbin/bhyve/pci_virtio_block.c