From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwGvY-0003pH-M3 for qemu-devel@nongnu.org; Fri, 18 Jan 2013 13:44:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwGvX-000754-OK for qemu-devel@nongnu.org; Fri, 18 Jan 2013 13:44:32 -0500 Received: from cantor2.suse.de ([195.135.220.15]:50896 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwGvX-00074y-IG for qemu-devel@nongnu.org; Fri, 18 Jan 2013 13:44:31 -0500 Message-ID: <50F9980A.3090208@suse.de> Date: Fri, 18 Jan 2013 19:44:26 +0100 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1358532742-23156-1-git-send-email-agraf@suse.de> <1358532742-23156-9-git-send-email-agraf@suse.de> In-Reply-To: <1358532742-23156-9-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 8/8] s390: Add a hypercall registration interface. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Blue Swirl , Cornelia Huck , qemu-devel@nongnu.org, =?ISO-8859-15?Q?Aur=E9lien_Jarno?= Am 18.01.2013 19:12, schrieb Alexander Graf: > diff --git a/hw/s390-virtio.h b/hw/s390-virtio.h > new file mode 100644 > index 0000000..25bb610 > --- /dev/null > +++ b/hw/s390-virtio.h > @@ -0,0 +1,22 @@ > +/* > + * Virtio interfaces for s390 > + * > + * Copyright 2012 IBM Corp. > + * Author(s): Cornelia Huck > + * > + * This work is licensed under the terms of the GNU GPL, version 2 or = (at > + * your option) any later version. See the COPYING file in the top-lev= el > + * directory. > + */ > + > +#ifndef HW_S390_VIRTIO_H > +#define HW_S390_VIRTIO_H 1 > + > +#define KVM_S390_VIRTIO_NOTIFY 0 > +#define KVM_S390_VIRTIO_RESET 1 > +#define KVM_S390_VIRTIO_SET_STATUS 2 > + > +typedef int (*s390_virtio_fn)(const uint64_t *args); CamelCase? Andreas > +void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn); > + > +#endif [snip] --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg