From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] add pci-bridge-seat
Date: Tue, 17 Mar 2015 20:20:38 +0100 [thread overview]
Message-ID: <20150317201941-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <1426576605.27188.10.camel@nilsson.home.kraxel.org>
On Tue, Mar 17, 2015 at 08:16:45AM +0100, Gerd Hoffmann wrote:
> On Mo, 2015-03-16 at 13:20 +0100, Michael S. Tsirkin wrote:
> > On Mon, Mar 16, 2015 at 11:36:43AM +0100, Gerd Hoffmann wrote:
> > > Simplifies multiseat configuration, see
> > > docs/multiseat.txt update for details.
> > >
> > > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> > > ---
> > > docs/multiseat.txt | 19 +++++++++++++++++++
> > > docs/specs/pci-ids.txt | 1 +
> > > hw/pci-bridge/pci_bridge_dev.c | 25 ++++++++++++++++++++++++-
> > > include/hw/pci/pci.h | 1 +
> > > 4 files changed, 45 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/docs/multiseat.txt b/docs/multiseat.txt
> > > index b963665..814496e 100644
> > > --- a/docs/multiseat.txt
> > > +++ b/docs/multiseat.txt
> > > @@ -106,6 +106,25 @@ the devices attached to the seat.
> > > Background info is here:
> > > http://www.freedesktop.org/wiki/Software/systemd/multiseat/
> > >
> > > +
> > > +guest side with pci-bridge-seat
> > > +-------------------------------
> > > +
> > > +Qemu version FIXME and newer has a new pci-bridge-seat device which
> > > +can be used instead of pci-bridge. Just swap the device name in the
> > > +qemu command line above. The only difference between the two devices
> > > +is the pci id. We can match the pci id instead of the device path
> > > +with a nice generic rule now, which simplifies the guest
> > > +configuration:
> > > +
> > > + [root@fedora ~]# cat /etc/udev/rules.d/70-qemu-pci-bridge-seat.rules
> > > + SUBSYSTEM=="pci", ATTR{vendor}=="0x1b36", ATTR{device}=="0x000a", \
> > > + TAG+="seat", ENV{ID_AUTOSEAT}="1"
> > > +
> > > +Patch with this rule will be submitted to upstream udev/systemd, so
> > > +long-term, when systemd with this lands in distros, things will work
> > > +just fine without any manual guest configuration.
> > > +
> > > Enjoy!
> > >
> >
> > I'm confused. What's wrong with using the regular bridge,
> > and ATTR{vendor}=="0x1b36", ATTR{device}=="0x0001"?
>
> It works just fine, thats why the new device is identical except for the
> id.
>
> The whole point is to simplify guest-side configuration, by passing one
> bit of extra information to the guest: Whenever the pci bridge with the
> devices below it should be considered a new seat (-device
> pci-bridge-seat) or not (-device pci-bridge).
>
> cheers,
> Gerd
>
Could you explain a bit more please? What does it mean that
a bridge is a new seat? How is this used?
next prev parent reply other threads:[~2015-03-17 19:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 10:36 [Qemu-devel] [PATCH] add pci-bridge-seat Gerd Hoffmann
2015-03-16 12:20 ` Michael S. Tsirkin
2015-03-17 7:16 ` Gerd Hoffmann
2015-03-17 19:20 ` Michael S. Tsirkin [this message]
2015-03-18 7:14 ` Gerd Hoffmann
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=20150317201941-mutt-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).