summaryrefslogtreecommitdiffstats
path: root/hw/intc/pl190.c
diff options
context:
space:
mode:
authorGreg Kurz2020-08-07 13:32:21 +0200
committerDavid Gibson2020-08-13 12:58:52 +0200
commita4907119348d928e8b72e2d3b7566e50f272fa09 (patch)
treec8232a41fbff07d31b00a2375a5c42acc954f915 /hw/intc/pl190.c
parentppc/xive: Introduce dedicated kvm_irqchip_in_kernel() wrappers (diff)
downloadqemu-a4907119348d928e8b72e2d3b7566e50f272fa09.tar.gz
qemu-a4907119348d928e8b72e2d3b7566e50f272fa09.tar.xz
qemu-a4907119348d928e8b72e2d3b7566e50f272fa09.zip
spapr/xive: Convert KVM device fd checks to assert()
All callers guard these functions with an xive_in_kernel() helper. Make it clear that they are only to be called when the KVM XIVE device exists. Note that the check on xive is dropped in kvmppc_xive_disconnect(). It really cannot be NULL since it comes from set_active_intc() which only passes pointers to allocated objects. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <159679994169.876294.11026653581505077112.stgit@bahia.lan> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/intc/pl190.c')
0 files changed, 0 insertions, 0 deletions