Radim Krčmář 6333e93c77 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>
2016-10-17 15:44:49 -02:00
..
2016-10-17 14:13:58 +02:00
2016-10-04 13:28:07 +01:00
2016-10-10 16:23:40 +01:00
2016-10-10 16:23:40 +01:00
2016-10-08 09:02:19 +03:00
2016-10-04 13:28:09 +01:00
2016-06-17 16:33:48 +10:00
2016-10-10 16:23:40 +01:00
2016-09-29 12:07:51 +01:00
2016-06-14 15:59:13 +01:00
2016-10-04 14:25:08 +01:00
2016-05-18 15:04:27 +03:00
2016-09-23 11:42:52 +08:00
2016-09-08 18:05:21 +04:00
2016-10-04 10:00:25 +02:00
2016-10-10 02:21:43 +03:00
2016-09-23 11:42:52 +08:00
2016-07-29 00:07:09 +03:00
2016-01-29 15:07:25 +00:00
2016-09-22 18:13:08 +01:00
2016-09-15 15:32:22 +03:00
2016-09-29 11:43:22 +08:00
2016-10-04 13:28:07 +01:00
2016-10-10 10:39:29 +01:00
2016-09-15 15:32:22 +03:00
2016-10-10 16:23:40 +01:00
2016-10-04 13:28:07 +01:00