From: Peter Xu <peterx@redhat.com>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: qemu-devel@nongnu.org, yi.l.liu@intel.com,
"\\ Michael S . Tsirkin \\ " <mst@redhat.com>,
Jintack Lim <jintack@cs.columbia.edu>,
Marcel Apfelbaum <marcel@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] intel_iommu: make sure its init before PCI dev
Date: Thu, 23 Feb 2017 13:42:34 +0800 [thread overview]
Message-ID: <20170223054234.GF4015@pxdev.xzpeter.org> (raw)
In-Reply-To: <20170222202451.458de865@t450s.home>
On Wed, Feb 22, 2017 at 08:24:51PM -0700, Alex Williamson wrote:
[...]
> > Now Jintack reported another issue, that we may have two default
> > devices there if not specifying "-nodefaults", and that two devices
> > will always be the first ones to be inited.
> >
> > How about here we just explicitly check against vfio-pci devices, so
> > we just make sure vfio-pci devices will be put after intel-iommu?
> > Since actually vfio-pci devices are the only ones that we know we need
> > to be inited explicitly after the VT-d device.
>
> I was afraid you were going to come to this conclusion. That works,
> BUT it just means the problem gets ignored as a vfio problem when
> really vfio is doing nothing wrong other than caring about the device
> address space during its initialization. Then users have a perfectly
> working config, add a vfio-pci device and things explode. If you want
> to impose a user ordering requirement, do it consistently. Thanks,
We cannot guarantee that guest won't "explode" only if we
automatically order the device init, but that's something I am not
quite sure about that we will need now, especially I don't know
whether it would be a 2.9 material, considering that 2.9 soft freeze
should be on Feb 28th. :(
I kind of understand your concern, but would that really a so-called
explosion? The user will just be warned that he/she should move the
intel-iommu line slightly higher. Imho that's tolerable, since the
user is definitely adding something new to the parameters, and it's
possible the new command line just don't work. Also, imho it's not
anyone's fault if it happens, it's just a new rule that we need to
make sure things work properly...
I just want to know what would be the most feasible approach that we
can safely have the vtd vfio series in before 2.9. Any further input
would be welcomed.
Thanks,
-- peterx
next prev parent reply other threads:[~2017-02-23 5:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 5:49 [Qemu-devel] [PATCH] intel_iommu: make sure its init before PCI dev Peter Xu
2017-02-22 11:42 ` Jintack Lim
2017-02-22 13:37 ` Jintack Lim
2017-02-23 2:35 ` Peter Xu
2017-02-22 17:30 ` Alex Williamson
2017-02-23 3:06 ` Peter Xu
2017-02-23 3:24 ` Alex Williamson
2017-02-23 5:42 ` Peter Xu [this message]
2017-02-23 23:26 ` Michael S. Tsirkin
2017-02-23 8:10 ` Marcel Apfelbaum
2017-02-23 8:16 ` Peter Xu
2017-02-23 12:02 ` Marcel Apfelbaum
2017-02-23 15:35 ` Alex Williamson
2017-02-28 14:37 ` Marcel Apfelbaum
2017-03-09 12:31 ` Paolo Bonzini
2017-03-09 15:29 ` Michael S. Tsirkin
2017-03-09 15:34 ` Paolo Bonzini
2017-02-23 23:21 ` Michael S. Tsirkin
2017-02-24 2:45 ` Peter Xu
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=20170223054234.GF4015@pxdev.xzpeter.org \
--to=peterx@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=jintack@cs.columbia.edu \
--cc=marcel@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yi.l.liu@intel.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.