From: Chris Wright <chrisw@sous-sol.org>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: Chris Wright <chrisw@sous-sol.org>,
"Fischer, Anna" <anna.fischer@hp.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
libvir-list@redhat.com
Subject: Re: pci-stub error and MSI-X for KVM guest
Date: Fri, 8 Jan 2010 10:03:35 -0800 [thread overview]
Message-ID: <20100108180335.GA21403@sequoia.sous-sol.org> (raw)
In-Reply-To: <20100108110434.GA29141@redhat.com>
* Daniel P. Berrange (berrange@redhat.com) wrote:
> On Thu, Jan 07, 2010 at 04:50:03PM -0800, Chris Wright wrote:
> > Basically, this means that device assignment w/ libvirt will break
> > MSI/MSI-X because qemu will never be able to see that the host device
> > has those PCI capabilities. This, in turn, renders VF device assignment
> > useless (since a VF is required to support MSI and/or MSI-X).
> >
> > Granting CAP_SYS_ADMIN for each qemu instance that does device assignment
> > would render the privilege reduction useless (CAP_SYS_ADMIN is the
> > kitchen sink catchall of the Linux capability system).
>
> Yeah that's pretty troublesome, even when libvirt runs QEMU as 'root', it will
> remove all capabilities. Why is the 'CAP_SYS_ADMIN' check there - is it a
> mistakenly over-zealous permission check that could be removed, just relying
> on access controls on the sysfs /sys/bus/pci/devices/<DEVICE>/config
> file ?
Tools like lspci expect the ability to read a pci function's config
space header. In the past there have been devices that wedge when reading
areas of device dependent config space that are not implemented, so this
portion of config space is protected (hence the need for privileges to
do lspci -v).
thanks,
-chris
next prev parent reply other threads:[~2010-01-08 18:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-21 18:15 pci-stub error and MSI-X for KVM guest Fischer, Anna
2009-12-21 19:19 ` Chris Wright
2009-12-21 19:34 ` Fischer, Anna
2009-12-21 19:58 ` Chris Wright
2010-01-04 11:37 ` Fischer, Anna
2010-01-04 15:16 ` Chris Wright
2010-01-05 10:25 ` Fischer, Anna
2010-01-08 0:50 ` Chris Wright
2010-01-08 11:04 ` Daniel P. Berrange
2010-01-08 18:03 ` Chris Wright [this message]
2010-01-04 11:42 ` Fischer, Anna
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=20100108180335.GA21403@sequoia.sous-sol.org \
--to=chrisw@sous-sol.org \
--cc=anna.fischer@hp.com \
--cc=berrange@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=libvir-list@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox