s390x/storage attributes: fix CMMA_BLOCK_SIZE usage
commit17f4566657df51c5e0cb40f30491e058d74d63c8
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Thu, 5 Jul 2018 10:39:30 +0000 (5 12:39 +0200)
committerCornelia Huck <cohuck@redhat.com>
Wed, 11 Jul 2018 12:36:54 +0000 (11 14:36 +0200)
tree921daafe563ac787dbd4b0033ebfe9617f7fe1b8
parentc447afd5783b9237fa51b7a85777007d8d568bfc
s390x/storage attributes: fix CMMA_BLOCK_SIZE usage

The macro CMMA_BLOCK_SIZE was defined but not used, and a hardcoded
value was instead used in the code.

This patch fixes the value of CMMA_BLOCK_SIZE and uses it in the
appropriate place in the code, and fixes another case of hardcoded
value in the KVM backend, replacing it with the more appropriate
constant KVM_S390_CMMA_SIZE_MAX.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Message-Id: <1530787170-3101-1-git-send-email-imbrenda@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-stattrib-kvm.c
hw/s390x/s390-stattrib.c