summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorEric Farman <farman@linux.ibm.com>2020-12-02 19:37:24 +0100
committerHeiko Carstens <hca@linux.ibm.com>2023-01-09 14:34:08 +0100
commit6a6dc14ac84733cf5864a7cf9f5b3e43f6a79be8 (patch)
tree7a9ea8fb6919d9d0414be728428ea4313dfa45c0 /lib/mpi/mpi-add.c
parent667e5dbabf2bb790640525cff7d563cf88eb3e61 (diff)
vfio/ccw: calculate number of IDAWs regardless of format
The idal_nr_words() routine works well for 4K IDAWs, but lost its ability to handle the old 2K formats with the removal of 31-bit builds in commit 5a79859ae0f3 ("s390: remove 31 bit support"). Since there's nothing preventing a guest from generating this IDAW format, let's re-introduce the math for them and use both when calculating the number of IDAWs based on the bits specified in the ORB. Signed-off-by: Eric Farman <farman@linux.ibm.com> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions