qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] spice: add display & head options
Date: Tue, 21 Feb 2017 11:04:46 +0100	[thread overview]
Message-ID: <1487671486.2694.65.camel@redhat.com> (raw)
In-Reply-To: <CAJ+F1C+0jQ=e3dC--qWGDzhjAHtxDeYd_FRo3QGfWKO-thQ3yA@mail.gmail.com>

  Hi,

> It's always 0, except with virtio. 
> 
> But I think virtio linux driver multi-monitor code would work with a
> single qemu head (like qxl, fwiw last time I checked, multi-monitor
> virtio+spice worked, with 3d too).

> It seems to me the qemu "head" is quite different (lower-level) from
> spice "head".

Well.  spice/qxl supports two different ways to do multihead ...

The first way is one display channel per head.  Which maps nicely to
qemu heads.  With qxl you'll use one qxl-vga device for the primary
display and one (or more) qxl devices for the secondary displays.  I
think multihead with windows guests still works that way, but xorg
support for that (xinerama mode) is pretty bad.  IIRC it needs manual
configuration, could also be recent xorg versions don't support it any
more.  Dunno where we stand with wayland.

The second way is a single display channel with a single, big surface
for all heads.  Then -- with spice-agent help -- guest and client
negotiate which region of the big display gets scanned out to which
head.

Multihead spice with virtio-gpu fundamentally works like the first way,
except that we have a single device with multiple heads (and display
channels) instead of multiple devices which have a single head each.

The use case I see for this is not so much multihead configuration.
With multiple display devices in your system, for example one intel-vgpu
and one emulated display device one could export only one of the two via
spice.

cheers,
  Gerd

  reply	other threads:[~2017-02-21 10:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21  7:57 [Qemu-devel] [PATCH] spice: add display & head options Gerd Hoffmann
2017-02-21  8:52 ` Marc-André Lureau
2017-02-21  9:11   ` Gerd Hoffmann
2017-02-21  9:23     ` Marc-André Lureau
2017-02-21 10:04       ` Gerd Hoffmann [this message]
2017-02-22  9:04         ` Marc-André Lureau
2017-02-22 10:40           ` 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=1487671486.2694.65.camel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=marcandre.lureau@gmail.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).