summary refs log tree commit diff stats
path: root/util/oslib-posix.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2017-10-31 11:50:52 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-10-31 11:50:52 +0000
commit168df2dea701bbf3118bdfea7794369dfa694d3d (patch)
treebe9cd2584ddd3df4aa32860fede26e7933f6660f /util/oslib-posix.c
parentdb7b98c6bb57312a49d9c47ee890e5e50a1db86d (diff)
downloadfocaccia-qemu-168df2dea701bbf3118bdfea7794369dfa694d3d.tar.gz
focaccia-qemu-168df2dea701bbf3118bdfea7794369dfa694d3d.zip
hw/pci-host/gpex: Improve INTX to gsi routing error checking
We exposed gpex_set_irq_num() for machines to set the INTx to
GSI routing. However if the machine forgets to call that
function we currently do not check the association was properly
done. Let's initialize gsi values to -1 and if this value is
found in gpex_route_intx_pin_to_irq, set the routing mode as
disabled.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-id: 1508776211-22175-1-git-send-email-eric.auger@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'util/oslib-posix.c')
0 files changed, 0 insertions, 0 deletions