Received: from eggs.gnu.org ([2001:4830:134:3::10]:34149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLxeD-0005TK-1b for qemu-devel@nongnu.org; Fri, 07 Mar 2014 11:29:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLxe4-0004K1-4U for qemu-devel@nongnu.org; Fri, 07 Mar 2014 11:29:20 -0500 Received: from e9.ny.us.ibm.com ([32.97.182.139]:34352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLxe3-0004Jn-VX for qemu-devel@nongnu.org; Fri, 07 Mar 2014 11:29:12 -0500 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Mar 2014 11:29:10 -0500 Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id B4D286E8048 for ; Fri, 7 Mar 2014 11:29:02 -0500 (EST) Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by b01cxnp23034.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s27GT7eD5767514 for ; Fri, 7 Mar 2014 16:29:07 GMT Received: from d01av04.pok.ibm.com (localhost [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s27GT7ZV002315 for ; Fri, 7 Mar 2014 11:29:07 -0500 From: "Jason J. Herne" Date: Fri, 7 Mar 2014 11:29:05 -0500 Message-Id: <1394209746-30824-1-git-send-email-jjherne@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 0/1] s390-cpu: qom interface for S390 cpu states array List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: afaerber@suse.de, borntraeger@de.ibm.com, agraf@suse.de, qemu-devel@nongnu.org Cc: "Jason J. Herne" From: "Jason J. Herne" This patch is a result of changes requested by Andreas Färber during the S390 cpu hotplug code review. Andreas, I am unsure if you were asking for the complete removal of the ipi_states array, or the removal of the set/get functions used to encapsulate access to the array, or if you are ok with the current scheme and you just wanted the data accesible within the qom tree as well. The approach I took with this patch was to leave the ipi_states array in place, although it has been renamed for clarity. Because object_property_add_link() expects Object** when pasing the link target, we must have a lasting reference to our S390CPU objects. I'm not sure where we would store these pointers, if not in the currently existing aray. I decided to encapsulate the details in set/get functions instead of (eventually) repeating all of the link related details when we allow the creation of cpus via hotplug. If you are unhappy with how I did this, please assist me in understanding what you would like changed. I am happy to change it as needed. Jason J. Herne (1): s390-cpu: qom interface for S390 cpu states array hw/s390x/s390-virtio.c | 32 +++++++++++++++++++++++--------- target-s390x/cpu.h | 1 + 2 files changed, 24 insertions(+), 9 deletions(-) -- 1.8.3.2