diff options
| author | Eugene (jno) Dvurechenski | 2014-08-29 11:01:36 +0200 |
|---|---|---|
| committer | Christian Borntraeger | 2014-09-01 09:23:02 +0200 |
| commit | 92cb05574b7bd489be81f9c58497dc7dfe5d8859 (patch) | |
| tree | 4bbca10d0e306d41bb576c8aa59062271c9d551a /scripts/qapi-commands.py | |
| parent | s390x/kvm: execute the first cpu reset on the vcpu thread (diff) | |
| download | qemu-92cb05574b7bd489be81f9c58497dc7dfe5d8859.tar.gz qemu-92cb05574b7bd489be81f9c58497dc7dfe5d8859.tar.xz qemu-92cb05574b7bd489be81f9c58497dc7dfe5d8859.zip | |
pc-bios/s390-ccw: support all virtio block size
The block size value may be given "as is" OR as a base value and
a shift count (exponent). So, we have to use calculation to get
the proper number in the code.
The main expression reads as
(blk_cfg.blk_size << blk_cfg.physical_block_exp)
E.g., various combinations between blk_size=1/physical_block_exp=12
and blk_size=4096/physical_block_exp=0 are valid for 4K blocks.
Signed-off-by: Eugene (jno) Dvurechenski <jno@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions
