Received: from eggs.gnu.org ([2001:4830:134:3::10]:46903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNiTm-00041O-Ig for qemu-devel@nongnu.org; Tue, 17 Feb 2015 08:46:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNiTj-0006pZ-79 for qemu-devel@nongnu.org; Tue, 17 Feb 2015 08:46:22 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:41449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNiTi-0006pH-U7 for qemu-devel@nongnu.org; Tue, 17 Feb 2015 08:46:19 -0500 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Feb 2015 13:46:17 -0000 Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1HDghUp53149754 for ; Tue, 17 Feb 2015 13:42:43 GMT Received: from d06av10.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1HDggA5012383 for ; Tue, 17 Feb 2015 06:42:43 -0700 Date: Tue, 17 Feb 2015 14:42:41 +0100 From: Thomas Huth Message-ID: <20150217144241.59661d57@oc7435384737.ibm.com> In-Reply-To: <1424122283-12521-7-git-send-email-mst@redhat.com> References: <1424122283-12521-1-git-send-email-mst@redhat.com> <1424122283-12521-7-git-send-email-mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 06/17] virtio-9p: use standard headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Peter Maydell , Anthony Liguori , qemu-devel@nongnu.org, Alexander Graf , "Aneesh Kumar K.V" , Stefan Hajnoczi , Cornelia Huck , "Chen, Tiejun" On Mon, 16 Feb 2015 22:35:57 +0100 "Michael S. Tsirkin" wrote: > Drop code duplicated from standard headers. > > Signed-off-by: Michael S. Tsirkin > --- > hw/9pfs/virtio-9p.h | 17 +---------------- > 1 file changed, 1 insertion(+), 16 deletions(-) > > diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h > index 0776424..58dafa9 100644 > --- a/hw/9pfs/virtio-9p.h > +++ b/hw/9pfs/virtio-9p.h > @@ -7,6 +7,7 @@ > #include > #include > #include > +#include "standard-headers/linux/virtio_9p.h" > #include "hw/virtio/virtio.h" > #include "hw/virtio/virtio-9p.h" > #include "fsdev/file-op-9p.h" > @@ -14,10 +15,6 @@ > #include "qemu/thread.h" > #include "block/coroutine.h" > > -/* The feature bitmap for virtio 9P */ > -/* The mount point is specified in a config variable */ > -#define VIRTIO_9P_MOUNT_TAG 0 > - > enum { > P9_TLERROR = 6, > P9_RLERROR, > @@ -145,10 +142,6 @@ struct V9fsPDU > * 1) change user needs to set groups and stuff > */ > > -/* from Linux's linux/virtio_9p.h */ > - > -/* The ID for virtio console */ > -#define VIRTIO_ID_9P 9 > #define MAX_REQ 128 > #define MAX_TAG_LEN 32 > > @@ -278,14 +271,6 @@ typedef struct V9fsWriteState { > int cnt; > } V9fsWriteState; > > -struct virtio_9p_config > -{ > - /* number of characters in tag */ > - uint16_t tag_len; > - /* Variable size tag name */ > - uint8_t tag[0]; > -} QEMU_PACKED; > - > typedef struct V9fsMkState { > V9fsPDU *pdu; > size_t offset; Reviewed-by: Thomas Huth