Received: from eggs.gnu.org ([140.186.70.92]:51086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf61B-0004R1-0t for qemu-devel@nongnu.org; Fri, 08 Jul 2011 04:02:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qf619-0000fY-I0 for qemu-devel@nongnu.org; Fri, 08 Jul 2011 04:02:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf618-0000fK-UF for qemu-devel@nongnu.org; Fri, 08 Jul 2011 04:02:31 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6882UjP008084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 8 Jul 2011 04:02:30 -0400 Date: Fri, 8 Jul 2011 10:02:15 +0200 From: Alon Levy Message-ID: <20110708080215.GZ20603@bow.redhat.com> References: <1310057455-18570-1-git-send-email-alevy@redhat.com> <1310057455-18570-11-git-send-email-alevy@redhat.com> <4E16AF6E.1040605@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E16AF6E.1040605@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] qxl: bump pci rev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: yhalperi@redhat.com, qemu-devel@nongnu.org On Fri, Jul 08, 2011 at 09:19:10AM +0200, Gerd Hoffmann wrote: > Hi, > > >- DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision, 2), > >+ DEFINE_PROP_UINT32("revision", PCIQXLDevice, revision, 3), > > Can't be done unconditionally. With an older libspice we can't > support the rev3 features. ok. so this needs a runtime check for major_version.minor_version >= 3.1, no? a compile time won't work because someone can change the shared object, no? (maybe I should just check this scenario). > > cheers, > Gerd