qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface
@ 2010-09-08 14:21 Adam Litke
  2010-09-14 14:09 ` Eduardo Habkost
  0 siblings, 1 reply; 10+ messages in thread
From: Adam Litke @ 2010-09-08 14:21 UTC (permalink / raw)
  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 <agl@us.ibm.com>
---
 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

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [Qemu-devel] [PATCH v3 0/3] virtio-balloon: Don't wait indefinitely for guest response
@ 2010-08-27  5:27 Amit Shah
  2010-08-27  5:27 ` [Qemu-devel] [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message Amit Shah
  0 siblings, 1 reply; 10+ messages in thread
From: Amit Shah @ 2010-08-27  5:27 UTC (permalink / raw)
  To: qemu list; +Cc: Luiz Capitulino, agl, Amit Shah, Paolo Bonzini

Since I didn't get negative reactions to the patch I posted yesterday,
here's the complete series. It adds a qerror message that mentions the
machine is stopped or the guest is slow to respond, so the stats
should be assumed to be old.

The error report is sent out before the stats, I don't think we do
that for any other command. libvirt should be prepared to handle
this. If not, please suggest a better alternative.

Differences from v2:
- Add a timeout for uncooperative/hung guests
- Add an qerror message for letting users/management know of guest
  stopped status.

Amit Shah (3):
  balloon: Don't try fetching info if guest is unresponsive
  qerror: Add a new MACHINE_STOPPED error message
  balloon: Don't try fetching info if machine is stopped

 balloon.c           |   11 +++++++----
 balloon.h           |    6 ++++--
 hw/virtio-balloon.c |   21 +++++++++++++++++++--
 qerror.c            |    4 ++++
 qerror.h            |    3 +++
 5 files changed, 37 insertions(+), 8 deletions(-)

-- 
1.7.2.2

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-09-14 16:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-08 14:21 [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface Adam Litke
2010-09-14 14:09 ` Eduardo Habkost
2010-09-14 14:24   ` Adam Litke
2010-09-14 14:41     ` Eduardo Habkost
2010-09-14 15:42       ` Eduardo Habkost
2010-09-14 15:46         ` Luiz Capitulino
2010-09-14 15:59           ` Adam Litke
2010-09-14 16:33             ` Luiz Capitulino
2010-09-14 16:01   ` Adam Litke
  -- strict thread matches above, loose matches on Subject: below --
2010-08-27  5:27 [Qemu-devel] [PATCH v3 0/3] virtio-balloon: Don't wait indefinitely for guest response Amit Shah
2010-08-27  5:27 ` [Qemu-devel] [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message Amit Shah
2010-08-27  9:29   ` [Qemu-devel] " Daniel P. Berrange
2010-08-27 12:39     ` Anthony Liguori
2010-08-28  0:52       ` Amit Shah
2010-08-30  8:30         ` Markus Armbruster
2010-08-30 13:06           ` Anthony Liguori
2010-08-30 15:01             ` Markus Armbruster
2010-08-30 19:17               ` [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface Adam Litke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).