From patchwork Wed Oct 3 17:57:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?S=C3=B8ren_Sandmann?= X-Patchwork-Id: 188873 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8BEBA2C00B6 for ; Thu, 4 Oct 2012 03:58:17 +1000 (EST) Received: from localhost ([::1]:50995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJTAW-0000eM-NP for incoming@patchwork.ozlabs.org; Wed, 03 Oct 2012 13:55:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJTAL-0000eC-UO for qemu-devel@nongnu.org; Wed, 03 Oct 2012 13:55:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJTAK-00011B-35 for qemu-devel@nongnu.org; Wed, 03 Oct 2012 13:55:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJTAJ-0000yV-R6 for qemu-devel@nongnu.org; Wed, 03 Oct 2012 13:55:24 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q93HtKHV006242 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 3 Oct 2012 13:55:21 -0400 Received: from dhcp-100-3-184.bos.redhat.com (dhcp-189-4.bos.redhat.com [10.16.189.4]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q93HtIMs006670; Wed, 3 Oct 2012 13:55:19 -0400 From: =?UTF-8?q?S=C3=B8ren=20Sandmann?= To: qemu-devel@nongnu.org Date: Wed, 3 Oct 2012 13:57:57 -0400 Message-Id: <1349287077-10062-1-git-send-email-sandmann@cs.au.dk> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id q93HtKHV006242 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kraxel@redhat.com, =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Subject: [Qemu-devel] [PATCH] qxl: Default to PCI revision 4 when spice-server is new enough X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Søren Sandmann Pedersen When spice-server is newer than 0.12.0, the default revision should be QXL_REVISION_STABLE_V12. Signed-off-by: Soren Sandmann --- hw/qxl.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 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) -#if 0 -/* spice-server 0.12 is still in development */ +#if SPICE_SERVER_VERSION >= 0x000c00 /* 0x000c00 == 0.12.0 */ #define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V12 #else #define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V10