Received: from eggs.gnu.org ([208.118.235.92]:55853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvRcg-0002qI-7d for qemu-devel@nongnu.org; Wed, 16 Jan 2013 06:57:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvRcb-0002co-Gx for qemu-devel@nongnu.org; Wed, 16 Jan 2013 06:57:38 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:40722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvRcb-0002c3-8X for qemu-devel@nongnu.org; Wed, 16 Jan 2013 06:57:33 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 16 Jan 2013 11:55:50 -0000 Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r0GBvKUn9371842 for ; Wed, 16 Jan 2013 11:57:20 GMT Received: from d06av09.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r0GBvQua025139 for ; Wed, 16 Jan 2013 04:57:28 -0700 From: Cornelia Huck Date: Wed, 16 Jan 2013 12:57:23 +0100 Message-Id: <1358337445-53555-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 0/2] s390-virtio: Some cleanups. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Christian Borntraeger , Jens Freimann , qemu-devel Hi, here are two cleanup/refactoring patches for the s390-virtio code. They will make it easier for virtio-ccw, so I'd like to get them in before the bulk of the virtio-ccw related patches. The first one creates an interface for registering callbacks for diagnose 500, inspired by the spapr hcall interface. The second one factors initialization code that also can be used by other machines out into exported functions. Cornelia Huck (2): s390: Add a hypercall registration interface. s390-virtio: Factor out some initialization code. hw/s390-virtio.c | 222 +++++++++++++++++++++++++------------------ hw/s390-virtio.h | 29 ++++++ hw/s390x/Makefile.objs | 1 + hw/s390x/s390-virtio-hcall.c | 33 +++++++ target-s390x/cpu.h | 2 +- target-s390x/kvm.c | 2 +- target-s390x/misc_helper.c | 2 +- 7 files changed, 194 insertions(+), 97 deletions(-) create mode 100644 hw/s390-virtio.h create mode 100644 hw/s390x/s390-virtio-hcall.c -- 1.7.12.4