Received: from eggs.gnu.org ([208.118.235.92]:47281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJpGu-0003yz-MK for qemu-devel@nongnu.org; Thu, 04 Oct 2012 13:31:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJpGq-0008IS-Ki for qemu-devel@nongnu.org; Thu, 04 Oct 2012 13:31:40 -0400 Received: from smtp.nfit.au.dk ([130.225.17.180]:50546 helo=nysmtp.nfit.au.dk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJpGq-0008Hv-D1 for qemu-devel@nongnu.org; Thu, 04 Oct 2012 13:31:36 -0400 From: sandmann@cs.au.dk (=?utf-8?Q?S=C3=B8ren?= Sandmann) References: <1349287077-10062-1-git-send-email-sandmann@cs.au.dk> <506D5A74.5040904@redhat.com> Date: Thu, 04 Oct 2012 19:31:34 +0200 In-Reply-To: <506D5A74.5040904@redhat.com> (Paolo Bonzini's message of "Thu, 4 Oct 2012 11:44:20 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] qxl: Default to PCI revision 4 when spice-server is new enough List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: =?utf-8?Q?S=C3=B8ren?= Sandmann Pedersen , qemu-devel@nongnu.org, kraxel@redhat.com Paolo Bonzini writes: > Il 03/10/2012 19:57, S=C3=B8ren Sandmann ha scritto: >> From: S=C3=B8ren Sandmann Pedersen >>=20 >> When spice-server is newer than 0.12.0, the default revision should be >> QXL_REVISION_STABLE_V12. >>=20 >> Signed-off-by: Soren Sandmann >> --- >> hw/qxl.h | 3 +-- >> 1 files changed, 1 insertions(+), 2 deletions(-) >>=20 >> diff --git a/hw/qxl.h b/hw/qxl.h >> index 5553824..4460bb2 100644 >> --- a/hw/qxl.h >> +++ b/hw/qxl.h >> @@ -129,8 +129,7 @@ typedef struct PCIQXLDevice { >> } = \ >> } while (0) >>=20=20 >> -#if 0 >> -/* spice-server 0.12 is still in development */ >> +#if SPICE_SERVER_VERSION >=3D 0x000c00 /* 0x000c00 =3D=3D 0.12.0 */ >> #define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V12 >> #else >> #define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V10 >>=20 > > No, that's not possible. The revision must be the same for all machines > started with the same "-M" argument. So your only choice is to make > 0.12 a requirement for QEMU 1.3. Then you can use compatibility > properties (see the long list of strings in hw/pc_piix.c) to ensure that > pc-1.2 and earlier machines use the previous revision. Spice server 0.12 is already, so I'll send a patch to require that unconditionally. I'm assuming that later strings override earlier ones so that the revision=3D3 I added won't take effect for previous machines. S=C3=B8ren