]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r256926, r257005
authorgrehan <grehan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 25 Oct 2013 18:39:01 +0000 (18:39 +0000)
committergrehan <grehan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 25 Oct 2013 18:39:01 +0000 (18:39 +0000)
commite736f820fdcccbaaf58620c9682ab335a78861a1
treef61d0d83e28cb48d2f2c466e962659a04c5f5620
parentc0ff6c91c9485406c49394a68787260e3b47b3da
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)

git-svn-id: svn://svn.freebsd.org/base/stable/10@257128 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bhyve/pci_ahci.c
usr.sbin/bhyve/pci_virtio_block.c