提交 09aa9a52 编写于 作者: A Alexey Kardashevskiy 提交者: Alexander Graf

spapr-pci: enable adding PHB via -device

Recent changes introduced cannot_instantiate_with_device_add_yet
and removed capability of adding yet another PCI host bridge via
command line for SPAPR platform (POWERPC64 server).

This brings the capability back and puts SPAPR PHB into "bridge"
category.

This is not much use for emulated PHB but it is absolutely required
for VFIO as we put an IOMMU group onto a separate PHB on SPAPR.
Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 6cd8712c
...@@ -728,6 +728,8 @@ static void spapr_phb_class_init(ObjectClass *klass, void *data) ...@@ -728,6 +728,8 @@ static void spapr_phb_class_init(ObjectClass *klass, void *data)
dc->props = spapr_phb_properties; dc->props = spapr_phb_properties;
dc->reset = spapr_phb_reset; dc->reset = spapr_phb_reset;
dc->vmsd = &vmstate_spapr_pci; dc->vmsd = &vmstate_spapr_pci;
set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
dc->cannot_instantiate_with_device_add_yet = false;
} }
static const TypeInfo spapr_phb_info = { static const TypeInfo spapr_phb_info = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册