|
|
|
@ -409,8 +409,9 @@ static void pci_config(void) |
|
|
|
|
|
|
|
qvirtio_set_driver_ok(&dev->vdev); |
|
|
|
|
|
|
|
qmp("{ 'execute': 'block_resize', 'arguments': { 'device': 'drive0', " |
|
|
|
" 'size': %d } }", n_size); |
|
|
|
qmp_discard_response("{ 'execute': 'block_resize', " |
|
|
|
" 'arguments': { 'device': 'drive0', " |
|
|
|
" 'size': %d } }", n_size); |
|
|
|
qvirtio_wait_config_isr(&dev->vdev, QVIRTIO_BLK_TIMEOUT_US); |
|
|
|
|
|
|
|
capacity = qvirtio_config_readq(&dev->vdev, 0); |
|
|
|
@ -458,8 +459,9 @@ static void pci_msix(void) |
|
|
|
|
|
|
|
qvirtio_set_driver_ok(&dev->vdev); |
|
|
|
|
|
|
|
qmp("{ 'execute': 'block_resize', 'arguments': { 'device': 'drive0', " |
|
|
|
" 'size': %d } }", n_size); |
|
|
|
qmp_discard_response("{ 'execute': 'block_resize', " |
|
|
|
" 'arguments': { 'device': 'drive0', " |
|
|
|
" 'size': %d } }", n_size); |
|
|
|
|
|
|
|
qvirtio_wait_config_isr(&dev->vdev, QVIRTIO_BLK_TIMEOUT_US); |
|
|
|
|
|
|
|
@ -691,8 +693,9 @@ static void mmio_basic(void) |
|
|
|
|
|
|
|
test_basic(&dev->vdev, alloc, vq); |
|
|
|
|
|
|
|
qmp("{ 'execute': 'block_resize', 'arguments': { 'device': 'drive0', " |
|
|
|
" 'size': %d } }", n_size); |
|
|
|
qmp_discard_response("{ 'execute': 'block_resize', " |
|
|
|
" 'arguments': { 'device': 'drive0', " |
|
|
|
" 'size': %d } }", n_size); |
|
|
|
|
|
|
|
qvirtio_wait_queue_isr(&dev->vdev, vq, QVIRTIO_BLK_TIMEOUT_US); |
|
|
|
|
|
|
|
|