From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1banMA-0004qE-02 for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:13:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1banM3-0002TR-Ua for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:13:21 -0400 Received: from mail-ve1eur01on0127.outbound.protection.outlook.com ([104.47.1.127]:10496 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1banM3-0002T4-Me for qemu-devel@nongnu.org; Fri, 19 Aug 2016 13:13:15 -0400 From: Roman Kagan Date: Fri, 19 Aug 2016 16:39:19 +0300 Message-ID: <1471613966-7267-1-git-send-email-rkagan@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 0/6] virtio-balloon: assorted fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Denis V. Lunev" , Roman Kagan , "Michael S. Tsirkin" , Ladi Prosek , Stefan Hajnoczi This patchset addresses a few problems discovered when analyzing aborts of (an older version of) QEMU with backported commit afd9096eb1882f23929f5b5c177898ed231bac66 "virtio: error out if guest exceeds virtqueue size". Those problems are present in master, too, except that they don't trigger an abort and are thus not as easy to notice. Roman Kagan (6): virtio: assert on ->inuse underflow virtio-balloon: make stats virtqueue length 1 virtio-balloon: don't restart stats timer in callback virtio-balloon: keep collecting stats on save/restore virtio-balloon: drop ->stats_vq_offset virtio-balloon: drop reset handler Signed-off-by: Roman Kagan Cc: "Michael S. Tsirkin" Cc: Ladi Prosek Cc: Stefan Hajnoczi --- v1 -> v2: - added assert in patch 2 - new patches 5, 6 hw/virtio/virtio-balloon.c | 62 ++++++++++++++++++-------------------- hw/virtio/virtio.c | 3 +- include/hw/virtio/virtio-balloon.h | 2 +- 3 files changed, 32 insertions(+), 35 deletions(-) -- 2.7.4