From patchwork Thu Nov 29 04:52:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 1005056 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BkOfqIPN"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4354tL0HPbz9s55 for ; Thu, 29 Nov 2018 15:54:02 +1100 (AEDT) Received: from localhost ([::1]:52264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSEKt-0005Gv-Jx for incoming@patchwork.ozlabs.org; Wed, 28 Nov 2018 23:53:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSEK7-0005FX-LK for qemu-devel@nongnu.org; Wed, 28 Nov 2018 23:53:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSEK4-0007L3-CN for qemu-devel@nongnu.org; Wed, 28 Nov 2018 23:53:11 -0500 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:36290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSEK4-0007KI-1n for qemu-devel@nongnu.org; Wed, 28 Nov 2018 23:53:08 -0500 Received: by mail-pf1-x443.google.com with SMTP id b85so413701pfc.3 for ; Wed, 28 Nov 2018 20:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=K8DJARr6sX5qzZCtUQnz6eAgoC2fO7RCXvryMV/QvLk=; b=BkOfqIPNPqov4cMST3Uu17d0Bf19AkRkb3hrLw1vCYONFUU7FV8UXnTB6Q/v/vBkFA xzQr0M09Yfqgw+cncGU/rno+s9nOzJqLZCcXsG7JN/BDhhpR4fIidvX/UPxU4Xv3y4Ew iHiKgqOcXl9do4R4KmpUSBXTy6EjGKMiafQTNPK3rhJ9p0ITRU1Z+ThVwluzw6ZDjScI 4EqmQmw1+6OVKsO2mI97iI/hWiQhoAIIFnilYonHuKxunrLKtTpnfCrZSmY/WQvawx9s 8Ur2ZavllCKvaXT6uNF57IIa+UP8kB1HAO9vSVo3w30bILfBKxQRu54cBnPnmWtC3NFG t15Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K8DJARr6sX5qzZCtUQnz6eAgoC2fO7RCXvryMV/QvLk=; b=i/i8UZN5GIXjyC/LVnYxVE1pmBeg0B8hKOMlbVeT2IlYa7eGsImnVuafHtbr2PLUCm N5bhiE2ZJIWnxsPZ/E1eTM9QciwLkScIjVI/T7kK8FcIUAKomeCX46FofaBGd2Bge/lD ikjeVMsBqM1N4ITKr+aidnTbIaZqKJ1B1AUY+H7zHRpp5aWf4j0SamX6CuwWkej1QxqN IJhtGDl1whUlklQ8kq1dOO+NZjE8mIUl8KW3l//rXusU58fODfj6Vo+MtJ3Q2aOhVuei qYs3uylRYfx7aDQ7CdbDya0YCqguBZ5/88LB6m5xPhA6dswXQsevNP44hcdt9BY5CZ7e LRBA== X-Gm-Message-State: AA+aEWbwPwnRiMsUMSoVCdFFQaJml4FwvVu/w9ZDOriL0VETk0fEi2no ruzdg+4nZGOZ/IZmpEDQFFo= X-Google-Smtp-Source: AFSGD/U3TOJqwWWoFVy7CxDw8k/yanQNxnoYrFgiqiG0PtGRFp7SN8opk499giM6Cv212mkwcHho3Q== X-Received: by 2002:a62:8a51:: with SMTP id y78mr35146pfd.35.1543467187032; Wed, 28 Nov 2018 20:53:07 -0800 (PST) Received: from localhost.localdomain.localdomain ([103.129.255.252]) by smtp.gmail.com with ESMTPSA id k26sm576747pgf.65.2018.11.28.20.53.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 20:53:06 -0800 (PST) From: Li Qiang To: mst@redhat.com, marcel.apfelbaum@gmail.com, pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com Date: Wed, 28 Nov 2018 20:52:10 -0800 Message-Id: <1543467132-2873-1-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::443 Subject: [Qemu-devel] [PATCH v3 0/2] hw: vmmouse: use link property instead of DEFINE_PROP_PTR X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: darren.kenny@oracle.com, Li Qiang , armbru@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" According https://wiki.qemu.org/Contribute/BiteSizedTasks the 'DEFINE_PROP_PTR' should be replaced by QOM link property. The first patch replace constant strings with TYPE_XXXX and move some definition to pc.h header file so that the second patch can work. Change since v2: detail commit message Change since v1: fix some issues per Markus' review Li Qiang (2): hw: pc: use TYPE_XXX instead of constant strings hw: vmmouse: Use link instead of pointer property hw/i386/pc.c | 9 +++++---- hw/i386/vmmouse.c | 18 +++++++++++------- include/hw/i386/pc.h | 3 +++ 3 files changed, 19 insertions(+), 11 deletions(-) Reviewed-by: Michael S. Tsirkin