]> Git Repo - qemu.git/commit - hw/s390x/s390-pci-inst.c
s390x/pci: fix stpcifc_service_call
authorYi Min Zhao <[email protected]>
Wed, 15 Jun 2016 09:09:10 +0000 (17:09 +0800)
committerCornelia Huck <[email protected]>
Mon, 11 Jul 2016 07:48:05 +0000 (09:48 +0200)
commit0a608a6e132abffa8fd9455e2354a47acb95847e
tree611a414b0c2fcc75f0ae5a5ffcd29319d852ee70
parent4e3bfc167d9cc9c9e3c26eb15cb06439547f0533
s390x/pci: fix stpcifc_service_call

Firstly the function misses dmaas checking. This patch adds it.

Secondly the function uses s390_pci_find_dev_by_fh() to look up the
zpci device. This may fail if the guest provides a valid and disabled
fh but fh of the associated zpci device is enabled. Thus we use
s390_pci_find_dev_by_idx() instead.

Signed-off-by: Yi Min Zhao <[email protected]>
Reviewed-by: Pierre Morel <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
hw/s390x/s390-pci-inst.c
This page took 0.022983 seconds and 4 git commands to generate.