Received: from [140.186.70.92] (port=49444 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtLWc-00045X-8V for qemu-devel@nongnu.org; Wed, 08 Sep 2010 10:21:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtLWa-00078y-SF for qemu-devel@nongnu.org; Wed, 08 Sep 2010 10:21:21 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:39220) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtLWa-00078n-NB for qemu-devel@nongnu.org; Wed, 08 Sep 2010 10:21:20 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e36.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o88EHPXB004781 for ; Wed, 8 Sep 2010 08:17:25 -0600 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id o88ELJDq192458 for ; Wed, 8 Sep 2010 08:21:19 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o88ELIob001672 for ; Wed, 8 Sep 2010 08:21:18 -0600 From: Adam Litke Date: Wed, 8 Sep 2010 09:21:16 -0500 Message-Id: <1283955676-25119-1-git-send-email-agl@us.ibm.com> Subject: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah , Anthony Liguori Cc: Adam Litke , Paolo Bonzini , Luiz Capitulino , qemu list , Markus Armbruster The addition of memory stats reporting to the virtio balloon causes the 'info balloon' command to become asynchronous. This is a regression because in some cases it can hang the user monitor. Disable this feature until a better interface for asynchronous commands can be worked out. Signed-off-by: Adam Litke --- hw/virtio-balloon.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c index 9fe3886..dcdada6 100644 --- a/hw/virtio-balloon.c +++ b/hw/virtio-balloon.c @@ -190,7 +190,17 @@ static void virtio_balloon_set_config(VirtIODevice *vdev, static uint32_t virtio_balloon_get_features(VirtIODevice *vdev, uint32_t f) { - f |= (1 << VIRTIO_BALLOON_F_STATS_VQ); + /* + * The addition of memory stats reporting to the virtio balloon causes + * the 'info balloon' command to become asynchronous. This is a regression + * because in some cases it can hang the user monitor. + * + * Disable this feature until a better interface for asynchronous commands + * can be worked out. + * + * -aglitke + */ + /* f |= (1 << VIRTIO_BALLOON_F_STATS_VQ); */ return f; } -- 1.6.1.3