Received: from eggs.gnu.org ([208.118.235.92]:43208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4tPX-0004mP-N8 for qemu-devel@nongnu.org; Tue, 06 Mar 2012 07:22:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4tPT-0004ak-0S for qemu-devel@nongnu.org; Tue, 06 Mar 2012 07:22:35 -0500 Received: from mail-tul01m020-f173.google.com ([209.85.214.173]:51194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4tPS-0004ZJ-NC for qemu-devel@nongnu.org; Tue, 06 Mar 2012 07:22:30 -0500 Received: by mail-tul01m020-f173.google.com with SMTP id up6so6817206obb.4 for ; Tue, 06 Mar 2012 04:22:30 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 6 Mar 2012 13:22:06 +0100 Message-Id: <1331036527-7651-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1331036527-7651-1-git-send-email-pbonzini@redhat.com> References: <1331036527-7651-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] virtio-balloon: note optional features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, uobergfe@redhat.com, owasserm@redhat.com, armbru@redhat.com, mst@redhat.com It is not a problem if the destination does not have VIRTIO_BALLOON_F_MUST_TELL_HOST. In that case, the guest will simply do useless virtqueue traffic, but the destination does not have a problem. (In fact, it _is_ a problem if the destination has VIRTIO_BALLOON_F_MUST_TELL_HOST but the source does not. The feature bit should have been backwards! Luckily, our implementation is free from this problem). Signed-off-by: Paolo Bonzini --- hw/virtio-balloon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c index 0ade8b0..d10df2e 100644 --- a/hw/virtio-balloon.c +++ b/hw/virtio-balloon.c @@ -216,7 +216,7 @@ static int virtio_balloon_load(QEMUFile *f, void *opaque, int version_id) if (version_id != 1) return -EINVAL; - ret = virtio_load(&s->vdev, f, 0); + ret = virtio_load(&s->vdev, f, VIRTIO_BALLOON_F_MUST_TELL_HOST); if (ret) { return ret; } -- 1.7.7.6