Received: from eggs.gnu.org ([2001:4830:134:3::10]:33675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2HVK-0005ZR-RK for qemu-devel@nongnu.org; Tue, 09 Jun 2015 07:15:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2HVF-0004BF-Ba for qemu-devel@nongnu.org; Tue, 09 Jun 2015 07:15:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2HVF-0004AS-4D for qemu-devel@nongnu.org; Tue, 09 Jun 2015 07:15:33 -0400 Date: Tue, 9 Jun 2015 13:15:29 +0200 From: Christophe Fergeau Message-ID: <20150609111529.GB15620@edamame.cdg.redhat.com> References: <1433839784-5634-1-git-send-email-fziglio@redhat.com> <20150609095047.GE2089@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jho1yZJdad60DJr+" Content-Disposition: inline In-Reply-To: <20150609095047.GE2089@redhat.com> Subject: Re: [Qemu-devel] [Spice-devel] [PATCH] RFC: qxl: allow to specify head limit to qxl driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: spice-devel@lists.freedesktop.org, qemu-devel@nongnu.org, Frediano Ziglio --jho1yZJdad60DJr+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 09, 2015 at 10:50:48AM +0100, Daniel P. Berrange wrote: > On Tue, Jun 09, 2015 at 09:49:44AM +0100, Frediano Ziglio wrote: > > This patch allow to limit number of heads using qxl driver. By default > > qxl driver is not limited on any kind on head use so can decide to use > > as much heads. > >=20 > > libvirt has this as a video card parameter (actually set to 1 but not > > used). This parameter will allow to limit setting a use can do (which > > could be confusing). > >=20 > > This patch rely on some change in spice-protocol which are not still > > accepted. See > > http://lists.freedesktop.org/archives/spice-devel/2015-June/020160.html. > >=20 > > Main question and stop over are parameter name. Consider that this > > parameter is actually more a hint to drivers. I'm looking anyway to > > a way to enforce this in spice-server. >=20 > What is the actual benefit of being able to limit the number of > heads in QXL / SPICE ? >=20 > I know libvirt has the 'heads' attribute for specifying the number > of video outputs. This is used in hypervisors which only support a > fixed number of outputs and need up-front configuration. Since > QXL/SPICE can dynamically enable/disable heads, there is no need to > support this libvirt configuration attribute - it is better from a > usability POV to have the head count totally dynamic, than to add > a fixed limit. >=20 > IOW, unless there's some need to use this limit in order to go > above the 16 head maximum the code currently has, I think adding > this manual limit to QXL/SPICE is a step backwards really. It > feels like a feature in search of a purpose IMHO. The head count is indeed dynamic with SPICE, but the available video RAM is fixed after QEMU startup, and if you start trying to fit 4 full HD heads in 16MB of VRAM, you'll get weird failures. If you know you are only going to use one screen, it's nice to be able to allocate a small amount of VRAM and to enforce the maximum number of heads for the amount of VRAM you have assigned to the VM. remote-viewer also gets a 'display' menu with the number of available displays listed in it. I can imagine some people/admins wanted to mandate that only N displays are going to be shown here to avoid user confusion. So while we should keep defaulting to the current dynamic behaviour, a way to optionally limit the number of available heads is useful in some situations Christophe --jho1yZJdad60DJr+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJVdsrRAAoJEKnYwhQprGyCafoQAIdF0UiuwHa2uz5amA4hJbKy cCASfKxE6tWDKrr/iK/pPycFK8tmu5QW2qvIrHQ40nghcTAOeCRTBh/nFkCjrdeS 8964x2PBOb5h1ICt3XVPpo+AS+W8K6P4OIdsnPJS1to6la+WusYSA94Xns0WGMRm hPNGKEW/c6ELTdR/leVbb9AGCyzwPZSb9+cVSKOCpEt2MXHukhCuwtZ3EJDSQc/0 kLh1ORjwTJc+AJf6MwzTaPXNzMrtfXmouqnxdF89bjD+kZGzVo2XBcjpgi+UWa8S ZnnRXGKF2QrekvK6qyQe794hPtpBcgxxTURmUjdXNji19ZarHLH/n6f/sse1yGJ6 pb0pg3aVEmchVBRWfMZjF3yMBcy073TeyDgiV/8eXnCU1V/QMi10V8rnfL1YRU7p 58vefklGnJivnN5oB+GXlzbgeD7VyuOWt7lG4QoWL4vL52hPuXIrXHZgetIMpEpd 8rqYyRhX2DnfngAQ9BeM9NwYmQpEj88x1MklBcZjn+eqvZaob6HlyvqwitkzFqXx /W4dhflYfrPqNQO6sS2skD8qQAMCgZRlunCX2D0EMHFsq+JORYl4bZhg2LQ+qKzu PDIF6D2s/ZYz9MYtL+nRBD0hqVA9LNmwzJh1pJlE+UWkEBZeOItN2Ey6dA3/mBbT 7khIRPMp3uijLDEAUExi =Kzbz -----END PGP SIGNATURE----- --jho1yZJdad60DJr+--