OSDN Git Service

s390x/pci: fixup ind_offset of msix routing entry
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Tue, 5 Sep 2017 10:12:59 +0000 (12:12 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 19 Sep 2017 16:21:33 +0000 (18:21 +0200)
commit01c36195d6ed421ab913937c03ae16d2e0cdff38
tree739c71a004b93cf95cdf2db1f443d6c280d71712
parentceb7054fd4f00c4893938bfb23688f79be0fa782
s390x/pci: fixup ind_offset of msix routing entry

The guest uses the mpcifc instruction to register the aibvo of a zpci
device, which is the starting offset of indicators in the indicator
area and thus remains constant. Each msix vector is an offset from the
aibvo. When we map a msix route to an adapter route, we should not
modify the starting offset, but instead add the vector to the starting
offset to get the absolute offset in the specific route.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Message-Id: <1504606380-49341-3-git-send-email-zyimin@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/kvm.c