Register a resize callback with the blockif interface. When the
callback fires, update the size of the disk and notify the guest via a
configuration change interrupt.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 39510 Build 36399: arc lint + arc unit
Event Timeline
usr.sbin/bhyve/pci_virtio_block.c | ||
---|---|---|
446 | Does the lock need to be taken here ? |
usr.sbin/bhyve/pci_virtio_block.c | ||
---|---|---|
446 |
I only did it to protect vbc_capacity, but if the lock isn't held when reading that field then it isn't doing much good. Hmm, I guess if we cared about the race we would need to grab the lock again in pci_vtblk_cfgread()? Maybe the race is such that we don't care? Or if cfg reads are rare, maybe it doesn't hurt to be paranoid and lock in the read? |
usr.sbin/bhyve/pci_virtio_block.c | ||
---|---|---|
446 | I've gone ahead and removed the lock. |