From patchwork Mon Jun 24 06:44:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 253653 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 420DF2C0091 for ; Mon, 24 Jun 2013 16:50:05 +1000 (EST) Received: from localhost ([::1]:49258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur0bD-0005At-6i for incoming@patchwork.ozlabs.org; Mon, 24 Jun 2013 02:50:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur0W9-0004xl-Fq for qemu-devel@nongnu.org; Mon, 24 Jun 2013 02:44:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur0W7-0000Ia-90 for qemu-devel@nongnu.org; Mon, 24 Jun 2013 02:44:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur0W7-0000Hw-1s for qemu-devel@nongnu.org; Mon, 24 Jun 2013 02:44:47 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5O6ikTQ012484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 24 Jun 2013 02:44:46 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-31.ams2.redhat.com [10.36.116.31]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r5O6ijhK023643; Mon, 24 Jun 2013 02:44:46 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 4E64B4186D; Mon, 24 Jun 2013 08:44:44 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Mon, 24 Jun 2013 08:44:43 +0200 Message-Id: <1372056283-4845-10-git-send-email-kraxel@redhat.com> In-Reply-To: <1372056283-4845-1-git-send-email-kraxel@redhat.com> References: <1372056283-4845-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Anthony Liguori , Gerd Hoffmann Subject: [Qemu-devel] [PATCH 9/9] usb: fix serial number for hid devices 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 commit 7b074a22dab4bdda9864b933f1bc811a3db42845 changed the serial number of hid devices. Add compat properties to keep the old serial number for qemu 0.12 and older. Signed-off-by: Gerd Hoffmann --- hw/i386/pc_piix.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 97362f2..7972443 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -622,6 +622,18 @@ static QEMUMachine pc_machine_v0_13 = { .driver = "virtio-serial-pci",\ .property = "vectors",\ .value = stringify(0),\ + },{\ + .driver = "usb-mouse",\ + .property = "serial",\ + .value = "1",\ + },{\ + .driver = "usb-tablet",\ + .property = "serial",\ + .value = "1",\ + },{\ + .driver = "usb-kbd",\ + .property = "serial",\ + .value = "1",\ } static QEMUMachine pc_machine_v0_12 = {