From: Asias He Subject: [PATCH] kvm tools: Fix compat message per device for virtio/blk Date: Wed, 21 Dec 2011 23:11:10 +0800 Message-ID: <1324480270-9530-1-git-send-email-asias.hejun@gmail.com> Cc: Sasha Levin , Cyrill Gorcunov , Ingo Molnar , kvm@vger.kernel.org, Asias He To: Pekka Enberg Return-path: Received: from mail-iy0-f174.google.com ([209.85.210.174]:34547 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751715Ab1LUPMw (ORCPT ); Wed, 21 Dec 2011 10:12:52 -0500 Received: by iaeh11 with SMTP id h11so12012358iae.19 for ; Wed, 21 Dec 2011 07:12:52 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: The commit 2b6c246215e8f936d2366ef8c4a6eec730b819b2 (kvm tools: Use compat message per device instead of per instance) prevents multiple messages for the same type of device. The variable compat_id is expected to be initialized to -1. Signed-off-by: Asias He --- tools/kvm/virtio/blk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kvm/virtio/blk.c b/tools/kvm/virtio/blk.c index d1a0197..1d921a8 100644 --- a/tools/kvm/virtio/blk.c +++ b/tools/kvm/virtio/blk.c @@ -54,7 +54,7 @@ struct blk_dev { }; static LIST_HEAD(bdevs); -static int compat_id; +static int compat_id = -1; void virtio_blk_complete(void *param, long len) { -- 1.7.7.3