]> git.proxmox.com Git - mirror_qemu.git/commit
x86_iommu: Move machine check to x86_iommu_realize()
authorMohammed Gamal <mgamal@redhat.com>
Wed, 29 Nov 2017 12:33:12 +0000 (13:33 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 18 Jan 2018 19:52:38 +0000 (21:52 +0200)
commit29396ed9acfaee9936377ddece4b05452b417861
tree2440cf7b4dac258fe3d9bb3636dc5bdfe4ae265c
parent459f5d29d27c26df194ccc0db7902d1e6fafd0c8
x86_iommu: Move machine check to x86_iommu_realize()

Instead of having the same error checks in vtd_realize()
and amdvi_realize(), move that over to the generic
x86_iommu_realize().

Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/i386/amd_iommu.c
hw/i386/intel_iommu.c
hw/i386/x86-iommu.c