]> git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/patches/virtio-balloon-pvefixes.patch
re-enable balloon stats
[pve-qemu-kvm.git] / debian / patches / virtio-balloon-pvefixes.patch
1 Index: new/hw/virtio-balloon.c
2 ===================================================================
3 --- new.orig/hw/virtio-balloon.c 2012-12-12 14:05:56.000000000 +0100
4 +++ new/hw/virtio-balloon.c 2012-12-12 14:07:43.000000000 +0100
5 @@ -111,6 +111,10 @@
6 {
7 VirtIOBalloon *s = opaque;
8
9 + if (!balloon_stats_supported(s) || !runstate_is_running()) {
10 + return;
11 + }
12 +
13 virtqueue_push(s->svq, &s->stats_vq_elem, s->stats_vq_offset);
14 virtio_notify(&s->vdev, s->svq);
15 }
16 @@ -164,11 +168,6 @@
17 VirtIOBalloon *s = opaque;
18 int64_t value;
19
20 - if (!balloon_stats_supported(s)) {
21 - error_setg(errp, "guest doesn\'t support balloon stats");
22 - return;
23 - }
24 -
25 visit_type_int(v, &value, name, errp);
26 if (error_is_set(errp)) {
27 return;