]>
Commit | Line | Data |
---|---|---|
cd3afb7a AD |
1 | From f818a6aa247b71e8185a3277910ac1cd935432d1 Mon Sep 17 00:00:00 2001 |
2 | From: Alexandre Derumier <aderumier@odiso.com> | |
3 | Date: Mon, 9 Mar 2015 10:18:01 +0100 | |
4 | Subject: [PATCH] info max_mem : get_current_ram_size | |
5 | ||
6 | ||
7 | Signed-off-by: Alexandre Derumier <aderumier@odiso.com> | |
8 | --- | |
9 | hw/virtio/virtio-balloon.c | 2 +- | |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
11 | ||
12 | diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c | |
13 | index df3333c..7f6da3f 100644 | |
14 | --- a/hw/virtio/virtio-balloon.c | |
15 | +++ b/hw/virtio/virtio-balloon.c | |
16 | @@ -316,7 +316,7 @@ static void virtio_balloon_stat(void *opaque, BalloonInfo *info) | |
17 | VirtIOBalloon *dev = opaque; | |
18 | info->actual = get_current_ram_size() - ((uint64_t) dev->actual << | |
19 | VIRTIO_BALLOON_PFN_SHIFT); | |
20 | - info->max_mem = ram_size; | |
21 | + info->max_mem = get_current_ram_size(); | |
22 | ||
23 | if (!(balloon_stats_enabled(dev) && balloon_stats_supported(dev) && | |
24 | dev->stats_last_update)) { | |
25 | -- | |
26 | 1.7.10.4 | |
27 |