s390x/pci: replace fid with idx in msg data of msix
commitcdd85eb2804018ab46a742ebf64dc5366b9fae73
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Fri, 6 May 2016 10:44:40 +0000 (6 18:44 +0800)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 11 Jul 2016 07:48:05 +0000 (11 09:48 +0200)
tree624e475a5749db7d07f6d0732902a759d914f777
parent0a608a6e132abffa8fd9455e2354a47acb95847e
s390x/pci: replace fid with idx in msg data of msix

Present code uses fid as the part of message data of msix for looking
up the specific zpci device. However it limits the usable range of fid,
and the code looking up the zpci device may fail due to truncation of
the fid.

In addition, fh is composed of enabled bit, FH_VIRT and the array index.
So we can use the array index as the identifier to store in msg data.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-pci-bus.c
hw/s390x/s390-pci-inst.c
target-s390x/kvm.c