mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
machine: remove iommu property
Since iommu devices can be created with '-device' there is no need to keep iommu as machine and mch property. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
621d983a1f
commit
10d01f73e3
4 changed files with 0 additions and 36 deletions
|
@ -447,14 +447,6 @@ static void mch_reset(DeviceState *qdev)
|
|||
mch_update(mch);
|
||||
}
|
||||
|
||||
static void mch_init_dmar(MCHPCIState *mch)
|
||||
{
|
||||
mch->iommu = INTEL_IOMMU_DEVICE(qdev_create(NULL, TYPE_INTEL_IOMMU_DEVICE));
|
||||
object_property_add_child(OBJECT(mch), "intel-iommu",
|
||||
OBJECT(mch->iommu), NULL);
|
||||
qdev_init_nofail(DEVICE(mch->iommu));
|
||||
}
|
||||
|
||||
static void mch_realize(PCIDevice *d, Error **errp)
|
||||
{
|
||||
int i;
|
||||
|
@ -513,10 +505,6 @@ static void mch_realize(PCIDevice *d, Error **errp)
|
|||
mch->pci_address_space, &mch->pam_regions[i+1],
|
||||
PAM_EXPAN_BASE + i * PAM_EXPAN_SIZE, PAM_EXPAN_SIZE);
|
||||
}
|
||||
/* Intel IOMMU (VT-d) */
|
||||
if (object_property_get_bool(qdev_get_machine(), "iommu", NULL)) {
|
||||
mch_init_dmar(mch);
|
||||
}
|
||||
}
|
||||
|
||||
uint64_t mch_mcfg_base(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue