From patchwork Wed Nov 4 17:41:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saul Tamari X-Patchwork-Id: 57736 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA4HlOf3015848 for ; Wed, 4 Nov 2009 17:47:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932297AbZKDRlI (ORCPT ); Wed, 4 Nov 2009 12:41:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932099AbZKDRlG (ORCPT ); Wed, 4 Nov 2009 12:41:06 -0500 Received: from mail-ew0-f207.google.com ([209.85.219.207]:33344 "EHLO mail-ew0-f207.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757563AbZKDRlD (ORCPT ); Wed, 4 Nov 2009 12:41:03 -0500 Received: by ewy3 with SMTP id 3so3347062ewy.37 for ; Wed, 04 Nov 2009 09:41:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=YPXoFrzkag8bD/tdNpTOHdCHDP6ul/0nTD65o6bAwIM=; b=vXgtNyfDTAMUuiCIOGxzATXyDYpvSwfgIgBssrxS+2vBR3Au83mNxmyLd6E+IQzHa+ MVIlWcQx5WlH4/Rt4GlRGXywb8tDLfbhklRt9yc8nNEFQHmzsrVb8vquua0IsZ/VpqsL D91RHJjFPWvo1mcqR+XGnqbTzkXoJdB1x1ipY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nbWxVE8oDaoYWhztVajBd3v5pO2jI7bn3Vei8bBMJMLU9sXLbTAONQ1kShRUWGRaL0 GoxK2f+/04S6EHuHEjzR6ZqoHcZAmY1lYrnC6uSFZGSUhQNux2Wp99Ipdjj2ZBGCDL01 GcfCZ93zFHFFAL+uCE5Je161axK2t3xhJb7gQ= MIME-Version: 1.0 Received: by 10.213.96.205 with SMTP id i13mr2585313ebn.95.1257356467698; Wed, 04 Nov 2009 09:41:07 -0800 (PST) Date: Wed, 4 Nov 2009 19:41:07 +0200 Message-ID: <41be791c0911040941y3548de23v20959cf1c1300875@mail.gmail.com> Subject: [PATCH] qemu-kvm: clear only essential parts of VirtIOBlockReq on object allocation From: Saul Tamari To: kvm@vger.kernel.org Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 2630b99..fd44371 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -79,12 +79,12 @@ static inline void virtio_identify_template(struct virtio_blk_config *bc) typedef struct VirtIOBlockReq { VirtIOBlock *dev; - VirtQueueElement elem; struct virtio_blk_inhdr *in; struct virtio_blk_outhdr *out; struct virtio_scsi_inhdr *scsi; QEMUIOVector qiov; struct VirtIOBlockReq *next; + VirtQueueElement elem; } VirtIOBlockReq;