summary refs log tree commit diff stats
path: root/hw/intc/apic_common.c
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2016-10-10 17:28:45 +0200
committerEduardo Habkost <ehabkost@redhat.com>2016-10-17 15:44:49 -0200
commit6333e93c772f78baf26a5c97c1a67ffa7cd76068 (patch)
tree5ade4168fb3fceea825910c3007028c786a10a83 /hw/intc/apic_common.c
parent329460191d527e0cfa9ddbd14c75994e73de1975 (diff)
downloadfocaccia-qemu-6333e93c772f78baf26a5c97c1a67ffa7cd76068.tar.gz
focaccia-qemu-6333e93c772f78baf26a5c97c1a67ffa7cd76068.zip
intel_iommu: redo configuraton check in realize
* there no point in configuring the device if realization is going to
  fail, so move the check to the beginning,
* create a separate function for the check,
* use error_setg() instead error_report().

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/intc/apic_common.c')
0 files changed, 0 insertions, 0 deletions