From: Eduardo Habkost <ehabkost@redhat.com>
To: Marcel Apfelbaum <marcel@redhat.com>
Cc: qemu-devel@nongnu.org, jgross@suse.com,
Thomas Huth <thuth@redhat.com>,
sstabellini@kernel.org, Laszlo Ersek <lersek@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Marcel Apfelbaum <marcel.a@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 6/6] q35: Allow only supported dynamic sysbus devices
Date: Mon, 27 Nov 2017 23:18:43 -0200 [thread overview]
Message-ID: <20171128011843.GF3037@localhost.localdomain> (raw)
In-Reply-To: <2d315ff7-ac0e-ed47-f632-b7af8f85829a@redhat.com>
On Mon, Nov 27, 2017 at 10:44:34AM +0200, Marcel Apfelbaum wrote:
> On 25/11/2017 17:16, Eduardo Habkost wrote:
> > The only user-creatable sysbus devices in qemu-system-x86_64 are
> > amd-iommu, intel-iommu, and xen-backend. xen-backend is handled
> > by xen_set_dynamic_sysbus(), so we only need to add amd-iommu and
> > intel-iommu.
> >
> > Cc: "Michael S. Tsirkin" <mst@redhat.com>
> > Cc: Marcel Apfelbaum <marcel.a@redhat.com>
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> > ---
> > Changes series v1 -> v2:
> > * New patch added to series
> > ---
> > hw/i386/pc_q35.c | 6 ++++--
> > 1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
> > index d0b0e5b422..db2bebb357 100644
> > --- a/hw/i386/pc_q35.c
> > +++ b/hw/i386/pc_q35.c
> > @@ -42,6 +42,8 @@
> > #include "exec/address-spaces.h"
> > #include "hw/i386/pc.h"
> > #include "hw/i386/ich9.h"
> > +#include "hw/i386/amd_iommu.h"
> > +#include "hw/i386/intel_iommu.h"
>
> Is a pity we have to add the AMD/Intel header files
> only for the type, maybe we should have a header only
> with the type names, anyway out of the scope of this series.
Another option is to use the type name strings directly instead
of the TYPE_* macros (which I never really liked). But I don't
want to deviate from the current practice.
>
> Another question, what about I440FX?
> I think the AMD vIOMMU can theoretically work with the
> conventional PCI machines, I am not sure if it was tested
> or intended to work with it.
i440fx still has has_dynamic_sysbus=false. With this series, we
can now add amd-iommu to its allowed list, if somebody is willing
to support/test it.
>
> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Thanks!
>
> Thanks,
> Marcel
>
> > #include "hw/smbios/smbios.h"
> > #include "hw/ide/pci.h"
> > #include "hw/ide/ahci.h"
> > @@ -299,8 +301,8 @@ static void pc_q35_machine_options(MachineClass *m)
> > m->default_machine_opts = "firmware=bios-256k.bin";
> > m->default_display = "std";
> > m->no_floppy = 1;
> > - /*TODO: allow only sysbus devices that really work with this machine */
> > - machine_class_allow_dynamic_sysbus_dev(m, TYPE_SYS_BUS_DEVICE);
> > + machine_class_allow_dynamic_sysbus_dev(m, TYPE_AMD_IOMMU_DEVICE);
> > + machine_class_allow_dynamic_sysbus_dev(m, TYPE_INTEL_IOMMU_DEVICE);
> > m->max_cpus = 288;
> > }
> >
>
--
Eduardo
next prev parent reply other threads:[~2017-11-28 1:18 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-25 15:16 [Qemu-devel] [PATCH v2 0/6] Replace has_dynamic_sysbus with list of allowed device types Eduardo Habkost
2017-11-25 15:16 ` [Qemu-arm] [PATCH v2 1/6] machine: Replace has_dynamic_sysbus with list of allowed devices Eduardo Habkost
2017-11-25 15:16 ` Eduardo Habkost
2017-11-25 15:16 ` [Qemu-devel] " Eduardo Habkost
2017-11-25 17:08 ` [Qemu-arm] " Greg Kurz
2017-11-25 17:08 ` Greg Kurz
2017-11-25 17:08 ` Greg Kurz
2017-11-27 1:51 ` [Qemu-arm] " David Gibson
2017-11-27 1:51 ` David Gibson
2017-11-27 1:51 ` [Qemu-devel] " David Gibson
2017-11-27 8:39 ` [Qemu-arm] " Marcel Apfelbaum
2017-11-27 8:39 ` Marcel Apfelbaum
2017-11-27 8:39 ` [Qemu-devel] " Marcel Apfelbaum
2017-11-28 16:55 ` [Qemu-arm] " Marc-André Lureau
2017-11-28 16:55 ` Marc-André Lureau
2017-11-28 16:55 ` Marc-André Lureau
2017-11-28 18:34 ` Eduardo Habkost
2017-11-28 18:34 ` Eduardo Habkost
2017-11-28 18:34 ` Eduardo Habkost
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 2/6] hw/arm/virt: Allow only supported dynamic sysbus devices Eduardo Habkost
2017-11-25 15:16 ` Eduardo Habkost
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 3/6] ppc: e500: " Eduardo Habkost
2017-11-25 18:31 ` Greg Kurz
2017-11-28 1:11 ` Eduardo Habkost
2017-11-27 1:52 ` David Gibson
2017-11-28 1:12 ` Eduardo Habkost
2017-11-28 4:54 ` David Gibson
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 4/6] spapr: " Eduardo Habkost
2017-11-25 17:43 ` Greg Kurz
2017-11-27 1:52 ` David Gibson
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 5/6] xen: Add only xen-sysdev to dynamic sysbus device list Eduardo Habkost
2017-11-25 15:16 ` Eduardo Habkost
2017-12-22 13:36 ` [Qemu-devel] " Marc-André Lureau
2017-12-22 13:36 ` Marc-André Lureau
2018-01-05 14:12 ` Anthony PERARD
2018-01-05 14:12 ` [Qemu-devel] " Anthony PERARD
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 6/6] q35: Allow only supported dynamic sysbus devices Eduardo Habkost
2017-11-27 8:44 ` Marcel Apfelbaum
2017-11-28 1:18 ` Eduardo Habkost [this message]
2017-12-22 13:37 ` [Qemu-devel] [PATCH v2 0/6] Replace has_dynamic_sysbus with list of allowed device types Marc-André Lureau
2018-01-09 20:12 ` Eduardo Habkost
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171128011843.GF3037@localhost.localdomain \
--to=ehabkost@redhat.com \
--cc=jgross@suse.com \
--cc=lersek@redhat.com \
--cc=marcel.a@redhat.com \
--cc=marcel@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sstabellini@kernel.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.