From patchwork Thu Mar 18 04:30:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: OHMURA Kei X-Patchwork-Id: 86583 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2I4UUB5023656 for ; Thu, 18 Mar 2010 04:30:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751243Ab0CREa2 (ORCPT ); Thu, 18 Mar 2010 00:30:28 -0400 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]:45468 "EHLO tama50.ecl.ntt.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750789Ab0CREa1 (ORCPT ); Thu, 18 Mar 2010 00:30:27 -0400 Received: from mfs5.rdh.ecl.ntt.co.jp (mfs5.rdh.ecl.ntt.co.jp [129.60.39.144]) by tama50.ecl.ntt.co.jp (8.14.4/8.14.4) with ESMTP id o2I4U1ZR005398; Thu, 18 Mar 2010 13:30:01 +0900 (JST) Received: from mfs5.rdh.ecl.ntt.co.jp (localhost [127.0.0.1]) by mfs5.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id 75CCF6CE9; Thu, 18 Mar 2010 13:30:01 +0900 (JST) Received: from dmailsv1.y.ecl.ntt.co.jp (dmailsv1.y.ecl.ntt.co.jp [129.60.53.14]) by mfs5.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id 6E8D26CE7; Thu, 18 Mar 2010 13:30:01 +0900 (JST) Received: from mailsv02.y.ecl.ntt.co.jp by dmailsv1.y.ecl.ntt.co.jp (8.14.3/dmailsv1-2.1) with ESMTP id o2I4TxOj021424; Thu, 18 Mar 2010 13:29:59 +0900 (JST) Received: from localhost by mailsv02.y.ecl.ntt.co.jp (8.14.3/Lab-1.7) with ESMTP id o2I4TxK7012538; Thu, 18 Mar 2010 13:29:59 +0900 (JST) Message-ID: <4BA1AC4A.2070402@lab.ntt.co.jp> Date: Thu, 18 Mar 2010 13:30:02 +0900 From: OHMURA Kei User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: "kvm@vger.kernel.org" , "qemu-devel@nongnu.org" CC: Avi Kivity , Anthony Liguori , Yoshiaki Tamura , ohmura.kei@lab.ntt.co.jp Subject: virtio_blk_load() question Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 18 Mar 2010 04:30:31 +0000 (UTC) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index b80402d..267b16f 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -457,7 +457,7 @@ static int virtio_blk_load(QEMUFile *f, void *opaque, int version_id) VirtIOBlockReq *req = virtio_blk_alloc_request(s); qemu_get_buffer(f, (unsigned char*)&req->elem, sizeof(req->elem)); req->next = s->rq; - s->rq = req->next; + s->rq = req; } return 0;