qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
@ 2014-11-17  5:11 zhanghailiang
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size zhanghailiang
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: zhanghailiang @ 2014-11-17  5:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: imammedo, zhanghailiang, peter.huangpeng, mst

Hi,

Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
after we hotplug memory.

This bug exists since we begin to support hotplug memory, and it is better
to fix it.

Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary, 
pls feel free to remove it.

Thanks,
zhanghailiang

v2:
- fix compiling break for other targets that don't support pc-dimm

zhanghailiang (3):
  pc-dimm: add a function to calculate VM's current RAM size
  virtio-balloon: Fix balloon not working correctly when hotplug memory
  virtio-balloon: Add some trace events

 hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
 hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
 include/exec/cpu-common.h       |  1 +
 stubs/qmp_pc_dimm_device_list.c |  5 +++++
 trace-events                    |  4 ++++
 5 files changed, 51 insertions(+), 6 deletions(-)

-- 
1.7.12.4

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

* [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-17  5:11 [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory zhanghailiang
@ 2014-11-17  5:11 ` zhanghailiang
  2014-11-19  9:59   ` Igor Mammedov
  2014-11-19 10:32   ` Michael S. Tsirkin
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 2/3] virtio-balloon: Fix balloon not working correctly when hotplug memory zhanghailiang
                   ` (5 subsequent siblings)
  6 siblings, 2 replies; 23+ messages in thread
From: zhanghailiang @ 2014-11-17  5:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: imammedo, zhanghailiang, peter.huangpeng, mst

The global parameter 'ram_size' does not take into account
the hotplugged memory.

In some codes, we use 'ram_size' as current VM's real RAM size,
which is not correct.

Add function 'get_current_ram_size' to calculate VM's current RAM size,
it will enumerate present memory devices and also plus ram_size.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
---
 hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
 include/exec/cpu-common.h       |  1 +
 stubs/qmp_pc_dimm_device_list.c |  5 +++++
 3 files changed, 32 insertions(+)

diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
index a800ea7..38465d0 100644
--- a/hw/mem/pc-dimm.c
+++ b/hw/mem/pc-dimm.c
@@ -62,6 +62,32 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
     return 0;
 }
 
+ram_addr_t get_current_ram_size(void)
+{
+    MemoryDeviceInfoList *info_list = NULL;
+    MemoryDeviceInfoList **prev = &info_list;
+    MemoryDeviceInfoList *info;
+    ram_addr_t size = ram_size;
+
+    qmp_pc_dimm_device_list(qdev_get_machine(), &prev);
+    for (info = info_list; info; info = info->next) {
+        MemoryDeviceInfo *value = info->value;
+
+        if (value) {
+            switch (value->kind) {
+            case MEMORY_DEVICE_INFO_KIND_DIMM:
+                size += value->dimm->size;
+                break;
+            default:
+                break;
+            }
+        }
+    }
+    qapi_free_MemoryDeviceInfoList(info_list);
+
+    return size;
+}
+
 static int pc_dimm_slot2bitmap(Object *obj, void *opaque)
 {
     unsigned long *bitmap = opaque;
diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
index 427b851..fcc3162 100644
--- a/include/exec/cpu-common.h
+++ b/include/exec/cpu-common.h
@@ -52,6 +52,7 @@ typedef uintptr_t ram_addr_t;
 #endif
 
 extern ram_addr_t ram_size;
+ram_addr_t get_current_ram_size(void);
 
 /* memory API */
 
diff --git a/stubs/qmp_pc_dimm_device_list.c b/stubs/qmp_pc_dimm_device_list.c
index 5cb220c..b584bd8 100644
--- a/stubs/qmp_pc_dimm_device_list.c
+++ b/stubs/qmp_pc_dimm_device_list.c
@@ -5,3 +5,8 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
 {
    return 0;
 }
+
+ram_addr_t get_current_ram_size(void)
+{
+    return ram_size;
+}
-- 
1.7.12.4

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

* [Qemu-devel] [PATCH v2 2/3] virtio-balloon: Fix balloon not working correctly when hotplug memory
  2014-11-17  5:11 [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory zhanghailiang
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size zhanghailiang
@ 2014-11-17  5:11 ` zhanghailiang
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 3/3] virtio-balloon: Add some trace events zhanghailiang
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 23+ messages in thread
From: zhanghailiang @ 2014-11-17  5:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: imammedo, zhanghailiang, peter.huangpeng, mst

When do memory balloon, it takes the 'ram_size' as the VM's current ram size,
But 'ram_size' is the startup configured ram size, it does not take into
account the hotplugged memory.

As a result, the balloon result will be confused.
Steps to reproduce:
(1)Start VM: qemu -m size=1024,slots=4,maxmem=8G
(2)In VM: #free -m : 1024M
(3)qmp balloon 512M
(4)In VM: #free -m : 512M
(5)hotplug pc-dimm 1G
(6)In VM: #free -m : 1512M
(7)qmp balloon 256M
(8)In VM: #free -m :1256M
We expect the VM's available ram size to be 256M after 'qmp balloon 256M'
command, but VM's real available ram size is 1256M.

For "qmp balloon" is not performance critical code, we use function
'get_current_ram_size' to get VM's current ram size.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
---
 hw/virtio/virtio-balloon.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c
index 7bfbb75..41b24c9 100644
--- a/hw/virtio/virtio-balloon.c
+++ b/hw/virtio/virtio-balloon.c
@@ -294,10 +294,12 @@ static void virtio_balloon_set_config(VirtIODevice *vdev,
     VirtIOBalloon *dev = VIRTIO_BALLOON(vdev);
     struct virtio_balloon_config config;
     uint32_t oldactual = dev->actual;
+    ram_addr_t vm_ram_size = get_current_ram_size();
+
     memcpy(&config, config_data, sizeof(struct virtio_balloon_config));
     dev->actual = le32_to_cpu(config.actual);
     if (dev->actual != oldactual) {
-        qapi_event_send_balloon_change(ram_size -
+        qapi_event_send_balloon_change(vm_ram_size -
                         ((ram_addr_t) dev->actual << VIRTIO_BALLOON_PFN_SHIFT),
                         &error_abort);
     }
@@ -312,20 +314,21 @@ static uint32_t virtio_balloon_get_features(VirtIODevice *vdev, uint32_t f)
 static void virtio_balloon_stat(void *opaque, BalloonInfo *info)
 {
     VirtIOBalloon *dev = opaque;
-    info->actual = ram_size - ((uint64_t) dev->actual <<
-                               VIRTIO_BALLOON_PFN_SHIFT);
+    info->actual = get_current_ram_size() - ((uint64_t) dev->actual <<
+                                             VIRTIO_BALLOON_PFN_SHIFT);
 }
 
 static void virtio_balloon_to_target(void *opaque, ram_addr_t target)
 {
     VirtIOBalloon *dev = VIRTIO_BALLOON(opaque);
     VirtIODevice *vdev = VIRTIO_DEVICE(dev);
+    ram_addr_t vm_ram_size = get_current_ram_size();
 
-    if (target > ram_size) {
-        target = ram_size;
+    if (target > vm_ram_size) {
+        target = vm_ram_size;
     }
     if (target) {
-        dev->num_pages = (ram_size - target) >> VIRTIO_BALLOON_PFN_SHIFT;
+        dev->num_pages = (vm_ram_size - target) >> VIRTIO_BALLOON_PFN_SHIFT;
         virtio_notify_config(vdev);
     }
 }
-- 
1.7.12.4

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

* [Qemu-devel] [PATCH v2 3/3] virtio-balloon: Add some trace events
  2014-11-17  5:11 [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory zhanghailiang
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size zhanghailiang
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 2/3] virtio-balloon: Fix balloon not working correctly when hotplug memory zhanghailiang
@ 2014-11-17  5:11 ` zhanghailiang
  2014-11-17  6:07 ` [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory Michael S. Tsirkin
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 23+ messages in thread
From: zhanghailiang @ 2014-11-17  5:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: imammedo, zhanghailiang, peter.huangpeng, mst

Add some trace events for easier debugging

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
---
 hw/virtio/virtio-balloon.c | 6 ++++++
 trace-events               | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c
index 41b24c9..8a48d2a 100644
--- a/hw/virtio/virtio-balloon.c
+++ b/hw/virtio/virtio-balloon.c
@@ -25,6 +25,7 @@
 #include "exec/address-spaces.h"
 #include "qapi/visitor.h"
 #include "qapi-event.h"
+#include "trace.h"
 
 #if defined(__linux__)
 #include <sys/mman.h>
@@ -222,6 +223,8 @@ static void virtio_balloon_handle_output(VirtIODevice *vdev, VirtQueue *vq)
             if (!int128_nz(section.size) || !memory_region_is_ram(section.mr))
                 continue;
 
+            trace_virtio_balloon_handle_output(memory_region_name(section.mr),
+                                               pa);
             /* Using memory_region_get_ram_ptr is bending the rules a bit, but
                should be OK because we only want a single page.  */
             addr = section.offset_within_region;
@@ -285,6 +288,7 @@ static void virtio_balloon_get_config(VirtIODevice *vdev, uint8_t *config_data)
     config.num_pages = cpu_to_le32(dev->num_pages);
     config.actual = cpu_to_le32(dev->actual);
 
+    trace_virtio_balloon_get_config(config.num_pages, config.actual);
     memcpy(config_data, &config, sizeof(struct virtio_balloon_config));
 }
 
@@ -303,6 +307,7 @@ static void virtio_balloon_set_config(VirtIODevice *vdev,
                         ((ram_addr_t) dev->actual << VIRTIO_BALLOON_PFN_SHIFT),
                         &error_abort);
     }
+    trace_virtio_balloon_set_config(dev->actual, oldactual);
 }
 
 static uint32_t virtio_balloon_get_features(VirtIODevice *vdev, uint32_t f)
@@ -331,6 +336,7 @@ static void virtio_balloon_to_target(void *opaque, ram_addr_t target)
         dev->num_pages = (vm_ram_size - target) >> VIRTIO_BALLOON_PFN_SHIFT;
         virtio_notify_config(vdev);
     }
+    trace_virtio_balloon_to_target(target, dev->num_pages);
 }
 
 static void virtio_balloon_save(QEMUFile *f, void *opaque)
diff --git a/trace-events b/trace-events
index b5722ea..bba5be8 100644
--- a/trace-events
+++ b/trace-events
@@ -142,6 +142,10 @@ cpu_out(unsigned int addr, unsigned int val) "addr %#x value %u"
 # balloon.c
 # Since requests are raised via monitor, not many tracepoints are needed.
 balloon_event(void *opaque, unsigned long addr) "opaque %p addr %lu"
+virtio_balloon_handle_output(const char *name, uint64_t gpa) "setion name: %s gpa: %"PRIx64""
+virtio_balloon_get_config(uint32_t num_pages, uint32_t acutal) "num_pages: %d acutal: %d"
+virtio_balloon_set_config(uint32_t acutal, uint32_t oldacutal) "acutal: %d oldacutal: %d"
+virtio_balloon_to_target(uint64_t target, uint32_t num_pages) "balloon target: %"PRIx64" num_pages: %d"
 
 # hw/intc/apic_common.c
 cpu_set_apic_base(uint64_t val) "%016"PRIx64
-- 
1.7.12.4

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-17  5:11 [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory zhanghailiang
                   ` (2 preceding siblings ...)
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 3/3] virtio-balloon: Add some trace events zhanghailiang
@ 2014-11-17  6:07 ` Michael S. Tsirkin
  2014-11-17 10:39 ` Michael S. Tsirkin
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 23+ messages in thread
From: Michael S. Tsirkin @ 2014-11-17  6:07 UTC (permalink / raw)
  To: zhanghailiang; +Cc: imammedo, qemu-devel, peter.huangpeng

On Mon, Nov 17, 2014 at 01:11:07PM +0800, zhanghailiang wrote:
> Hi,
> 
> Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
> hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
> after we hotplug memory.
> 
> This bug exists since we begin to support hotplug memory, and it is better
> to fix it.
> 
> Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary, 
> pls feel free to remove it.
> 
> Thanks,
> zhanghailiang

OK but what about other devices that access ram_size?
Are they also broken?



> v2:
> - fix compiling break for other targets that don't support pc-dimm
> 
> zhanghailiang (3):
>   pc-dimm: add a function to calculate VM's current RAM size
>   virtio-balloon: Fix balloon not working correctly when hotplug memory
>   virtio-balloon: Add some trace events
> 
>  hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>  hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
>  include/exec/cpu-common.h       |  1 +
>  stubs/qmp_pc_dimm_device_list.c |  5 +++++
>  trace-events                    |  4 ++++
>  5 files changed, 51 insertions(+), 6 deletions(-)
> 
> -- 
> 1.7.12.4
> 

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-17  5:11 [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory zhanghailiang
                   ` (3 preceding siblings ...)
  2014-11-17  6:07 ` [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory Michael S. Tsirkin
@ 2014-11-17 10:39 ` Michael S. Tsirkin
  2014-11-17 10:53   ` zhanghailiang
  2014-11-19  8:28 ` zhanghailiang
  2015-03-03 14:04 ` Luiz Capitulino
  6 siblings, 1 reply; 23+ messages in thread
From: Michael S. Tsirkin @ 2014-11-17 10:39 UTC (permalink / raw)
  To: zhanghailiang; +Cc: imammedo, qemu-devel, peter.huangpeng

On Mon, Nov 17, 2014 at 01:11:07PM +0800, zhanghailiang wrote:
> Hi,
> 
> Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
> hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
> after we hotplug memory.
> 
> This bug exists since we begin to support hotplug memory, and it is better
> to fix it.
> 
> Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary, 
> pls feel free to remove it.
> 
> Thanks,
> zhanghailiang

What about other users of ram_size?
Are they all incorrect?

> v2:
> - fix compiling break for other targets that don't support pc-dimm
> 
> zhanghailiang (3):
>   pc-dimm: add a function to calculate VM's current RAM size
>   virtio-balloon: Fix balloon not working correctly when hotplug memory
>   virtio-balloon: Add some trace events
> 
>  hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>  hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
>  include/exec/cpu-common.h       |  1 +
>  stubs/qmp_pc_dimm_device_list.c |  5 +++++
>  trace-events                    |  4 ++++
>  5 files changed, 51 insertions(+), 6 deletions(-)
> 
> -- 
> 1.7.12.4
> 

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-17 10:39 ` Michael S. Tsirkin
@ 2014-11-17 10:53   ` zhanghailiang
  2014-11-17 12:25     ` zhanghailiang
  0 siblings, 1 reply; 23+ messages in thread
From: zhanghailiang @ 2014-11-17 10:53 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: imammedo, qemu-devel, peter.huangpeng

On 2014/11/17 18:39, Michael S. Tsirkin wrote:
> On Mon, Nov 17, 2014 at 01:11:07PM +0800, zhanghailiang wrote:
>> Hi,
>>
>> Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
>> hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
>> after we hotplug memory.
>>
>> This bug exists since we begin to support hotplug memory, and it is better
>> to fix it.
>>
>> Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary,
>> pls feel free to remove it.
>>
>> Thanks,
>> zhanghailiang
>
> What about other users of ram_size?
> Are they all incorrect?
>

pc-dimm is only supported in x86 target now, and i am not quite sure if hotplug
memory will break migration. I'll look into it. Thanks.

>> v2:
>> - fix compiling break for other targets that don't support pc-dimm
>>
>> zhanghailiang (3):
>>    pc-dimm: add a function to calculate VM's current RAM size
>>    virtio-balloon: Fix balloon not working correctly when hotplug memory
>>    virtio-balloon: Add some trace events
>>
>>   hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>>   hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
>>   include/exec/cpu-common.h       |  1 +
>>   stubs/qmp_pc_dimm_device_list.c |  5 +++++
>>   trace-events                    |  4 ++++
>>   5 files changed, 51 insertions(+), 6 deletions(-)
>>
>> --
>> 1.7.12.4
>>
>
> .
>

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-17 10:53   ` zhanghailiang
@ 2014-11-17 12:25     ` zhanghailiang
  2014-11-17 12:40       ` Michael S. Tsirkin
  0 siblings, 1 reply; 23+ messages in thread
From: zhanghailiang @ 2014-11-17 12:25 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: imammedo, qemu-devel, peter.huangpeng

On 2014/11/17 18:53, zhanghailiang wrote:
> On 2014/11/17 18:39, Michael S. Tsirkin wrote:
>> On Mon, Nov 17, 2014 at 01:11:07PM +0800, zhanghailiang wrote:
>>> Hi,
>>>
>>> Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
>>> hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
>>> after we hotplug memory.
>>>
>>> This bug exists since we begin to support hotplug memory, and it is better
>>> to fix it.
>>>
>>> Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary,
>>> pls feel free to remove it.
>>>
>>> Thanks,
>>> zhanghailiang
>>
>> What about other users of ram_size?
>> Are they all incorrect?
>>
>
> pc-dimm is only supported in x86 target now, and i am not quite sure if hotplug
> memory will break migration. I'll look into it. Thanks.
>

Hi Michael,

I have made a global search in qemu code, ram_size is used mostly for VM's
startup initialization, I think it's all OK except virtio-balloon and
function vmport_cmd_ram_size (I'm not sure about this place :( ).

But, Unfortunately, hotplug memory action breaks migration. :(
I have made a simple test about this:

Source:
# start VM
# hotplug memory:
object_add memory-backend-ram,id=ram1,size=1024M,host-nodes=0,policy=bind
device_add pc-dimm,id=dimm1,memdev=ram1
# migrate VM to Destination

Destination:
# qemu-system-x86_64: Unknown ramblock "ram1", cannot accept migration
qemu: warning: error while loading state for instance 0x0 of device 'ram'
qemu-system-x86_64: load of migration failed: Invalid argument

*further test*:
hot-add CPU also break migration and reports error in destination:
'Unknown savevm section or instance 'cpu_common' 4
qemu-system-x86_64: load of migration failed: Invalid argument'

I think we should support migration after hotplug memory/CPU action,
what's your opinion? ;)
I will try to fix these two problems.

Thanks,
zhanghailiang
>>> v2:
>>> - fix compiling break for other targets that don't support pc-dimm
>>>
>>> zhanghailiang (3):
>>>    pc-dimm: add a function to calculate VM's current RAM size
>>>    virtio-balloon: Fix balloon not working correctly when hotplug memory
>>>    virtio-balloon: Add some trace events
>>>
>>>   hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>>>   hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
>>>   include/exec/cpu-common.h       |  1 +
>>>   stubs/qmp_pc_dimm_device_list.c |  5 +++++
>>>   trace-events                    |  4 ++++
>>>   5 files changed, 51 insertions(+), 6 deletions(-)
>>>
>>> --
>>> 1.7.12.4
>>>
>>
>> .
>>
>
>
>
>
>

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-17 12:25     ` zhanghailiang
@ 2014-11-17 12:40       ` Michael S. Tsirkin
  2014-11-18  2:50         ` zhanghailiang
  0 siblings, 1 reply; 23+ messages in thread
From: Michael S. Tsirkin @ 2014-11-17 12:40 UTC (permalink / raw)
  To: zhanghailiang; +Cc: imammedo, qemu-devel, peter.huangpeng

On Mon, Nov 17, 2014 at 08:25:14PM +0800, zhanghailiang wrote:
> On 2014/11/17 18:53, zhanghailiang wrote:
> >On 2014/11/17 18:39, Michael S. Tsirkin wrote:
> >>On Mon, Nov 17, 2014 at 01:11:07PM +0800, zhanghailiang wrote:
> >>>Hi,
> >>>
> >>>Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
> >>>hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
> >>>after we hotplug memory.
> >>>
> >>>This bug exists since we begin to support hotplug memory, and it is better
> >>>to fix it.
> >>>
> >>>Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary,
> >>>pls feel free to remove it.
> >>>
> >>>Thanks,
> >>>zhanghailiang
> >>
> >>What about other users of ram_size?
> >>Are they all incorrect?
> >>
> >
> >pc-dimm is only supported in x86 target now, and i am not quite sure if hotplug
> >memory will break migration. I'll look into it. Thanks.
> >
> 
> Hi Michael,
> 
> I have made a global search in qemu code, ram_size is used mostly for VM's
> startup initialization, I think it's all OK except virtio-balloon and
> function vmport_cmd_ram_size (I'm not sure about this place :( ).

Comment out ram_size in header, and see what breaks.


> But, Unfortunately, hotplug memory action breaks migration. :(
> I have made a simple test about this:
> 
> Source:
> # start VM
> # hotplug memory:
> object_add memory-backend-ram,id=ram1,size=1024M,host-nodes=0,policy=bind
> device_add pc-dimm,id=dimm1,memdev=ram1
> # migrate VM to Destination
> 
> Destination:
> # qemu-system-x86_64: Unknown ramblock "ram1", cannot accept migration
> qemu: warning: error while loading state for instance 0x0 of device 'ram'
> qemu-system-x86_64: load of migration failed: Invalid argument
> 
> *further test*:
> hot-add CPU also break migration and reports error in destination:
> 'Unknown savevm section or instance 'cpu_common' 4
> qemu-system-x86_64: load of migration failed: Invalid argument'
> 
> I think we should support migration after hotplug memory/CPU action,
> what's your opinion? ;)

You must configure identical hardware on source and
destination.
This means that after adding memory on source, you
must specify it (on command line) for destination.

> I will try to fix these two problems.
> 
> Thanks,
> zhanghailiang
> >>>v2:
> >>>- fix compiling break for other targets that don't support pc-dimm
> >>>
> >>>zhanghailiang (3):
> >>>   pc-dimm: add a function to calculate VM's current RAM size
> >>>   virtio-balloon: Fix balloon not working correctly when hotplug memory
> >>>   virtio-balloon: Add some trace events
> >>>
> >>>  hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
> >>>  hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
> >>>  include/exec/cpu-common.h       |  1 +
> >>>  stubs/qmp_pc_dimm_device_list.c |  5 +++++
> >>>  trace-events                    |  4 ++++
> >>>  5 files changed, 51 insertions(+), 6 deletions(-)
> >>>
> >>>--
> >>>1.7.12.4
> >>>
> >>
> >>.
> >>
> >
> >
> >
> >
> >
> 

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-17 12:40       ` Michael S. Tsirkin
@ 2014-11-18  2:50         ` zhanghailiang
  0 siblings, 0 replies; 23+ messages in thread
From: zhanghailiang @ 2014-11-18  2:50 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: imammedo, qemu-devel, peter.huangpeng

[-- Attachment #1: Type: text/plain, Size: 8257 bytes --]

On 2014/11/17 20:40, Michael S. Tsirkin wrote:
> On Mon, Nov 17, 2014 at 08:25:14PM +0800, zhanghailiang wrote:
>> On 2014/11/17 18:53, zhanghailiang wrote:
>>> On 2014/11/17 18:39, Michael S. Tsirkin wrote:
>>>> On Mon, Nov 17, 2014 at 01:11:07PM +0800, zhanghailiang wrote:
>>>>> Hi,
>>>>>
>>>>> Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
>>>>> hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
>>>>> after we hotplug memory.
>>>>>
>>>>> This bug exists since we begin to support hotplug memory, and it is better
>>>>> to fix it.
>>>>>
>>>>> Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary,
>>>>> pls feel free to remove it.
>>>>>
>>>>> Thanks,
>>>>> zhanghailiang
>>>>
>>>> What about other users of ram_size?
>>>> Are they all incorrect?
>>>>
>>>
>>> pc-dimm is only supported in x86 target now, and i am not quite sure if hotplug
>>> memory will break migration. I'll look into it. Thanks.
>>>
>>
>> Hi Michael,
>>
>> I have made a global search in qemu code, ram_size is used mostly for VM's
>> startup initialization, I think it's all OK except virtio-balloon and
>> function vmport_cmd_ram_size (I'm not sure about this place :( ).
>
> Comment out ram_size in header, and see what breaks.
>

OK, bellow errors are reported when do 'make -k' command after comment out 'ram_size'
(The result is cut out from make-k-result.txt, you can find make-k-result.txt from affix).

/mnt/sdb/qemu/hw/cris/boot.c:80: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/display/pxa2xx_lcd.c:304: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/display/pxa2xx_lcd.c:834: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/i386/../xenpv/xen_domainbuild.c:264: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/i386/../xenpv/xen_domainbuild.c:82: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/i386/pc.c:667: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/i386/smbios.c:655: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/i386/smbios.c:855: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/intc/apic_common.c:317: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/m68k/mcf5206.c:292: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/m68k/mcf5208.c:142: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/microblaze/boot.c:166: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/mips/mips_fulong2e.c:132: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/mips/mips_malta.c:823: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/mips/mips_r4k.c:107: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/misc/vmport.c:112: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/moxie/moxiesim.c:80: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/ppc/e500.c:865: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/ppc/spapr.c:295: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/ppc/spapr.c:684: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/ppc/spapr_iommu.c:134: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/s390x/ipl.c:102: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/s390x/s390-virtio-ccw.c:121: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/s390x/s390-virtio-ccw.c:69: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/s390x/s390-virtio.c:218: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/s390x/s390-virtio.c:73: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/s390x/sclp.c:142: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/s390x/sclp.c:195: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/s390x/sclp.c:71: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/sparc/sun4m.c:1090: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/sparc64/sun4u.c:418: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/sparc64/sun4u.c:882: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/target-arm/arm-semi.c:538: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/target-m68k/m68k-semi.c:459: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/target-s390x/helper.c:417: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/target-s390x/helper.c:457: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/target-s390x/mem_helper.c:878: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/target-s390x/mem_helper.c:890: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/target-s390x/mem_helper.c:903: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/qemu/xen-hvm.c:1157: error: ‘ram_size’ undeclared (first use in this function)

For hotplug memory is only supported in x86 target now, so i think we should only
force on x86 related error reports, and most of them are used in VM's boot initializtion,
except numa.c, virtio-balloon, translate-all.c, pxa2xx_lcd.c, vmport.c where use ram_size.
And the last three i'm not quite sure if they are broken, i'm not familiar
with these codes. Do you know them? ;)

>
>> But, Unfortunately, hotplug memory action breaks migration. :(
>> I have made a simple test about this:
>>
>> Source:
>> # start VM
>> # hotplug memory:
>> object_add memory-backend-ram,id=ram1,size=1024M,host-nodes=0,policy=bind
>> device_add pc-dimm,id=dimm1,memdev=ram1
>> # migrate VM to Destination
>>
>> Destination:
>> # qemu-system-x86_64: Unknown ramblock "ram1", cannot accept migration
>> qemu: warning: error while loading state for instance 0x0 of device 'ram'
>> qemu-system-x86_64: load of migration failed: Invalid argument
>>
>> *further test*:
>> hot-add CPU also break migration and reports error in destination:
>> 'Unknown savevm section or instance 'cpu_common' 4
>> qemu-system-x86_64: load of migration failed: Invalid argument'
>>
>> I think we should support migration after hotplug memory/CPU action,
>> what's your opinion? ;)
>
> You must configure identical hardware on source and
> destination.
> This means that after adding memory on source, you
> must specify it (on command line) for destination.
>

Got it, so it does not break migration at all ;)

Thanks,
zhanghailiang
>> I will try to fix these two problems.
>>
>> Thanks,
>> zhanghailiang
>>>>> v2:
>>>>> - fix compiling break for other targets that don't support pc-dimm
>>>>>
>>>>> zhanghailiang (3):
>>>>>    pc-dimm: add a function to calculate VM's current RAM size
>>>>>    virtio-balloon: Fix balloon not working correctly when hotplug memory
>>>>>    virtio-balloon: Add some trace events
>>>>>
>>>>>   hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>>>>>   hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
>>>>>   include/exec/cpu-common.h       |  1 +
>>>>>   stubs/qmp_pc_dimm_device_list.c |  5 +++++
>>>>>   trace-events                    |  4 ++++
>>>>>   5 files changed, 51 insertions(+), 6 deletions(-)
>>>>>
>>>>> --
>>>>> 1.7.12.4
>>>>>
>>>>
>>>> .
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>
> .
>


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: make-k-result.txt --]
[-- Type: text/plain; charset="gb18030"; name="make-k-result.txt", Size: 199486 bytes --]

In file included from /usr/include/gtk-2.0/gtk/gtk.h:228,
                 from ui/gtk.c:48:
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn’t a prototype
  CC    trace/generated-events.o
  AR    libqemustub.a
  CC    qemu-img.o
  LINK  qemu-bridge-helper
  CC    qmp-marshal.o
  AR    libqemuutil.a
  LINK  qemu-ga
  LINK  qemu-nbd
  LINK  qemu-img
  LINK  qemu-io
  LINK  fsdev/virtfs-proxy-helper
  GEN   microblazeel-softmmu/hmp-commands.h
  GEN   cris-softmmu/hmp-commands.h
  GEN   lm32-softmmu/hmp-commands.h
  GEN   microblaze-softmmu/hmp-commands.h
  GEN   microblazeel-softmmu/qmp-commands-old.h
  GEN   lm32-softmmu/qmp-commands-old.h
  GEN   cris-softmmu/qmp-commands-old.h
  GEN   alpha-softmmu/hmp-commands.h
  GEN   microblaze-softmmu/qmp-commands-old.h
  GEN   m68k-softmmu/hmp-commands.h
  GEN   aarch64-softmmu/hmp-commands.h
  GEN   arm-softmmu/hmp-commands.h
  GEN   i386-softmmu/hmp-commands.h
  GEN   microblazeel-softmmu/config-target.h
  CC    microblazeel-softmmu/exec.o
  GEN   alpha-softmmu/qmp-commands-old.h
  GEN   arm-softmmu/qmp-commands-old.h
  GEN   lm32-softmmu/config-target.h
  GEN   m68k-softmmu/qmp-commands-old.h
  CC    lm32-softmmu/exec.o
  GEN   i386-softmmu/qmp-commands-old.h
  GEN   cris-softmmu/config-target.h
  GEN   aarch64-softmmu/qmp-commands-old.h
  CC    cris-softmmu/exec.o
  GEN   mips64-softmmu/hmp-commands.h
  GEN   mips-softmmu/hmp-commands.h
  GEN   microblaze-softmmu/config-target.h
  GEN   mips64el-softmmu/hmp-commands.h
  CC    microblaze-softmmu/exec.o
  GEN   mips64-softmmu/qmp-commands-old.h
  GEN   m68k-softmmu/config-target.h
  CC    m68k-softmmu/exec.o
  GEN   aarch64-softmmu/config-target.h
  GEN   arm-softmmu/config-target.h
  CC    aarch64-softmmu/exec.o
  CC    arm-softmmu/exec.o
  GEN   alpha-softmmu/config-target.h
  GEN   mips-softmmu/qmp-commands-old.h
  CC    alpha-softmmu/exec.o
  GEN   mips64el-softmmu/qmp-commands-old.h
  GEN   i386-softmmu/config-target.h
  CC    i386-softmmu/exec.o
  GEN   mips-softmmu/config-target.h
  CC    mips-softmmu/exec.o
  GEN   mips64-softmmu/config-target.h
  CC    mips64-softmmu/exec.o
  GEN   mips64el-softmmu/config-target.h
  CC    mips64el-softmmu/exec.o
  CC    cris-softmmu/translate-all.o
  CC    microblazeel-softmmu/translate-all.o
  CC    lm32-softmmu/translate-all.o
  CC    aarch64-softmmu/translate-all.o
  CC    i386-softmmu/translate-all.o
  CC    m68k-softmmu/translate-all.o
  CC    alpha-softmmu/translate-all.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    cris-softmmu/cpu-exec.o
  CC    arm-softmmu/translate-all.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    lm32-softmmu/cpu-exec.o
  CC    mips64-softmmu/translate-all.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
  CC    microblaze-softmmu/translate-all.o
make[1]: *** [translate-all.o] Error 1
  CC    m68k-softmmu/cpu-exec.o
make[1]: *** [translate-all.o] Error 1
  CC    microblazeel-softmmu/cpu-exec.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    aarch64-softmmu/cpu-exec.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
make[1]: *** [translate-all.o] Error 1
  CC    i386-softmmu/cpu-exec.o
  CC    alpha-softmmu/cpu-exec.o
  CC    mips-softmmu/translate-all.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
  CC    mips64el-softmmu/translate-all.o
make[1]: *** [translate-all.o] Error 1
  CC    arm-softmmu/cpu-exec.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    microblaze-softmmu/cpu-exec.o
make[1]: *** [translate-all.o] Error 1
  CC    mips64-softmmu/cpu-exec.o
  CC    cris-softmmu/tcg/tcg.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
  CC    lm32-softmmu/tcg/tcg.o
make[1]: *** [translate-all.o] Error 1
  CC    mips-softmmu/cpu-exec.o
  CC    microblazeel-softmmu/tcg/tcg.o
  CC    m68k-softmmu/tcg/tcg.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    mips64el-softmmu/cpu-exec.o
  CC    i386-softmmu/tcg/tcg.o
  CC    alpha-softmmu/tcg/tcg.o
  CC    aarch64-softmmu/tcg/tcg.o
  CC    microblaze-softmmu/tcg/tcg.o
  CC    mips64-softmmu/tcg/tcg.o
  CC    arm-softmmu/tcg/tcg.o
  CC    mips-softmmu/tcg/tcg.o
  CC    mips64el-softmmu/tcg/tcg.o
  CC    microblazeel-softmmu/tcg/optimize.o
  CC    cris-softmmu/tcg/optimize.o
  CC    m68k-softmmu/tcg/optimize.o
  CC    lm32-softmmu/tcg/optimize.o
  CC    alpha-softmmu/tcg/optimize.o
  CC    arm-softmmu/tcg/optimize.o
  CC    i386-softmmu/tcg/optimize.o
  CC    aarch64-softmmu/tcg/optimize.o
  CC    microblaze-softmmu/tcg/optimize.o
  CC    microblazeel-softmmu/fpu/softfloat.o
  CC    mips64-softmmu/tcg/optimize.o
  CC    m68k-softmmu/fpu/softfloat.o
  CC    mips-softmmu/tcg/optimize.o
  CC    mips64el-softmmu/tcg/optimize.o
  CC    lm32-softmmu/fpu/softfloat.o
  CC    cris-softmmu/fpu/softfloat.o
  CC    alpha-softmmu/fpu/softfloat.o
  CC    arm-softmmu/fpu/softfloat.o
  CC    aarch64-softmmu/fpu/softfloat.o
  CC    microblaze-softmmu/fpu/softfloat.o
  CC    i386-softmmu/fpu/softfloat.o
  CC    mips64-softmmu/fpu/softfloat.o
  CC    mips-softmmu/fpu/softfloat.o
  CC    mips64el-softmmu/fpu/softfloat.o
  CC    microblazeel-softmmu/disas.o
  CC    alpha-softmmu/disas.o
  CC    microblazeel-softmmu/kvm-stub.o
  CC    microblaze-softmmu/disas.o
  CC    lm32-softmmu/disas.o
  CC    cris-softmmu/disas.o
  CC    arm-softmmu/disas.o
  CC    aarch64-softmmu/disas.o
  CC    m68k-softmmu/disas.o
  CC    microblazeel-softmmu/arch_init.o
  CC    i386-softmmu/disas.o
  CC    microblaze-softmmu/kvm-stub.o
  CC    alpha-softmmu/kvm-stub.o
  CC    lm32-softmmu/kvm-stub.o
  CC    cris-softmmu/kvm-stub.o
  CC    mips-softmmu/disas.o
  GEN   arm-softmmu/gdbstub-xml.c
  GEN   aarch64-softmmu/gdbstub-xml.c
  GEN   m68k-softmmu/gdbstub-xml.c
  CC    arm-softmmu/kvm-stub.o
  CC    m68k-softmmu/kvm-stub.o
  CC    microblaze-softmmu/arch_init.o
  CC    aarch64-softmmu/kvm-stub.o
  CC    alpha-softmmu/arch_init.o
  CC    mips64-softmmu/disas.o
  CC    i386-softmmu/arch_init.o
  CC    cris-softmmu/arch_init.o
  CC    lm32-softmmu/arch_init.o
  CC    mips-softmmu/kvm-stub.o
  CC    m68k-softmmu/arch_init.o
  CC    arm-softmmu/arch_init.o
  CC    aarch64-softmmu/arch_init.o
  CC    microblazeel-softmmu/cpus.o
  CC    mips64el-softmmu/disas.o
  CC    mips64-softmmu/kvm-stub.o
  CC    mips-softmmu/arch_init.o
  CC    alpha-softmmu/cpus.o
  CC    microblaze-softmmu/cpus.o
  CC    mips64-softmmu/arch_init.o
  CC    mips64el-softmmu/kvm-stub.o
  CC    i386-softmmu/cpus.o
  CC    cris-softmmu/cpus.o
  CC    lm32-softmmu/cpus.o
  CC    microblazeel-softmmu/monitor.o
  CC    arm-softmmu/cpus.o
  CC    m68k-softmmu/cpus.o
  CC    aarch64-softmmu/cpus.o
  CC    mips64el-softmmu/arch_init.o
  CC    microblaze-softmmu/monitor.o
  CC    mips-softmmu/cpus.o
  CC    mips64-softmmu/cpus.o
  CC    alpha-softmmu/monitor.o
  CC    i386-softmmu/monitor.o
  CC    lm32-softmmu/monitor.o
  CC    cris-softmmu/monitor.o
  CC    m68k-softmmu/monitor.o
  CC    arm-softmmu/monitor.o
  CC    mips64el-softmmu/cpus.o
  CC    aarch64-softmmu/monitor.o
  CC    mips-softmmu/monitor.o
  CC    mips64-softmmu/monitor.o
  CC    mips64el-softmmu/monitor.o
  CC    microblazeel-softmmu/gdbstub.o
  CC    microblaze-softmmu/gdbstub.o
  CC    cris-softmmu/gdbstub.o
  CC    lm32-softmmu/gdbstub.o
  CC    i386-softmmu/gdbstub.o
  CC    microblazeel-softmmu/balloon.o
  CC    alpha-softmmu/gdbstub.o
  CC    arm-softmmu/gdbstub.o
  CC    microblazeel-softmmu/ioport.o
  CC    m68k-softmmu/gdbstub.o
  CC    microblaze-softmmu/balloon.o
  CC    aarch64-softmmu/gdbstub.o
  CC    cris-softmmu/balloon.o
  CC    lm32-softmmu/balloon.o
  CC    mips-softmmu/gdbstub.o
  CC    mips64-softmmu/gdbstub.o
  CC    i386-softmmu/balloon.o
  CC    cris-softmmu/ioport.o
  CC    alpha-softmmu/balloon.o
  CC    microblaze-softmmu/ioport.o
  CC    microblazeel-softmmu/numa.o
  CC    mips64el-softmmu/gdbstub.o
  CC    arm-softmmu/balloon.o
  CC    lm32-softmmu/ioport.o
  CC    m68k-softmmu/balloon.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    microblazeel-softmmu/qtest.o
  CC    i386-softmmu/ioport.o
  CC    alpha-softmmu/ioport.o
  CC    microblaze-softmmu/numa.o
  CC    cris-softmmu/numa.o
  CC    aarch64-softmmu/balloon.o
  CC    arm-softmmu/ioport.o
  CC    mips-softmmu/balloon.o
  CC    mips64-softmmu/balloon.o
  CC    lm32-softmmu/numa.o
  CC    m68k-softmmu/ioport.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    microblaze-softmmu/qtest.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    mips64el-softmmu/balloon.o
  CC    cris-softmmu/qtest.o
  CC    alpha-softmmu/numa.o
  CC    i386-softmmu/numa.o
  CC    microblazeel-softmmu/bootdevice.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
  CC    aarch64-softmmu/ioport.o
make[1]: *** [numa.o] Error 1
  CC    lm32-softmmu/qtest.o
  CC    mips-softmmu/ioport.o
  CC    mips64-softmmu/ioport.o
  CC    arm-softmmu/numa.o
  CC    mips64el-softmmu/ioport.o
  CC    m68k-softmmu/numa.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    alpha-softmmu/qtest.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    i386-softmmu/qtest.o
  CC    microblaze-softmmu/bootdevice.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    arm-softmmu/qtest.o
  CC    cris-softmmu/bootdevice.o
  CC    microblazeel-softmmu/device_tree.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    m68k-softmmu/qtest.o
  CC    aarch64-softmmu/numa.o
  CC    mips64-softmmu/numa.o
  CC    mips-softmmu/numa.o
  CC    lm32-softmmu/bootdevice.o
  CC    mips64el-softmmu/numa.o
  CC    microblaze-softmmu/device_tree.o
  CC    cris-softmmu/device_tree.o
  CC    microblazeel-softmmu/memory.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    mips-softmmu/qtest.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    mips64-softmmu/qtest.o
make[1]: *** [numa.o] Error 1
  CC    aarch64-softmmu/qtest.o
  CC    alpha-softmmu/bootdevice.o
  CC    i386-softmmu/bootdevice.o
  CC    arm-softmmu/bootdevice.o
  CC    lm32-softmmu/device_tree.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    mips64el-softmmu/qtest.o
  CC    m68k-softmmu/bootdevice.o
  CC    microblaze-softmmu/memory.o
  CC    cris-softmmu/memory.o
  CC    alpha-softmmu/device_tree.o
  CC    arm-softmmu/device_tree.o
  CC    i386-softmmu/device_tree.o
  CC    mips-softmmu/bootdevice.o
  CC    lm32-softmmu/memory.o
  CC    aarch64-softmmu/bootdevice.o
  CC    m68k-softmmu/device_tree.o
  CC    mips64-softmmu/bootdevice.o
  CC    mips64el-softmmu/bootdevice.o
  CC    alpha-softmmu/memory.o
  CC    i386-softmmu/kvm-all.o
  CC    arm-softmmu/memory.o
  CC    mips-softmmu/device_tree.o
  CC    mips64-softmmu/device_tree.o
  CC    m68k-softmmu/memory.o
  CC    aarch64-softmmu/device_tree.o
  CC    mips64el-softmmu/device_tree.o
  CC    mips-softmmu/memory.o
  CC    microblazeel-softmmu/savevm.o
  CC    mips64-softmmu/memory.o
  CC    aarch64-softmmu/memory.o
  CC    mips64el-softmmu/memory.o
  CC    microblaze-softmmu/savevm.o
  CC    cris-softmmu/savevm.o
  CC    i386-softmmu/memory.o
  CC    lm32-softmmu/savevm.o
  CC    alpha-softmmu/savevm.o
  CC    microblazeel-softmmu/cputlb.o
  CC    arm-softmmu/savevm.o
  CC    m68k-softmmu/savevm.o
  CC    cris-softmmu/cputlb.o
  CC    microblaze-softmmu/cputlb.o
  CC    lm32-softmmu/cputlb.o
  CC    mips-softmmu/savevm.o
  CC    alpha-softmmu/cputlb.o
  CC    mips64-softmmu/savevm.o
  CC    aarch64-softmmu/savevm.o
  CC    mips64el-softmmu/savevm.o
  CC    m68k-softmmu/cputlb.o
  CC    arm-softmmu/cputlb.o
  CC    i386-softmmu/savevm.o
  CC    microblazeel-softmmu/memory_mapping.o
  CC    mips-softmmu/cputlb.o
  CC    mips64-softmmu/cputlb.o
  CC    microblazeel-softmmu/dump.o
  CC    aarch64-softmmu/cputlb.o
  CC    cris-softmmu/memory_mapping.o
  CC    mips64el-softmmu/cputlb.o
  CC    lm32-softmmu/memory_mapping.o
  CC    microblaze-softmmu/memory_mapping.o
  CC    alpha-softmmu/memory_mapping.o
  CC    i386-softmmu/cputlb.o
  CC    m68k-softmmu/memory_mapping.o
  CC    lm32-softmmu/dump.o
  CC    cris-softmmu/dump.o
  CC    alpha-softmmu/dump.o
  CC    arm-softmmu/memory_mapping.o
  CC    microblazeel-softmmu/xen-common-stub.o
  CC    microblaze-softmmu/dump.o
  CC    m68k-softmmu/dump.o
  CC    aarch64-softmmu/memory_mapping.o
  CC    microblazeel-softmmu/xen-hvm-stub.o
  CC    arm-softmmu/dump.o
  CC    mips64-softmmu/memory_mapping.o
  CC    mips-softmmu/memory_mapping.o
  CC    microblazeel-softmmu/hw/net/xilinx_ethlite.o
  CC    lm32-softmmu/xen-common-stub.o
  CC    mips64el-softmmu/memory_mapping.o
  CC    aarch64-softmmu/dump.o
  CC    cris-softmmu/xen-common-stub.o
  CC    microblaze-softmmu/xen-common-stub.o
  CC    alpha-softmmu/xen-common-stub.o
  CC    m68k-softmmu/xen-common-stub.o
  CC    mips64-softmmu/dump.o
  CC    mips-softmmu/dump.o
  CC    lm32-softmmu/xen-hvm-stub.o
  CC    i386-softmmu/memory_mapping.o
  CC    microblaze-softmmu/xen-hvm-stub.o
  CC    cris-softmmu/xen-hvm-stub.o
  CC    microblazeel-softmmu/hw/net/vhost_net.o
  CC    alpha-softmmu/xen-hvm-stub.o
  CC    m68k-softmmu/xen-hvm-stub.o
  CC    mips64el-softmmu/dump.o
  CC    arm-softmmu/xen-common-stub.o
  CC    lm32-softmmu/hw/input/milkymist-softusb.o
  CC    microblaze-softmmu/hw/net/xilinx_ethlite.o
  CC    i386-softmmu/dump.o
  CC    cris-softmmu/hw/net/etraxfs_eth.o
  CC    microblazeel-softmmu/hw/microblaze/petalogix_s3adsp1800_mmu.o
  CC    alpha-softmmu/hw/9pfs/virtio-9p-device.o
  CC    m68k-softmmu/hw/9pfs/virtio-9p-device.o
  CC    arm-softmmu/xen-hvm-stub.o
  CC    aarch64-softmmu/xen-common-stub.o
  CC    microblaze-softmmu/hw/net/vhost_net.o
  CC    lm32-softmmu/hw/misc/milkymist-hpdmc.o
  CC    arm-softmmu/hw/9pfs/virtio-9p-device.o
  CC    m68k-softmmu/hw/block/virtio-blk.o
  CC    mips64-softmmu/xen-common-stub.o
  CC    cris-softmmu/hw/net/vhost_net.o
  CC    microblazeel-softmmu/hw/microblaze/petalogix_ml605_mmu.o
  CC    mips-softmmu/xen-common-stub.o
  CC    alpha-softmmu/hw/block/virtio-blk.o
  CC    aarch64-softmmu/xen-hvm-stub.o
  CC    mips64el-softmmu/xen-common-stub.o
  CC    mips64-softmmu/xen-hvm-stub.o
  CC    microblaze-softmmu/hw/microblaze/petalogix_s3adsp1800_mmu.o
  CC    mips-softmmu/xen-hvm-stub.o
  CC    lm32-softmmu/hw/misc/milkymist-pfpu.o
  CC    arm-softmmu/hw/block/virtio-blk.o
  CC    cris-softmmu/hw/cris/boot.o
  CC    aarch64-softmmu/hw/9pfs/virtio-9p-device.o
  CC    microblazeel-softmmu/hw/microblaze/boot.o
  CC    i386-softmmu/xen-common.o
  CC    mips64el-softmmu/xen-hvm-stub.o
  CC    mips64-softmmu/hw/9pfs/virtio-9p-device.o
  CC    mips-softmmu/hw/9pfs/virtio-9p-device.o
/mnt/sdb/fortify-vm/qemu/hw/cris/boot.c: In function ‘cris_load_image’:
/mnt/sdb/fortify-vm/qemu/hw/cris/boot.c:80: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/cris/boot.c:80: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/cris/boot.c:80: error: for each function it appears in.)
make[1]: *** [hw/cris/boot.o] Error 1
  CC    microblaze-softmmu/hw/microblaze/petalogix_ml605_mmu.o
  CC    cris-softmmu/hw/cris/axis_dev88.o
/mnt/sdb/fortify-vm/qemu/hw/microblaze/boot.c: In function ‘microblaze_load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/microblaze/boot.c:166: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/microblaze/boot.c:166: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/microblaze/boot.c:166: error: for each function it appears in.)
make[1]: *** [hw/microblaze/boot.o] Error 1
  CC    microblazeel-softmmu/target-microblaze/translate.o
  CC    m68k-softmmu/hw/block/dataplane/virtio-blk.o
  CC    alpha-softmmu/hw/block/dataplane/virtio-blk.o
  CC    aarch64-softmmu/hw/block/virtio-blk.o
  CC    lm32-softmmu/hw/net/milkymist-minimac2.o
  CC    mips64el-softmmu/hw/9pfs/virtio-9p-device.o
  CC    i386-softmmu/xen-hvm.o
  CC    mips64-softmmu/hw/block/virtio-blk.o
  CC    mips-softmmu/hw/block/virtio-blk.o
  CC    arm-softmmu/hw/block/dataplane/virtio-blk.o
  CC    microblaze-softmmu/hw/microblaze/boot.o
  CC    cris-softmmu/target-cris/translate.o
  CC    m68k-softmmu/hw/char/mcf_uart.o
  CC    alpha-softmmu/hw/char/virtio-serial-bus.o
  CC    lm32-softmmu/hw/net/vhost_net.o
  CC    mips64el-softmmu/hw/block/virtio-blk.o
/mnt/sdb/fortify-vm/qemu/hw/microblaze/boot.c: In function ‘microblaze_load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/microblaze/boot.c:166: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/microblaze/boot.c:166: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/microblaze/boot.c:166: error: for each function it appears in.)
make[1]: *** [hw/microblaze/boot.o] Error 1
  CC    microblaze-softmmu/target-microblaze/translate.o
/mnt/sdb/fortify-vm/qemu/xen-hvm.c: In function ‘xen_hvm_init’:
/mnt/sdb/fortify-vm/qemu/xen-hvm.c:1157: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/xen-hvm.c:1157: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/xen-hvm.c:1157: error: for each function it appears in.)
make[1]: *** [xen-hvm.o] Error 1
  CC    i386-softmmu/xen-mapcache.o
  CC    aarch64-softmmu/hw/block/dataplane/virtio-blk.o
  CC    m68k-softmmu/hw/char/virtio-serial-bus.o
  CC    arm-softmmu/hw/char/exynos4210_uart.o
  CC    lm32-softmmu/hw/sd/milkymist-memcard.o
  CC    mips64-softmmu/hw/block/dataplane/virtio-blk.o
  CC    mips-softmmu/hw/block/dataplane/virtio-blk.o
  CC    aarch64-softmmu/hw/char/exynos4210_uart.o
  CC    i386-softmmu/hw/9pfs/virtio-9p-device.o
  CC    alpha-softmmu/hw/display/vga.o
  CC    mips64el-softmmu/hw/block/dataplane/virtio-blk.o
  CC    arm-softmmu/hw/char/omap_uart.o
  CC    lm32-softmmu/hw/lm32/lm32_boards.o
  CC    mips64-softmmu/hw/char/virtio-serial-bus.o
  CC    mips-softmmu/hw/char/virtio-serial-bus.o
  CC    aarch64-softmmu/hw/char/omap_uart.o
  CC    m68k-softmmu/hw/misc/vfio.o
  CC    i386-softmmu/hw/block/virtio-blk.o
  CC    arm-softmmu/hw/char/digic-uart.o
  CC    mips64el-softmmu/hw/char/virtio-serial-bus.o
  CC    aarch64-softmmu/hw/char/digic-uart.o
  CC    lm32-softmmu/hw/lm32/milkymist.o
  CC    arm-softmmu/hw/char/virtio-serial-bus.o
  CC    aarch64-softmmu/hw/char/virtio-serial-bus.o
  CC    mips-softmmu/hw/display/vga.o
  CC    i386-softmmu/hw/block/dataplane/virtio-blk.o
  CC    mips64-softmmu/hw/display/vga.o
  CC    lm32-softmmu/target-lm32/translate.o
  CC    mips64el-softmmu/hw/display/vga.o
  CC    alpha-softmmu/hw/misc/vfio.o
  CC    i386-softmmu/hw/char/virtio-serial-bus.o
  CC    microblazeel-softmmu/target-microblaze/op_helper.o
  CC    arm-softmmu/hw/cpu/arm11mpcore.o
  CC    aarch64-softmmu/hw/cpu/arm11mpcore.o
  CC    m68k-softmmu/hw/net/mcf_fec.o
  CC    microblazeel-softmmu/target-microblaze/helper.o
  CC    microblaze-softmmu/target-microblaze/op_helper.o
  CC    arm-softmmu/hw/cpu/realview_mpcore.o
  CC    aarch64-softmmu/hw/cpu/realview_mpcore.o
  CC    mips64-softmmu/hw/misc/vfio.o
  CC    mips-softmmu/hw/misc/vfio.o
  CC    microblazeel-softmmu/target-microblaze/cpu.o
  CC    i386-softmmu/hw/cpu/icc_bus.o
  CC    m68k-softmmu/hw/net/virtio-net.o
  CC    arm-softmmu/hw/cpu/a9mpcore.o
  CC    aarch64-softmmu/hw/cpu/a9mpcore.o
  CC    mips64el-softmmu/hw/misc/vfio.o
  CC    microblaze-softmmu/target-microblaze/helper.o
  CC    microblazeel-softmmu/target-microblaze/gdbstub.o
  CC    i386-softmmu/hw/display/vga.o
  CC    arm-softmmu/hw/cpu/a15mpcore.o
  CC    alpha-softmmu/hw/net/virtio-net.o
  CC    lm32-softmmu/target-lm32/op_helper.o
  CC    aarch64-softmmu/hw/cpu/a15mpcore.o
  CC    microblazeel-softmmu/target-microblaze/mmu.o
  CC    microblaze-softmmu/target-microblaze/cpu.o
  CC    arm-softmmu/hw/display/omap_dss.o
  CC    cris-softmmu/target-cris/op_helper.o
  CC    lm32-softmmu/target-lm32/helper.o
  CC    aarch64-softmmu/hw/display/omap_dss.o
  GEN   trace/generated-helpers.c
  CC    microblaze-softmmu/target-microblaze/gdbstub.o
  CC    m68k-softmmu/hw/net/vhost_net.o
  CC    microblazeel-softmmu/trace/generated-helpers.o
  CC    cris-softmmu/target-cris/helper.o
  CC    arm-softmmu/hw/display/omap_lcdc.o
  CC    alpha-softmmu/hw/net/vhost_net.o
  CC    lm32-softmmu/target-lm32/cpu.o
  CC    mips64-softmmu/hw/net/virtio-net.o
  CC    microblaze-softmmu/target-microblaze/mmu.o
  CC    m68k-softmmu/hw/scsi/virtio-scsi.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-microblazeel-softmmu] Error 2
  CC    mips-softmmu/hw/net/virtio-net.o
  CC    aarch64-softmmu/hw/display/omap_lcdc.o
  CC    cris-softmmu/target-cris/cpu.o
  CC    i386-softmmu/hw/intc/apic.o
  CC    alpha-softmmu/hw/scsi/virtio-scsi.o
  GEN   trace/generated-helpers.c
  CC    lm32-softmmu/target-lm32/gdbstub.o
  CC    microblaze-softmmu/trace/generated-helpers.o
  CC    arm-softmmu/hw/display/pxa2xx_lcd.o
  CC    mips64el-softmmu/hw/net/virtio-net.o
  CC    cris-softmmu/target-cris/gdbstub.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-microblaze-softmmu] Error 2
  CC    aarch64-softmmu/hw/display/pxa2xx_lcd.o
  CC    m68k-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    lm32-softmmu/target-lm32/lm32-semi.o
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c: In function ‘pxa2xx_descriptor_load’:
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c:304: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c:304: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c:304: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c: In function ‘pxa2xx_update_display’:
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c:834: error: ‘ram_size’ undeclared (first use in this function)
  CC    aarch64-softmmu/hw/display/vga.o
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c: In function ‘pxa2xx_descriptor_load’:
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c:304: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c:304: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c:304: error: for each function it appears in.)
make[1]: *** [hw/display/pxa2xx_lcd.o] Error 1
  CC    arm-softmmu/hw/display/vga.o
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c: In function ‘pxa2xx_update_display’:
/mnt/sdb/fortify-vm/qemu/hw/display/pxa2xx_lcd.c:834: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/display/pxa2xx_lcd.o] Error 1
  CC    cris-softmmu/target-cris/mmu.o
  CC    arm-softmmu/hw/dma/omap_dma.o
  CC    alpha-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    mips64-softmmu/hw/net/vhost_net.o
  CC    i386-softmmu/hw/intc/apic_common.o
  GEN   mipsel-softmmu/hmp-commands.h
  CC    lm32-softmmu/target-lm32/machine.o
  CC    mips-softmmu/hw/net/vhost_net.o
  CC    m68k-softmmu/hw/scsi/vhost-scsi.o
  GEN   mipsel-softmmu/qmp-commands-old.h
  CC    cris-softmmu/target-cris/machine.o
/mnt/sdb/fortify-vm/qemu/hw/intc/apic_common.c: In function ‘apic_common_realize’:
/mnt/sdb/fortify-vm/qemu/hw/intc/apic_common.c:317: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/intc/apic_common.c:317: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/intc/apic_common.c:317: error: for each function it appears in.)
make[1]: *** [hw/intc/apic_common.o] Error 1
  CC    i386-softmmu/hw/intc/ioapic.o
  GEN   trace/generated-helpers.c
  CC    mips64-softmmu/hw/scsi/virtio-scsi.o
  GEN   mipsel-softmmu/config-target.h
  CC    mipsel-softmmu/exec.o
  CC    mips-softmmu/hw/scsi/virtio-scsi.o
  CC    lm32-softmmu/trace/generated-helpers.o
  CC    alpha-softmmu/hw/scsi/vhost-scsi.o
  CC    mips64el-softmmu/hw/net/vhost_net.o
  CC    m68k-softmmu/hw/virtio/virtio.o
  GEN   trace/generated-helpers.c
  CC    cris-softmmu/trace/generated-helpers.o
  CC    i386-softmmu/hw/isa/lpc_ich9.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-lm32-softmmu] Error 2
  CC    mips64el-softmmu/hw/scsi/virtio-scsi.o
  CC    alpha-softmmu/hw/timer/mc146818rtc.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-cris-softmmu] Error 2
  CC    mips64-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    mips-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    arm-softmmu/hw/dma/soc_dma.o
  CC    aarch64-softmmu/hw/dma/omap_dma.o
  CC    i386-softmmu/hw/misc/vmport.o
  CC    m68k-softmmu/hw/virtio/virtio-balloon.o
  GEN   moxie-softmmu/hmp-commands.h
  CC    arm-softmmu/hw/dma/pxa2xx_dma.o
/mnt/sdb/fortify-vm/qemu/hw/misc/vmport.c: In function ‘vmport_cmd_ram_size’:
/mnt/sdb/fortify-vm/qemu/hw/misc/vmport.c:112: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/misc/vmport.c:112: error: (Each undeclared identifier is reported only once
  GEN   or32-softmmu/hmp-commands.h
/mnt/sdb/fortify-vm/qemu/hw/misc/vmport.c:112: error: for each function it appears in.)
make[1]: *** [hw/misc/vmport.o] Error 1
  CC    i386-softmmu/hw/misc/ivshmem.o
  CC    mips64-softmmu/hw/scsi/vhost-scsi.o
  CC    alpha-softmmu/hw/virtio/virtio.o
  CC    mips64el-softmmu/hw/scsi/virtio-scsi-dataplane.o
  GEN   moxie-softmmu/qmp-commands-old.h
  CC    mips-softmmu/hw/scsi/vhost-scsi.o
  GEN   or32-softmmu/qmp-commands-old.h
  CC    mipsel-softmmu/translate-all.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    m68k-softmmu/hw/virtio/vhost.o
  GEN   moxie-softmmu/config-target.h
  CC    moxie-softmmu/exec.o
  CC    mips64-softmmu/hw/timer/mc146818rtc.o
  CC    mips64el-softmmu/hw/scsi/vhost-scsi.o
  GEN   ppc-softmmu/hmp-commands.h
  CC    arm-softmmu/hw/gpio/omap_gpio.o
  GEN   or32-softmmu/config-target.h
  CC    or32-softmmu/exec.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    mipsel-softmmu/cpu-exec.o
  CC    mips-softmmu/hw/timer/mc146818rtc.o
  CC    i386-softmmu/hw/misc/vfio.o
  GEN   ppc-softmmu/qmp-commands-old.h
  CC    aarch64-softmmu/hw/dma/soc_dma.o
  CC    mips64el-softmmu/hw/timer/mc146818rtc.o
  GEN   ppc-softmmu/config-target.h
  CC    ppc-softmmu/exec.o
  CC    alpha-softmmu/hw/virtio/virtio-balloon.o
  CC    arm-softmmu/hw/i2c/omap_i2c.o
  CC    m68k-softmmu/hw/virtio/vhost-backend.o
  CC    mipsel-softmmu/tcg/tcg.o
  CC    aarch64-softmmu/hw/dma/pxa2xx_dma.o
  CC    mips64-softmmu/hw/virtio/virtio.o
  CC    mips-softmmu/hw/virtio/virtio.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    alpha-softmmu/hw/virtio/vhost.o
  CC    m68k-softmmu/hw/virtio/vhost-user.o
  CC    arm-softmmu/hw/input/pxa2xx_keypad.o
  CC    mips64el-softmmu/hw/virtio/virtio.o
  CC    aarch64-softmmu/hw/gpio/omap_gpio.o
  CC    m68k-softmmu/hw/m68k/an5206.o
  CC    moxie-softmmu/translate-all.o
  CC    or32-softmmu/translate-all.o
  CC    arm-softmmu/hw/input/tsc210x.o
  CC    mips64-softmmu/hw/virtio/virtio-balloon.o
  CC    m68k-softmmu/hw/m68k/mcf5208.o
  CC    mips-softmmu/hw/virtio/virtio-balloon.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    moxie-softmmu/cpu-exec.o
  CC    alpha-softmmu/hw/virtio/vhost-backend.o
  CC    aarch64-softmmu/hw/i2c/omap_i2c.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
  CC    mips64-softmmu/hw/virtio/vhost.o
  CC    mips64el-softmmu/hw/virtio/virtio-balloon.o
make[1]: *** [translate-all.o] Error 1
  CC    or32-softmmu/cpu-exec.o
  CC    i386-softmmu/hw/misc/pvpanic.o
/mnt/sdb/fortify-vm/qemu/hw/m68k/mcf5208.c: In function ‘m5208_sys_read’:
/mnt/sdb/fortify-vm/qemu/hw/m68k/mcf5208.c:142: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/m68k/mcf5208.c:142: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/m68k/mcf5208.c:142: error: for each function it appears in.)
make[1]: *** [hw/m68k/mcf5208.o] Error 1
  CC    m68k-softmmu/hw/m68k/dummy_m68k.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    mips-softmmu/hw/virtio/vhost.o
  CC    alpha-softmmu/hw/virtio/vhost-user.o
  CC    ppc-softmmu/translate-all.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    mips64el-softmmu/hw/virtio/vhost.o
  CC    moxie-softmmu/tcg/tcg.o
  CC    arm-softmmu/hw/intc/armv7m_nvic.o
  CC    aarch64-softmmu/hw/input/pxa2xx_keypad.o
  CC    m68k-softmmu/hw/m68k/mcf5206.o
  CC    or32-softmmu/tcg/tcg.o
  CC    i386-softmmu/hw/net/virtio-net.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    ppc-softmmu/cpu-exec.o
  CC    alpha-softmmu/hw/alpha/dp264.o
/mnt/sdb/fortify-vm/qemu/hw/m68k/mcf5206.c: In function ‘m5206_mbar_read’:
/mnt/sdb/fortify-vm/qemu/hw/m68k/mcf5206.c:292: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/m68k/mcf5206.c:292: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/m68k/mcf5206.c:292: error: for each function it appears in.)
make[1]: *** [hw/m68k/mcf5206.o] Error 1
  CC    m68k-softmmu/hw/m68k/mcf_intc.o
  CC    mips64-softmmu/hw/virtio/vhost-backend.o
  CC    mips-softmmu/hw/virtio/vhost-backend.o
  CC    aarch64-softmmu/hw/input/tsc210x.o
  CC    arm-softmmu/hw/intc/exynos4210_gic.o
  CC    ppc-softmmu/tcg/tcg.o
  CC    alpha-softmmu/hw/alpha/pci.o
  CC    m68k-softmmu/target-m68k/m68k-semi.o
  CC    mips64-softmmu/hw/virtio/vhost-user.o
  CC    mipsel-softmmu/tcg/optimize.o
  CC    mips64el-softmmu/hw/virtio/vhost-backend.o
  CC    mips-softmmu/hw/virtio/vhost-user.o
  CC    alpha-softmmu/hw/alpha/typhoon.o
  CC    arm-softmmu/hw/intc/exynos4210_combiner.o
/mnt/sdb/fortify-vm/qemu/target-m68k/m68k-semi.c: In function ‘do_m68k_semihosting’:
/mnt/sdb/fortify-vm/qemu/target-m68k/m68k-semi.c:459: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-m68k/m68k-semi.c:459: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-m68k/m68k-semi.c:459: error: for each function it appears in.)
make[1]: *** [target-m68k/m68k-semi.o] Error 1
  CC    m68k-softmmu/target-m68k/translate.o
  CC    mips64el-softmmu/hw/virtio/vhost-user.o
  CC    i386-softmmu/hw/net/vhost_net.o
  CC    mips64-softmmu/hw/mips/mips_r4k.o
  CC    mips-softmmu/hw/mips/mips_r4k.o
  CC    aarch64-softmmu/hw/intc/armv7m_nvic.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: for each function it appears in.)
make[1]: *** [hw/mips/mips_r4k.o] Error 1
  CC    mips64-softmmu/hw/mips/mips_jazz.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: for each function it appears in.)
make[1]: *** [hw/mips/mips_r4k.o] Error 1
  CC    mips-softmmu/hw/mips/mips_jazz.o
  CC    arm-softmmu/hw/intc/omap_intc.o
  CC    mips64el-softmmu/hw/mips/mips_r4k.o
  CC    alpha-softmmu/target-alpha/machine.o
  CC    i386-softmmu/hw/scsi/virtio-scsi.o
  CC    alpha-softmmu/target-alpha/translate.o
  CC    mips64-softmmu/hw/mips/mips_malta.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: for each function it appears in.)
make[1]: *** [hw/mips/mips_r4k.o] Error 1
  CC    mips64el-softmmu/hw/mips/mips_jazz.o
  CC    aarch64-softmmu/hw/intc/exynos4210_gic.o
  CC    moxie-softmmu/tcg/optimize.o
  CC    or32-softmmu/tcg/optimize.o
  CC    mips-softmmu/hw/mips/mips_malta.o
  CC    mipsel-softmmu/fpu/softfloat.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: for each function it appears in.)
make[1]: *** [hw/mips/mips_malta.o] Error 1
  CC    mips64-softmmu/hw/mips/mips_mipssim.o
  CC    i386-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    arm-softmmu/hw/intc/allwinner-a10-pic.o
  CC    mips64el-softmmu/hw/mips/mips_malta.o
  CC    aarch64-softmmu/hw/intc/exynos4210_combiner.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: for each function it appears in.)
make[1]: *** [hw/mips/mips_malta.o] Error 1
  CC    mips-softmmu/hw/mips/mips_mipssim.o
  CC    mips64-softmmu/hw/mips/addr.o
  CC    arm-softmmu/hw/misc/vfio.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: for each function it appears in.)
make[1]: *** [hw/mips/mips_malta.o] Error 1
  CC    mips64el-softmmu/hw/mips/mips_mipssim.o
  CC    mips-softmmu/hw/mips/addr.o
  CC    i386-softmmu/hw/scsi/vhost-scsi.o
  CC    aarch64-softmmu/hw/intc/omap_intc.o
  CC    mips64-softmmu/hw/mips/cputimer.o
  CC    ppc-softmmu/tcg/optimize.o
  CC    or32-softmmu/fpu/softfloat.o
  CC    mips-softmmu/hw/mips/cputimer.o
  CC    moxie-softmmu/fpu/softfloat.o
  CC    mips64el-softmmu/hw/mips/addr.o
  CC    i386-softmmu/hw/timer/mc146818rtc.o
  CC    mips64-softmmu/hw/mips/mips_int.o
  CC    mips64el-softmmu/hw/mips/cputimer.o
  CC    mips-softmmu/hw/mips/mips_int.o
  CC    aarch64-softmmu/hw/intc/allwinner-a10-pic.o
  CC    mips64-softmmu/hw/mips/gt64xxx_pci.o
  CC    mips64el-softmmu/hw/mips/mips_int.o
  CC    mips-softmmu/hw/mips/gt64xxx_pci.o
  CC    mips64el-softmmu/hw/mips/mips_fulong2e.o
  CC    aarch64-softmmu/hw/misc/vfio.o
  CC    i386-softmmu/hw/virtio/virtio.o
  CC    arm-softmmu/hw/misc/arm_sysctl.o
  CC    mips64-softmmu/target-mips/translate.o
  CC    ppc-softmmu/fpu/softfloat.o
  CC    mips-softmmu/target-mips/translate.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_fulong2e.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_fulong2e.c:132: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_fulong2e.c:132: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_fulong2e.c:132: error: for each function it appears in.)
make[1]: *** [hw/mips/mips_fulong2e.o] Error 1
  CC    mips64el-softmmu/hw/mips/gt64xxx_pci.o
  CC    m68k-softmmu/target-m68k/op_helper.o
  CC    arm-softmmu/hw/misc/cbus.o
  CC    alpha-softmmu/target-alpha/helper.o
  CC    arm-softmmu/hw/misc/exynos4210_pmu.o
  CC    m68k-softmmu/target-m68k/helper.o
  CC    mips64el-softmmu/target-mips/translate.o
  CC    i386-softmmu/hw/virtio/virtio-balloon.o
  CC    arm-softmmu/hw/misc/imx_ccm.o
  CC    alpha-softmmu/target-alpha/cpu.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    i386-softmmu/hw/virtio/vhost.o
  CC    arm-softmmu/hw/misc/mst_fpga.o
  CC    m68k-softmmu/target-m68k/cpu.o
  CC    mipsel-softmmu/disas.o
  CC    alpha-softmmu/target-alpha/int_helper.o
  CC    aarch64-softmmu/hw/misc/arm_sysctl.o
  CC    m68k-softmmu/target-m68k/gdbstub.o
  CC    arm-softmmu/hw/misc/omap_clk.o
  CC    mipsel-softmmu/kvm-stub.o
  CC    alpha-softmmu/target-alpha/fpu_helper.o
  CC    aarch64-softmmu/hw/misc/cbus.o
  CC    i386-softmmu/hw/virtio/vhost-backend.o
  GEN   trace/generated-helpers.c
  CC    m68k-softmmu/gdbstub-xml.o
  CC    mipsel-softmmu/arch_init.o
  CC    arm-softmmu/hw/misc/omap_gpmc.o
  CC    i386-softmmu/hw/virtio/vhost-user.o
  CC    aarch64-softmmu/hw/misc/exynos4210_pmu.o
  CC    m68k-softmmu/trace/generated-helpers.o
  CC    alpha-softmmu/target-alpha/sys_helper.o
  CC    i386-softmmu/hw/xen/xen-host-pci-device.o
  CC    moxie-softmmu/disas.o
  CC    arm-softmmu/hw/misc/omap_l4.o
  CC    alpha-softmmu/target-alpha/mem_helper.o
  CC    aarch64-softmmu/hw/misc/imx_ccm.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-m68k-softmmu] Error 2
  CC    alpha-softmmu/target-alpha/gdbstub.o
  CC    mipsel-softmmu/cpus.o
  CC    or32-softmmu/disas.o
  CC    arm-softmmu/hw/misc/omap_sdrc.o
  CC    arm-softmmu/hw/misc/omap_tap.o
  GEN   trace/generated-helpers.c
  CC    moxie-softmmu/kvm-stub.o
  CC    i386-softmmu/hw/xen/xen_pt.o
  CC    aarch64-softmmu/hw/misc/mst_fpga.o
  CC    alpha-softmmu/trace/generated-helpers.o
  CC    or32-softmmu/kvm-stub.o
  CC    arm-softmmu/hw/misc/zynq_slcr.o
  CC    mipsel-softmmu/monitor.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-alpha-softmmu] Error 2
  CC    aarch64-softmmu/hw/misc/omap_clk.o
  CC    moxie-softmmu/arch_init.o
  CC    or32-softmmu/arch_init.o
  CC    ppc-softmmu/disas.o
  CC    i386-softmmu/hw/xen/xen_pt_config_init.o
  CC    arm-softmmu/hw/net/virtio-net.o
  CC    aarch64-softmmu/hw/misc/omap_gpmc.o
  GEN   ppc-softmmu/gdbstub-xml.c
  CC    ppc-softmmu/kvm-stub.o
  CC    or32-softmmu/cpus.o
  GEN   ppcemb-softmmu/hmp-commands.h
  CC    i386-softmmu/hw/xen/xen_pt_msi.o
  CC    moxie-softmmu/cpus.o
  GEN   ppcemb-softmmu/qmp-commands-old.h
  GEN   ppc64-softmmu/hmp-commands.h
  CC    aarch64-softmmu/hw/misc/omap_l4.o
  CC    ppc-softmmu/libdecnumber/decContext.o
  GEN   ppc64-softmmu/qmp-commands-old.h
  CC    arm-softmmu/hw/net/vhost_net.o
  GEN   ppcemb-softmmu/config-target.h
  CC    ppcemb-softmmu/exec.o
  CC    ppc-softmmu/libdecnumber/decNumber.o
  CC    i386-softmmu/hw/i386/multiboot.o
  CC    aarch64-softmmu/hw/misc/omap_sdrc.o
  GEN   ppc64-softmmu/config-target.h
  CC    ppc64-softmmu/exec.o
  CC    arm-softmmu/hw/pcmcia/pxa2xx.o
  CC    moxie-softmmu/monitor.o
  CC    or32-softmmu/monitor.o
  CC    aarch64-softmmu/hw/misc/omap_tap.o
  CC    mipsel-softmmu/gdbstub.o
  CC    i386-softmmu/hw/i386/smbios.o
  CC    aarch64-softmmu/hw/misc/zynq_slcr.o
  CC    arm-softmmu/hw/scsi/virtio-scsi.o
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c: In function ‘smbios_build_type_16_table’:
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c:655: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c:655: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c:655: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c: In function ‘smbios_get_tables’:
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c:855: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/i386/smbios.o] Error 1
  CC    i386-softmmu/hw/i386/pc.o
  CC    aarch64-softmmu/hw/net/virtio-net.o
/mnt/sdb/fortify-vm/qemu/hw/i386/pc.c: In function ‘bochs_bios_init’:
/mnt/sdb/fortify-vm/qemu/hw/i386/pc.c:667: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/i386/pc.c:667: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/i386/pc.c:667: error: for each function it appears in.)
make[1]: *** [hw/i386/pc.o] Error 1
  CC    i386-softmmu/hw/i386/pc_piix.o
  CC    arm-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    ppcemb-softmmu/translate-all.o
  CC    mipsel-softmmu/balloon.o
  CC    ppc64-softmmu/translate-all.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    ppcemb-softmmu/cpu-exec.o
  CC    arm-softmmu/hw/scsi/vhost-scsi.o
  CC    mipsel-softmmu/ioport.o
  CC    i386-softmmu/hw/i386/pc_q35.o
  CC    ppc-softmmu/libdecnumber/dpd/decimal32.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    ppc64-softmmu/cpu-exec.o
  CC    ppc-softmmu/libdecnumber/dpd/decimal64.o
  CC    arm-softmmu/hw/sd/omap_mmc.o
  CC    ppcemb-softmmu/tcg/tcg.o
  CC    mipsel-softmmu/numa.o
  CC    aarch64-softmmu/hw/net/vhost_net.o
  CC    moxie-softmmu/gdbstub.o
  CC    ppc-softmmu/libdecnumber/dpd/decimal128.o
  CC    or32-softmmu/gdbstub.o
  CC    i386-softmmu/hw/i386/pc_sysfw.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    mipsel-softmmu/qtest.o
  CC    aarch64-softmmu/hw/pcmcia/pxa2xx.o
  CC    ppc-softmmu/arch_init.o
  CC    ppc64-softmmu/tcg/tcg.o
  CC    arm-softmmu/hw/sd/pxa2xx_mmci.o
  CC    i386-softmmu/hw/i386/intel_iommu.o
  CC    mipsel-softmmu/bootdevice.o
  CC    aarch64-softmmu/hw/scsi/virtio-scsi.o
  CC    moxie-softmmu/balloon.o
  CC    arm-softmmu/hw/ssi/omap_spi.o
  CC    or32-softmmu/balloon.o
  CC    mipsel-softmmu/device_tree.o
  CC    ppc-softmmu/cpus.o
  CC    moxie-softmmu/ioport.o
  CC    i386-softmmu/hw/i386/kvmvapic.o
  CC    or32-softmmu/ioport.o
  CC    arm-softmmu/hw/timer/exynos4210_mct.o
  CC    aarch64-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    mipsel-softmmu/memory.o
  CC    moxie-softmmu/numa.o
  CPP i386-softmmu/acpi-dsdt.dsl.i.orig
  ACPI_PREPROCESS i386-softmmu/acpi-dsdt.dsl.i
  IASL i386-softmmu/acpi-dsdt.dsl.i
  CC    or32-softmmu/numa.o
  ACPI_EXTRACT i386-softmmu/acpi-dsdt.off
  CC    aarch64-softmmu/hw/scsi/vhost-scsi.o
  CAT i386-softmmu/hw/i386/acpi-dsdt.hex
  CPP i386-softmmu/ssdt-proc.dsl.i.orig
  CC    ppc-softmmu/monitor.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    moxie-softmmu/qtest.o
  ACPI_PREPROCESS i386-softmmu/ssdt-proc.dsl.i
  IASL i386-softmmu/ssdt-proc.dsl.i
  ACPI_EXTRACT i386-softmmu/ssdt-proc.off
  CAT i386-softmmu/hw/i386/ssdt-proc.hex
  CPP i386-softmmu/ssdt-pcihp.dsl.i.orig
  CC    arm-softmmu/hw/timer/exynos4210_pwm.o
  ACPI_PREPROCESS i386-softmmu/ssdt-pcihp.dsl.i
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    or32-softmmu/qtest.o
  IASL i386-softmmu/ssdt-pcihp.dsl.i
  ACPI_EXTRACT i386-softmmu/ssdt-pcihp.off
  CAT i386-softmmu/hw/i386/ssdt-pcihp.hex
  CPP i386-softmmu/ssdt-misc.dsl.i.orig
  ACPI_PREPROCESS i386-softmmu/ssdt-misc.dsl.i
  IASL i386-softmmu/ssdt-misc.dsl.i
  CC    ppcemb-softmmu/tcg/optimize.o
  ACPI_EXTRACT i386-softmmu/ssdt-misc.off
  CAT i386-softmmu/hw/i386/ssdt-misc.hex
  CPP i386-softmmu/q35-acpi-dsdt.dsl.i.orig
  ACPI_PREPROCESS i386-softmmu/q35-acpi-dsdt.dsl.i
  IASL i386-softmmu/q35-acpi-dsdt.dsl.i
  ACPI_EXTRACT i386-softmmu/q35-acpi-dsdt.off
  CC    aarch64-softmmu/hw/sd/omap_mmc.o
  CC    ppc64-softmmu/tcg/optimize.o
  CC    arm-softmmu/hw/timer/exynos4210_rtc.o
  CAT i386-softmmu/hw/i386/q35-acpi-dsdt.hex
  CPP i386-softmmu/ssdt-mem.dsl.i.orig
  ACPI_PREPROCESS i386-softmmu/ssdt-mem.dsl.i
  IASL i386-softmmu/ssdt-mem.dsl.i
  ACPI_EXTRACT i386-softmmu/ssdt-mem.off
  CC    moxie-softmmu/bootdevice.o
  CAT i386-softmmu/hw/i386/ssdt-mem.hex
  CPP i386-softmmu/ssdt-tpm.dsl.i.orig
  ACPI_PREPROCESS i386-softmmu/ssdt-tpm.dsl.i
  IASL i386-softmmu/ssdt-tpm.dsl.i
  ACPI_EXTRACT i386-softmmu/ssdt-tpm.off
  CAT i386-softmmu/hw/i386/ssdt-tpm.hex
  CC    i386-softmmu/hw/i386/bios-linker-loader.o
  CC    or32-softmmu/bootdevice.o
  CC    aarch64-softmmu/hw/sd/pxa2xx_mmci.o
  CC    mipsel-softmmu/savevm.o
  CC    moxie-softmmu/device_tree.o
  CC    arm-softmmu/hw/timer/omap_gptimer.o
  CC    i386-softmmu/hw/i386/../xenpv/xen_domainbuild.o
  CC    or32-softmmu/device_tree.o
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c: In function ‘xenstore_domain_init1’:
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c:82: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c:82: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c:82: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c: In function ‘xen_domain_build_pv’:
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c:264: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/i386/../xenpv/xen_domainbuild.o] Error 1
  CC    i386-softmmu/hw/i386/../xenpv/xen_machine_pv.o
  CC    aarch64-softmmu/hw/ssi/omap_spi.o
  CC    moxie-softmmu/memory.o
  CC    ppcemb-softmmu/fpu/softfloat.o
  CC    or32-softmmu/memory.o
  CC    ppc64-softmmu/fpu/softfloat.o
  CC    arm-softmmu/hw/timer/omap_synctimer.o
  CC    mipsel-softmmu/cputlb.o
  CC    arm-softmmu/hw/timer/pxa2xx_timer.o
  CC    i386-softmmu/hw/i386/kvm/clock.o
  CC    aarch64-softmmu/hw/timer/exynos4210_mct.o
  CC    ppc-softmmu/gdbstub.o
  CC    i386-softmmu/hw/i386/kvm/apic.o
  CC    arm-softmmu/hw/timer/tusb6010.o
  CC    aarch64-softmmu/hw/timer/exynos4210_pwm.o
  CC    i386-softmmu/hw/i386/kvm/i8259.o
  CC    or32-softmmu/savevm.o
  CC    moxie-softmmu/savevm.o
  CC    ppc-softmmu/balloon.o
  CC    aarch64-softmmu/hw/timer/exynos4210_rtc.o
  CC    arm-softmmu/hw/timer/digic-timer.o
  CC    i386-softmmu/hw/i386/kvm/ioapic.o
  CC    mipsel-softmmu/memory_mapping.o
  CC    ppc-softmmu/ioport.o
  CC    arm-softmmu/hw/timer/allwinner-a10-pit.o
  CC    aarch64-softmmu/hw/timer/omap_gptimer.o
  CC    mipsel-softmmu/dump.o
  CC    or32-softmmu/cputlb.o
  CC    i386-softmmu/hw/i386/kvm/i8254.o
  CC    moxie-softmmu/cputlb.o
  CC    arm-softmmu/hw/virtio/virtio.o
  CC    ppc-softmmu/numa.o
  CC    i386-softmmu/hw/i386/kvm/pci-assign.o
  CC    aarch64-softmmu/hw/timer/omap_synctimer.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    ppc-softmmu/qtest.o
  CC    aarch64-softmmu/hw/timer/pxa2xx_timer.o
  CC    mipsel-softmmu/xen-common-stub.o
  CC    arm-softmmu/hw/virtio/virtio-balloon.o
  CC    ppc-softmmu/bootdevice.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    arm-softmmu/hw/virtio/vhost.o
  CC    mipsel-softmmu/xen-hvm-stub.o
  CC    moxie-softmmu/memory_mapping.o
  CC    or32-softmmu/memory_mapping.o
  CC    aarch64-softmmu/hw/timer/tusb6010.o
  CC    i386-softmmu/hw/i386/xen/xen_platform.o
  CC    mipsel-softmmu/hw/9pfs/virtio-9p-device.o
  CC    ppc-softmmu/device_tree.o
  CC    ppcemb-softmmu/disas.o
  CC    or32-softmmu/dump.o
  CC    moxie-softmmu/dump.o
  CC    ppc64-softmmu/disas.o
  CC    aarch64-softmmu/hw/timer/digic-timer.o
  CC    arm-softmmu/hw/virtio/vhost-backend.o
  CC    i386-softmmu/hw/i386/xen/xen_apic.o
  CC    ppc-softmmu/memory.o
  CC    mipsel-softmmu/hw/block/virtio-blk.o
  GEN   ppcemb-softmmu/gdbstub-xml.c
  CC    aarch64-softmmu/hw/timer/allwinner-a10-pit.o
  CC    ppcemb-softmmu/kvm-stub.o
  CC    arm-softmmu/hw/virtio/vhost-user.o
  CC    i386-softmmu/hw/i386/xen/xen_pvdevice.o
  GEN   ppc64-softmmu/gdbstub-xml.c
  CC    ppc64-softmmu/kvm-stub.o
  CC    or32-softmmu/xen-common-stub.o
  CC    moxie-softmmu/xen-common-stub.o
  CC    ppcemb-softmmu/libdecnumber/decContext.o
  CC    aarch64-softmmu/hw/virtio/virtio.o
  CC    arm-softmmu/hw/arm/boot.o
  CC    i386-softmmu/target-i386/translate.o
  CC    mipsel-softmmu/hw/block/dataplane/virtio-blk.o
  CC    ppc64-softmmu/libdecnumber/decContext.o
  CC    ppcemb-softmmu/libdecnumber/decNumber.o
  CC    or32-softmmu/xen-hvm-stub.o
  CC    moxie-softmmu/xen-hvm-stub.o
  CC    ppc64-softmmu/libdecnumber/decNumber.o
  CC    arm-softmmu/hw/arm/collie.o
  CC    mipsel-softmmu/hw/char/virtio-serial-bus.o
  CC    or32-softmmu/hw/net/vhost_net.o
  CC    moxie-softmmu/hw/display/vga.o
  CC    ppc-softmmu/savevm.o
  CC    arm-softmmu/hw/arm/exynos4_boards.o
  CC    or32-softmmu/hw/openrisc/pic_cpu.o
  CC    aarch64-softmmu/hw/virtio/virtio-balloon.o
  CC    or32-softmmu/hw/openrisc/cputimer.o
  CC    arm-softmmu/hw/arm/gumstix.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    aarch64-softmmu/hw/virtio/vhost.o
  CC    mipsel-softmmu/hw/display/vga.o
  CC    ppc-softmmu/cputlb.o
  CC    or32-softmmu/hw/openrisc/openrisc_sim.o
  CC    arm-softmmu/hw/arm/highbank.o
  CC    or32-softmmu/target-openrisc/machine.o
  CC    moxie-softmmu/hw/net/vhost_net.o
  CC    arm-softmmu/hw/arm/digic_boards.o
  CC    aarch64-softmmu/hw/virtio/vhost-backend.o
  CC    or32-softmmu/target-openrisc/cpu.o
  CC    moxie-softmmu/hw/timer/mc146818rtc.o
  CC    aarch64-softmmu/hw/virtio/vhost-user.o
  CC    arm-softmmu/hw/arm/integratorcp.o
  CC    or32-softmmu/target-openrisc/exception.o
  CC    ppcemb-softmmu/libdecnumber/dpd/decimal32.o
  CC    ppc64-softmmu/libdecnumber/dpd/decimal32.o
  CC    or32-softmmu/target-openrisc/interrupt.o
  CC    ppcemb-softmmu/libdecnumber/dpd/decimal64.o
  CC    mipsel-softmmu/hw/misc/vfio.o
  CC    ppc64-softmmu/libdecnumber/dpd/decimal64.o
  CC    aarch64-softmmu/hw/arm/boot.o
  CC    moxie-softmmu/hw/moxie/moxiesim.o
  CC    ppc-softmmu/memory_mapping.o
  CC    arm-softmmu/hw/arm/kzm.o
  CC    or32-softmmu/target-openrisc/mmu.o
  CC    ppcemb-softmmu/libdecnumber/dpd/decimal128.o
/mnt/sdb/fortify-vm/qemu/hw/moxie/moxiesim.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/moxie/moxiesim.c:80: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/moxie/moxiesim.c:80: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/moxie/moxiesim.c:80: error: for each function it appears in.)
make[1]: *** [hw/moxie/moxiesim.o] Error 1
  CC    moxie-softmmu/target-moxie/translate.o
  CC    ppc64-softmmu/libdecnumber/dpd/decimal128.o
  CC    ppcemb-softmmu/arch_init.o
  CC    ppc-softmmu/dump.o
  CC    arm-softmmu/hw/arm/mainstone.o
  CC    aarch64-softmmu/hw/arm/collie.o
  CC    or32-softmmu/target-openrisc/translate.o
  CC    ppc64-softmmu/arch_init.o
  CC    aarch64-softmmu/hw/arm/exynos4_boards.o
  CC    arm-softmmu/hw/arm/musicpal.o
  CC    aarch64-softmmu/hw/arm/gumstix.o
  CC    ppcemb-softmmu/cpus.o
  CC    ppc-softmmu/xen-common-stub.o
  CC    mipsel-softmmu/hw/net/virtio-net.o
  CC    ppc64-softmmu/cpus.o
  CC    aarch64-softmmu/hw/arm/highbank.o
  CC    ppc-softmmu/xen-hvm-stub.o
  CC    arm-softmmu/hw/arm/nseries.o
  CC    ppc-softmmu/hw/9pfs/virtio-9p-device.o
  CC    moxie-softmmu/target-moxie/helper.o
  CC    aarch64-softmmu/hw/arm/digic_boards.o
  CC    ppcemb-softmmu/monitor.o
  CC    ppc64-softmmu/monitor.o
  CC    ppc-softmmu/hw/block/virtio-blk.o
  CC    moxie-softmmu/target-moxie/machine.o
  CC    aarch64-softmmu/hw/arm/integratorcp.o
  CC    mipsel-softmmu/hw/net/vhost_net.o
  CC    arm-softmmu/hw/arm/omap_sx1.o
  CC    or32-softmmu/target-openrisc/exception_helper.o
  CC    moxie-softmmu/target-moxie/cpu.o
  CC    mipsel-softmmu/hw/scsi/virtio-scsi.o
  CC    or32-softmmu/target-openrisc/fpu_helper.o
  CC    arm-softmmu/hw/arm/palm.o
  CC    aarch64-softmmu/hw/arm/kzm.o
  CC    ppc-softmmu/hw/block/dataplane/virtio-blk.o
  CC    moxie-softmmu/target-moxie/mmu.o
  CC    aarch64-softmmu/hw/arm/mainstone.o
  CC    arm-softmmu/hw/arm/realview.o
  GEN   trace/generated-helpers.c
  CC    mipsel-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    or32-softmmu/target-openrisc/int_helper.o
  CC    moxie-softmmu/trace/generated-helpers.o
  CC    ppc-softmmu/hw/char/virtio-serial-bus.o
  CC    aarch64-softmmu/hw/arm/musicpal.o
  CC    or32-softmmu/target-openrisc/interrupt_helper.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-moxie-softmmu] Error 2
  CC    ppcemb-softmmu/gdbstub.o
  CC    arm-softmmu/hw/arm/spitz.o
  CC    mipsel-softmmu/hw/scsi/vhost-scsi.o
  CC    or32-softmmu/target-openrisc/mmu_helper.o
  CC    ppcemb-softmmu/balloon.o
  CC    or32-softmmu/target-openrisc/sys_helper.o
  CC    mipsel-softmmu/hw/timer/mc146818rtc.o
  CC    ppc-softmmu/hw/display/vga.o
  CC    ppc64-softmmu/gdbstub.o
  CC    arm-softmmu/hw/arm/stellaris.o
  CC    aarch64-softmmu/hw/arm/nseries.o
  CC    or32-softmmu/target-openrisc/gdbstub.o
  CC    ppcemb-softmmu/ioport.o
  GEN   trace/generated-helpers.c
  CC    or32-softmmu/trace/generated-helpers.o
  GEN   s390x-softmmu/hmp-commands.h
  CC    ppcemb-softmmu/numa.o
  CC    mipsel-softmmu/hw/virtio/virtio.o
  GEN   s390x-softmmu/qmp-commands-old.h
  CC    arm-softmmu/hw/arm/tosa.o
  CC    ppc64-softmmu/balloon.o
  CC    aarch64-softmmu/hw/arm/omap_sx1.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-or32-softmmu] Error 2
  CC    aarch64-softmmu/hw/arm/palm.o
  GEN   s390x-softmmu/config-target.h
  CC    s390x-softmmu/exec.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    ppcemb-softmmu/qtest.o
  CC    arm-softmmu/hw/arm/versatilepb.o
  CC    arm-softmmu/hw/arm/vexpress.o
  CC    ppc-softmmu/hw/misc/vfio.o
  CC    ppc64-softmmu/ioport.o
  CC    aarch64-softmmu/hw/arm/realview.o
  CC    ppcemb-softmmu/bootdevice.o
  CC    mipsel-softmmu/hw/virtio/virtio-balloon.o
  CC    arm-softmmu/hw/arm/virt.o
  CC    ppc64-softmmu/numa.o
  CC    ppc64-softmmu/qtest.o
  CC    aarch64-softmmu/hw/arm/spitz.o
  CC    ppcemb-softmmu/device_tree.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    mipsel-softmmu/hw/virtio/vhost.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    ppc64-softmmu/bootdevice.o
  CC    arm-softmmu/hw/arm/xilinx_zynq.o
  CC    ppcemb-softmmu/memory.o
  CC    ppcemb-softmmu/savevm.o
  CC    s390x-softmmu/translate-all.o
  CC    ppc64-softmmu/device_tree.o
  CC    arm-softmmu/hw/arm/z2.o
  CC    aarch64-softmmu/hw/arm/stellaris.o
  CC    ppc-softmmu/hw/net/xilinx_ethlite.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    s390x-softmmu/cpu-exec.o
  CC    mipsel-softmmu/hw/virtio/vhost-backend.o
  CC    ppc64-softmmu/memory.o
  CC    arm-softmmu/hw/arm/armv7m.o
  CC    mipsel-softmmu/hw/virtio/vhost-user.o
  CC    ppc-softmmu/hw/net/virtio-net.o
  CC    mipsel-softmmu/hw/mips/mips_r4k.o
  CC    s390x-softmmu/tcg/tcg.o
  CC    aarch64-softmmu/hw/arm/tosa.o
  CC    arm-softmmu/hw/arm/exynos4210.o
  CC    arm-softmmu/hw/arm/pxa2xx.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_r4k.c:107: error: for each function it appears in.)
make[1]: *** [hw/mips/mips_r4k.o] Error 1
  CC    mipsel-softmmu/hw/mips/mips_jazz.o
  CC    aarch64-softmmu/hw/arm/versatilepb.o
  CC    i386-softmmu/target-i386/helper.o
  CC    ppcemb-softmmu/cputlb.o
  CC    mipsel-softmmu/hw/mips/mips_malta.o
  CC    ppc-softmmu/hw/net/vhost_net.o
  CC    aarch64-softmmu/hw/arm/vexpress.o
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c: In function ‘load_kernel’:
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/mips/mips_malta.c:823: error: for each function it appears in.)
  CC    ppc64-softmmu/savevm.o
make[1]: *** [hw/mips/mips_malta.o] Error 1
  CC    mipsel-softmmu/hw/mips/mips_mipssim.o
  CC    ppc-softmmu/hw/net/fsl_etsec/etsec.o
  CC    mipsel-softmmu/hw/mips/addr.o
  CC    mipsel-softmmu/hw/mips/cputimer.o
  CC    i386-softmmu/target-i386/cpu.o
  CC    aarch64-softmmu/hw/arm/virt.o
  CC    ppc-softmmu/hw/net/fsl_etsec/registers.o
  CC    arm-softmmu/hw/arm/pxa2xx_gpio.o
  CC    ppc-softmmu/hw/net/fsl_etsec/rings.o
  CC    mipsel-softmmu/hw/mips/mips_int.o
  CC    ppc64-softmmu/cputlb.o
  CC    aarch64-softmmu/hw/arm/xilinx_zynq.o
  CC    arm-softmmu/hw/arm/pxa2xx_pic.o
  CC    ppcemb-softmmu/memory_mapping.o
  CC    mipsel-softmmu/hw/mips/gt64xxx_pci.o
  CC    s390x-softmmu/tcg/optimize.o
  CC    ppc-softmmu/hw/net/fsl_etsec/miim.o
  CC    arm-softmmu/hw/arm/digic.o
  CC    aarch64-softmmu/hw/arm/z2.o
  CC    ppcemb-softmmu/dump.o
  CC    ppc-softmmu/hw/scsi/virtio-scsi.o
  CC    ppc-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    mips-softmmu/target-mips/dsp_helper.o
  CC    mipsel-softmmu/target-mips/translate.o
  CC    arm-softmmu/hw/arm/omap1.o
  CC    aarch64-softmmu/hw/arm/armv7m.o
  CC    ppc64-softmmu/memory_mapping.o
  CC    ppc64-softmmu/dump.o
  CC    s390x-softmmu/fpu/softfloat.o
  CC    ppcemb-softmmu/xen-common-stub.o
  CC    aarch64-softmmu/hw/arm/exynos4210.o
  CC    aarch64-softmmu/hw/arm/pxa2xx.o
  CC    ppc-softmmu/hw/scsi/vhost-scsi.o
  CC    ppcemb-softmmu/xen-hvm-stub.o
  CC    ppc64-softmmu/xen-common-stub.o
  CC    mips64-softmmu/target-mips/dsp_helper.o
  CC    ppcemb-softmmu/hw/9pfs/virtio-9p-device.o
  CC    ppc-softmmu/hw/timer/mc146818rtc.o
  CC    ppc64-softmmu/xen-hvm-stub.o
  CC    mips-softmmu/target-mips/op_helper.o
  CC    ppcemb-softmmu/hw/block/virtio-blk.o
  CC    ppc64-softmmu/hw/9pfs/virtio-9p-device.o
  CC    arm-softmmu/hw/arm/omap2.o
  CC    ppc-softmmu/hw/virtio/virtio.o
  CC    ppcemb-softmmu/hw/block/dataplane/virtio-blk.o
  CC    ppc64-softmmu/hw/block/virtio-blk.o
  CC    aarch64-softmmu/hw/arm/pxa2xx_gpio.o
  CC    ppcemb-softmmu/hw/char/virtio-serial-bus.o
  CC    aarch64-softmmu/hw/arm/pxa2xx_pic.o
  CC    ppc64-softmmu/hw/block/dataplane/virtio-blk.o
  CC    ppc-softmmu/hw/virtio/virtio-balloon.o
  CC    arm-softmmu/hw/arm/strongarm.o
  CC    aarch64-softmmu/hw/arm/digic.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    ppc-softmmu/hw/virtio/vhost.o
  CC    ppc64-softmmu/hw/char/spapr_vty.o
  CC    aarch64-softmmu/hw/arm/omap1.o
  CC    ppcemb-softmmu/hw/display/vga.o
  CC    ppc64-softmmu/hw/char/virtio-serial-bus.o
  CC    mips-softmmu/target-mips/lmi_helper.o
  CC    arm-softmmu/hw/arm/allwinner-a10.o
  CC    ppc-softmmu/hw/virtio/vhost-backend.o
  CC    i386-softmmu/target-i386/excp_helper.o
  CC    ppc-softmmu/hw/virtio/vhost-user.o
  CC    arm-softmmu/hw/arm/cubieboard.o
  GEN   s390x-softmmu/gdbstub-xml.c
  CC    s390x-softmmu/disas.o
  CC    ppc64-softmmu/hw/display/vga.o
  CC    i386-softmmu/target-i386/fpu_helper.o
  CC    s390x-softmmu/kvm-stub.o
  CC    arm-softmmu/target-arm/arm-semi.o
  CC    ppc-softmmu/hw/ppc/ppc.o
  CC    s390x-softmmu/arch_init.o
  CC    ppcemb-softmmu/hw/misc/vfio.o
  CC    ppcemb-softmmu/hw/net/xilinx_ethlite.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc.c:35:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/target-arm/arm-semi.c: In function ‘do_arm_semihosting’:
/mnt/sdb/fortify-vm/qemu/target-arm/arm-semi.c:538: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-arm/arm-semi.c:538: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-arm/arm-semi.c:538: error: for each function it appears in.)
make[1]: *** [target-arm/arm-semi.o] Error 1
  CC    arm-softmmu/target-arm/machine.o
make[1]: *** [hw/ppc/ppc.o] Error 1
  CC    ppc-softmmu/hw/ppc/ppc_booke.o
  CC    aarch64-softmmu/hw/arm/omap2.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc_booke.c:31:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/ppc_booke.o] Error 1
  CC    ppc-softmmu/hw/ppc/ppc405_boards.o
  CC    ppcemb-softmmu/hw/net/virtio-net.o
  CC    arm-softmmu/target-arm/kvm-stub.o
  CC    s390x-softmmu/cpus.o
  CC    ppc-softmmu/hw/ppc/ppc4xx_devs.o
  CC    arm-softmmu/target-arm/translate.o
  CC    ppc64-softmmu/hw/intc/xics.o
  CC    aarch64-softmmu/hw/arm/strongarm.o
  CC    ppc-softmmu/hw/ppc/ppc405_uc.o
  CC    ppcemb-softmmu/hw/net/vhost_net.o
  CC    s390x-softmmu/monitor.o
  CC    mips-softmmu/target-mips/helper.o
  CC    ppcemb-softmmu/hw/scsi/virtio-scsi.o
  CC    ppc64-softmmu/hw/misc/vfio.o
  CC    ppcemb-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    aarch64-softmmu/hw/arm/allwinner-a10.o
  CC    ppc-softmmu/hw/ppc/ppc440_bamboo.o
  CC    mips-softmmu/target-mips/cpu.o
  CC    mips-softmmu/target-mips/gdbstub.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc440_bamboo.c:21:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
  CC    aarch64-softmmu/hw/arm/cubieboard.o
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/ppc440_bamboo.o] Error 1
  CC    ppc-softmmu/hw/ppc/ppc4xx_pci.o
  CC    ppcemb-softmmu/hw/scsi/vhost-scsi.o
  CC    s390x-softmmu/gdbstub.o
  CC    mips-softmmu/target-mips/msa_helper.o
  CC    ppc-softmmu/hw/ppc/prep.o
  CC    aarch64-softmmu/target-arm/arm-semi.o
/mnt/sdb/fortify-vm/qemu/target-arm/arm-semi.c: In function ‘do_arm_semihosting’:
/mnt/sdb/fortify-vm/qemu/target-arm/arm-semi.c:538: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-arm/arm-semi.c:538: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-arm/arm-semi.c:538: error: for each function it appears in.)
make[1]: *** [target-arm/arm-semi.o] Error 1
  CC    aarch64-softmmu/target-arm/machine.o
  CC    ppcemb-softmmu/hw/virtio/virtio.o
  CC    ppc-softmmu/hw/ppc/mac_oldworld.o
  CC    aarch64-softmmu/target-arm/kvm-stub.o
  CC    ppc64-softmmu/hw/net/spapr_llan.o
  CC    s390x-softmmu/balloon.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/mac_oldworld.c:42:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/mac_oldworld.o] Error 1
  CC    ppc-softmmu/hw/ppc/mac_newworld.o
  CC    aarch64-softmmu/target-arm/translate.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/mac_newworld.c:66:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/mac_newworld.o] Error 1
  CC    ppc-softmmu/hw/ppc/e500.o
  CC    ppc-softmmu/hw/ppc/mpc8544ds.o
  CC    s390x-softmmu/ioport.o
  CC    ppcemb-softmmu/hw/virtio/virtio-balloon.o
  CC    i386-softmmu/target-i386/cc_helper.o
  CC    ppc64-softmmu/hw/net/xilinx_ethlite.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/e500.c:29:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/ppc/e500.c: In function ‘ppce500_init’:
/mnt/sdb/fortify-vm/qemu/hw/ppc/e500.c:865: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/ppc/e500.o] Error 1
  CC    ppc64-softmmu/hw/net/virtio-net.o
  CC    ppc-softmmu/hw/ppc/e500plat.o
  CC    s390x-softmmu/numa.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    ppcemb-softmmu/hw/virtio/vhost.o
  CC    ppc64-softmmu/hw/net/vhost_net.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/e500plat.c:19:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/e500plat.o] Error 1
  CC    ppc-softmmu/hw/ppc/mpc8544_guts.o
  CC    i386-softmmu/target-i386/int_helper.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    s390x-softmmu/qtest.o
  CC    ppc64-softmmu/hw/net/fsl_etsec/etsec.o
  CC    ppc-softmmu/hw/ppc/ppce500_spin.o
  CC    i386-softmmu/target-i386/svm_helper.o
  CC    i386-softmmu/target-i386/smm_helper.o
  CC    ppc64-softmmu/hw/net/fsl_etsec/registers.o
  CC    ppc-softmmu/hw/ppc/virtex_ml507.o
  CC    ppcemb-softmmu/hw/virtio/vhost-backend.o
  CC    ppc64-softmmu/hw/net/fsl_etsec/rings.o
  CC    s390x-softmmu/bootdevice.o
  CC    ppcemb-softmmu/hw/virtio/vhost-user.o
  CC    ppcemb-softmmu/hw/ppc/ppc.o
  CC    ppc-softmmu/target-ppc/cpu-models.o
  CC    s390x-softmmu/device_tree.o
  CC    ppc64-softmmu/hw/net/fsl_etsec/miim.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc.c:35:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
  CC    i386-softmmu/target-i386/misc_helper.o
  CC    s390x-softmmu/memory.o
make[1]: *** [hw/ppc/ppc.o] Error 1
  CC    ppcemb-softmmu/hw/ppc/ppc_booke.o
  CC    s390x-softmmu/savevm.o
  CC    ppc64-softmmu/hw/nvram/spapr_nvram.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc_booke.c:31:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/ppc_booke.o] Error 1
  CC    ppcemb-softmmu/hw/ppc/ppc405_boards.o
  CC    i386-softmmu/target-i386/mem_helper.o
  CC    ppc64-softmmu/hw/scsi/spapr_vscsi.o
  CC    i386-softmmu/target-i386/seg_helper.o
  CC    ppcemb-softmmu/hw/ppc/ppc4xx_devs.o
  CC    i386-softmmu/target-i386/gdbstub.o
  CC    ppcemb-softmmu/hw/ppc/ppc405_uc.o
  CC    ppc64-softmmu/hw/scsi/virtio-scsi.o
  CC    ppc64-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    s390x-softmmu/cputlb.o
  CC    ppc64-softmmu/hw/scsi/vhost-scsi.o
  CC    i386-softmmu/target-i386/machine.o
  CC    ppcemb-softmmu/hw/ppc/ppc440_bamboo.o
  CC    ppc64-softmmu/hw/timer/mc146818rtc.o
  CC    i386-softmmu/target-i386/arch_memory_mapping.o
  CC    s390x-softmmu/memory_mapping.o
  CC    ppc-softmmu/target-ppc/translate.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc440_bamboo.c:21:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/ppc440_bamboo.o] Error 1
  CC    ppcemb-softmmu/hw/ppc/ppc4xx_pci.o
  CC    ppcemb-softmmu/hw/ppc/virtex_ml507.o
  CC    s390x-softmmu/dump.o
  CC    s390x-softmmu/xen-common-stub.o
  CC    ppc64-softmmu/hw/virtio/virtio.o
  CC    ppc64-softmmu/hw/virtio/virtio-balloon.o
  CC    ppcemb-softmmu/target-ppc/cpu-models.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    ppc64-softmmu/hw/virtio/vhost.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/translate_init.c:24,
                 from /mnt/sdb/fortify-vm/qemu/target-ppc/translate.c:11060:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/translate.o] Error 1
  CC    ppc-softmmu/target-ppc/machine.o
  CC    s390x-softmmu/xen-hvm-stub.o
  CC    ppc-softmmu/target-ppc/mmu_helper.o
  CC    i386-softmmu/target-i386/arch_dump.o
  CC    mips64-softmmu/target-mips/op_helper.o
  CC    s390x-softmmu/hw/block/virtio-blk.o
  CC    s390x-softmmu/hw/block/dataplane/virtio-blk.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/mmu_helper.c:22:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/mmu_helper.o] Error 1
  CC    ppc64-softmmu/hw/virtio/vhost-backend.o
  CC    ppc-softmmu/target-ppc/mmu-hash32.o
  CC    i386-softmmu/target-i386/kvm.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/mmu-hash32.c:24:
  CC    mips-softmmu/target-mips/machine.o
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/mmu-hash32.o] Error 1
  CC    ppc-softmmu/target-ppc/kvm-stub.o
  CC    ppc64-softmmu/hw/virtio/vhost-user.o
  CC    ppc64-softmmu/hw/ppc/ppc.o
  CC    s390x-softmmu/hw/char/virtio-serial-bus.o
  CC    mips64el-softmmu/target-mips/dsp_helper.o
  CC    ppc-softmmu/target-ppc/dfp_helper.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc.c:35:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
  CC    ppc-softmmu/target-ppc/excp_helper.o
make[1]: *** [hw/ppc/ppc.o] Error 1
  CC    ppc64-softmmu/hw/ppc/ppc_booke.o
  GEN   trace/generated-helpers.c
  CC    mips-softmmu/trace/generated-helpers.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc_booke.c:31:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/ppc_booke.o] Error 1
  CC    ppc64-softmmu/hw/ppc/spapr.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/spapr.c:35:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: Target `all' not remade because of errors.
make: *** [subdir-mips-softmmu] Error 2
  CC    ppc64-softmmu/hw/ppc/spapr_vio.o
/mnt/sdb/fortify-vm/qemu/hw/ppc/spapr.c: In function ‘spapr_node0_size’:
/mnt/sdb/fortify-vm/qemu/hw/ppc/spapr.c:295: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/ppc/spapr.c: In function ‘spapr_populate_memory’:
/mnt/sdb/fortify-vm/qemu/hw/ppc/spapr.c:684: error: ‘ram_size’ undeclared (first use in this function)
  CC    s390x-softmmu/hw/intc/s390_flic.o
make[1]: *** [hw/ppc/spapr.o] Error 1
  CC    s390x-softmmu/hw/net/virtio-net.o
  CC    s390x-softmmu/hw/net/vhost_net.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/spapr_vio.c:31:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/spapr_vio.o] Error 1
  CC    ppc64-softmmu/hw/ppc/spapr_events.o
  GEN   trace/generated-helpers.c
  CC    ppc-softmmu/target-ppc/fpu_helper.o
  CC    i386-softmmu/hw/i386/acpi-build.o
  CC    s390x-softmmu/hw/scsi/virtio-scsi.o
  CC    ppcemb-softmmu/target-ppc/translate.o
  CC    ppc64-softmmu/hw/ppc/spapr_hcall.o
  CC    ppc64-softmmu/hw/ppc/spapr_iommu.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/spapr_hcall.c:8:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/spapr_hcall.o] Error 1
  CC    ppc64-softmmu/hw/ppc/spapr_rtas.o
  CC    s390x-softmmu/hw/scsi/virtio-scsi-dataplane.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/spapr_iommu.c:22:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/ppc/spapr_iommu.c: In function ‘spapr_tce_table_realize’:
/mnt/sdb/fortify-vm/qemu/hw/ppc/spapr_iommu.c:134: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/ppc/spapr_iommu.o] Error 1
  CC    s390x-softmmu/hw/scsi/vhost-scsi.o
  GEN   sh4-softmmu/hmp-commands.h
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/translate_init.c:24,
                 from /mnt/sdb/fortify-vm/qemu/target-ppc/translate.c:11060:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
  GEN   sh4-softmmu/qmp-commands-old.h
  CC    i386-softmmu/trace/generated-helpers.o
  CC    ppc64-softmmu/hw/ppc/spapr_pci.o
make[1]: *** [target-ppc/translate.o] Error 1
  CC    ppcemb-softmmu/target-ppc/machine.o
  GEN   sh4-softmmu/config-target.h
  CC    sh4-softmmu/exec.o
  CC    s390x-softmmu/hw/virtio/virtio.o
  CC    mips64el-softmmu/target-mips/op_helper.o
  CC    mips64el-softmmu/target-mips/lmi_helper.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-i386-softmmu] Error 2
  CC    ppcemb-softmmu/target-ppc/mmu_helper.o
  CC    ppc64-softmmu/hw/ppc/spapr_pci_vfio.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/mmu_helper.c:22:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/mmu_helper.o] Error 1
  CC    ppcemb-softmmu/target-ppc/mmu-hash32.o
  CC    mips64el-softmmu/target-mips/helper.o
  CC    ppc64-softmmu/hw/ppc/ppc405_boards.o
  CC    s390x-softmmu/hw/virtio/virtio-balloon.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/mmu-hash32.c:24:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/mmu-hash32.o] Error 1
  CC    ppcemb-softmmu/target-ppc/kvm-stub.o
  GEN   sh4eb-softmmu/hmp-commands.h
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    s390x-softmmu/hw/virtio/vhost.o
  CC    ppcemb-softmmu/target-ppc/dfp_helper.o
  GEN   sh4eb-softmmu/qmp-commands-old.h
  CC    ppc64-softmmu/hw/ppc/ppc4xx_devs.o
  CC    sh4-softmmu/translate-all.o
  CC    sh4-softmmu/cpu-exec.o
  GEN   sh4eb-softmmu/config-target.h
  CC    sh4eb-softmmu/exec.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    ppc64-softmmu/hw/ppc/ppc405_uc.o
  CC    ppc64-softmmu/hw/ppc/ppc440_bamboo.o
  CC    sh4-softmmu/tcg/tcg.o
  CC    s390x-softmmu/hw/virtio/vhost-backend.o
  CC    mips64-softmmu/target-mips/lmi_helper.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/ppc440_bamboo.c:21:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/ppc440_bamboo.o] Error 1
  CC    mips64el-softmmu/target-mips/cpu.o
  CC    s390x-softmmu/hw/virtio/vhost-user.o
  CC    ppcemb-softmmu/target-ppc/excp_helper.o
  CC    mips64el-softmmu/target-mips/gdbstub.o
  CC    mips64-softmmu/target-mips/helper.o
  CC    s390x-softmmu/hw/s390x/s390-virtio-bus.o
  CC    ppc64-softmmu/hw/ppc/ppc4xx_pci.o
  CC    ppc64-softmmu/hw/ppc/prep.o
  CC    sh4eb-softmmu/translate-all.o
  CC    ppc64-softmmu/hw/ppc/mac_oldworld.o
  CC    ppc64-softmmu/hw/ppc/mac_newworld.o
  CC    ppcemb-softmmu/target-ppc/fpu_helper.o
  CC    mips64-softmmu/target-mips/cpu.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    sh4eb-softmmu/cpu-exec.o
  CC    s390x-softmmu/hw/s390x/s390-virtio.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/mac_newworld.c:66:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/mac_newworld.o] Error 1
  CC    s390x-softmmu/hw/s390x/s390-virtio-hcall.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/mac_oldworld.c:42:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/ppc/mac_oldworld.o] Error 1
  CC    ppc64-softmmu/hw/ppc/e500.o
  CC    mips64-softmmu/target-mips/gdbstub.o
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio.c: In function ‘s390_virtio_hcall_notify’:
  CC    sh4-softmmu/tcg/optimize.o
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio.c:73: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio.c:73: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio.c:73: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio.c: In function ‘s390_init’:
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio.c:218: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/s390x/s390-virtio.o] Error 1
  CC    s390x-softmmu/hw/s390x/sclp.o
  CC    s390x-softmmu/hw/s390x/event-facility.o
  CC    sh4eb-softmmu/tcg/tcg.o
  CC    mips64-softmmu/target-mips/msa_helper.o
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/e500.c:29:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/ppc/e500.c: In function ‘ppce500_init’:
/mnt/sdb/fortify-vm/qemu/hw/ppc/e500.c:865: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/ppc/e500.o] Error 1
  CC    ppc64-softmmu/hw/ppc/mpc8544ds.o
/mnt/sdb/fortify-vm/qemu/hw/s390x/sclp.c: In function ‘read_SCP_info’:
/mnt/sdb/fortify-vm/qemu/hw/s390x/sclp.c:71: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/s390x/sclp.c:71: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/s390x/sclp.c:71: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/s390x/sclp.c: In function ‘read_storage_element0_info’:
/mnt/sdb/fortify-vm/qemu/hw/s390x/sclp.c:142: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/s390x/sclp.c: In function ‘attach_storage_element’:
/mnt/sdb/fortify-vm/qemu/hw/s390x/sclp.c:195: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/s390x/sclp.o] Error 1
  CC    s390x-softmmu/hw/s390x/sclpquiesce.o
  CC    ppc-softmmu/target-ppc/int_helper.o
  CC    ppc64-softmmu/hw/ppc/e500plat.o
  CC    s390x-softmmu/hw/s390x/sclpcpu.o
  CC    s390x-softmmu/hw/s390x/ipl.o
  CC    s390x-softmmu/hw/s390x/css.o
/mnt/sdb/fortify-vm/qemu/hw/s390x/ipl.c: In function ‘s390_ipl_init’:
/mnt/sdb/fortify-vm/qemu/hw/s390x/ipl.c:102: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/s390x/ipl.c:102: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/s390x/ipl.c:102: error: for each function it appears in.)
In file included from /mnt/sdb/fortify-vm/qemu/hw/ppc/e500plat.c:19:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [hw/s390x/ipl.o] Error 1
  CC    sh4eb-softmmu/tcg/optimize.o
make[1]: *** [hw/ppc/e500plat.o] Error 1
  CC    ppc64-softmmu/hw/ppc/mpc8544_guts.o
  CC    sh4-softmmu/fpu/softfloat.o
  CC    ppc64-softmmu/hw/ppc/ppce500_spin.o
  CC    s390x-softmmu/hw/s390x/s390-virtio-ccw.o
  CC    ppc64-softmmu/hw/ppc/virtex_ml507.o
  CC    mips64el-softmmu/target-mips/msa_helper.o
  CC    mips64el-softmmu/target-mips/machine.o
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio-ccw.c: In function ‘virtio_ccw_hcall_early_printk’:
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio-ccw.c:69: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio-ccw.c:69: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio-ccw.c:69: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio-ccw.c: In function ‘ccw_init’:
/mnt/sdb/fortify-vm/qemu/hw/s390x/s390-virtio-ccw.c:121: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/s390x/s390-virtio-ccw.o] Error 1
  CC    s390x-softmmu/hw/s390x/virtio-ccw.o
  CC    sh4eb-softmmu/fpu/softfloat.o
  CC    ppc64-softmmu/target-ppc/cpu-models.o
  CC    sh4eb-softmmu/disas.o
  CC    ppc-softmmu/target-ppc/timebase_helper.o
  CC    s390x-softmmu/target-s390x/translate.o
  CC    sh4eb-softmmu/kvm-stub.o
  CC    ppc-softmmu/target-ppc/misc_helper.o
  CC    ppc-softmmu/target-ppc/mem_helper.o
  CC    ppc-softmmu/target-ppc/gdbstub.o
  CC    mipsel-softmmu/target-mips/dsp_helper.o
  CC    mipsel-softmmu/target-mips/op_helper.o
  GEN   trace/generated-helpers.c
  CC    ppc-softmmu/gdbstub-xml.o
  CC    ppc-softmmu/trace/generated-helpers.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-ppc-softmmu] Error 2
  CC    sh4-softmmu/disas.o
  CC    mipsel-softmmu/target-mips/lmi_helper.o
  CC    ppc64-softmmu/target-ppc/translate.o
  CC    sh4-softmmu/kvm-stub.o
  GEN   sparc-softmmu/hmp-commands.h
  CC    ppcemb-softmmu/target-ppc/int_helper.o
  CC    sh4-softmmu/arch_init.o
  GEN   sparc-softmmu/qmp-commands-old.h
  CC    mipsel-softmmu/target-mips/helper.o
  CC    sh4eb-softmmu/arch_init.o
  GEN   sparc-softmmu/config-target.h
  CC    sparc-softmmu/exec.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/translate_init.c:24,
                 from /mnt/sdb/fortify-vm/qemu/target-ppc/translate.c:11060:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/translate.o] Error 1
  CC    ppc64-softmmu/target-ppc/machine.o
  CC    sh4-softmmu/cpus.o
  CC    ppc64-softmmu/target-ppc/mmu_helper.o
  CC    sh4eb-softmmu/cpus.o
  CC    sh4eb-softmmu/monitor.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/mmu_helper.c:22:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/mmu_helper.o] Error 1
  CC    ppc64-softmmu/target-ppc/mmu-hash32.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/mmu-hash32.c:24:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/mmu-hash32.o] Error 1
  CC    ppc64-softmmu/target-ppc/mmu-hash64.o
  CC    sh4-softmmu/monitor.o
In file included from /mnt/sdb/fortify-vm/qemu/target-ppc/mmu-hash64.c:23:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h: In function ‘kvmppc_rma_size’:
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-ppc/kvm_ppc.h:180: error: for each function it appears in.)
make[1]: *** [target-ppc/mmu-hash64.o] Error 1
  CC    ppc64-softmmu/target-ppc/arch_dump.o
  CC    ppc64-softmmu/target-ppc/kvm-stub.o
  CC    sparc-softmmu/translate-all.o
  CC    ppcemb-softmmu/target-ppc/timebase_helper.o
  CC    ppcemb-softmmu/target-ppc/misc_helper.o
  CC    ppc64-softmmu/target-ppc/dfp_helper.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    sparc-softmmu/cpu-exec.o
  CC    ppc64-softmmu/target-ppc/excp_helper.o
  CC    ppcemb-softmmu/target-ppc/mem_helper.o
  CC    arm-softmmu/target-arm/op_helper.o
  CC    mips64-softmmu/target-mips/machine.o
  CC    s390x-softmmu/target-s390x/helper.o
/mnt/sdb/fortify-vm/qemu/target-s390x/helper.c: In function ‘mmu_translate’:
/mnt/sdb/fortify-vm/qemu/target-s390x/helper.c:417: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-s390x/helper.c:417: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-s390x/helper.c:417: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/target-s390x/helper.c: In function ‘s390_cpu_handle_mmu_fault’:
/mnt/sdb/fortify-vm/qemu/target-s390x/helper.c:457: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [target-s390x/helper.o] Error 1
  CC    s390x-softmmu/target-s390x/cpu.o
  CC    sparc-softmmu/tcg/tcg.o
  GEN   trace/generated-helpers.c
  CC    ppcemb-softmmu/target-ppc/gdbstub.o
  CC    mips64-softmmu/trace/generated-helpers.o
  CC    mipsel-softmmu/target-mips/cpu.o
  CC    arm-softmmu/target-arm/helper.o
  CC    s390x-softmmu/target-s390x/interrupt.o
  CC    sh4eb-softmmu/gdbstub.o
  GEN   trace/generated-helpers.c
  CC    sh4-softmmu/gdbstub.o
  CC    ppc64-softmmu/target-ppc/fpu_helper.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-mips64-softmmu] Error 2
  CC    s390x-softmmu/target-s390x/int_helper.o
  CC    mipsel-softmmu/target-mips/gdbstub.o
  CC    s390x-softmmu/target-s390x/fpu_helper.o
  GEN   trace/generated-helpers.c
  CC    sh4-softmmu/balloon.o
  CC    ppcemb-softmmu/gdbstub-xml.o
  CC    ppcemb-softmmu/trace/generated-helpers.o
  CC    aarch64-softmmu/target-arm/op_helper.o
  CC    mipsel-softmmu/target-mips/msa_helper.o
  CC    mipsel-softmmu/target-mips/machine.o
  CC    sh4eb-softmmu/balloon.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-ppcemb-softmmu] Error 2
  CC    sh4-softmmu/ioport.o
  CC    s390x-softmmu/target-s390x/cc_helper.o
  CC    sh4eb-softmmu/ioport.o
  CC    mips64el-softmmu/trace/generated-helpers.o
  CC    sh4eb-softmmu/numa.o
  CC    aarch64-softmmu/target-arm/helper.o
  CC    sh4-softmmu/numa.o
  CC    s390x-softmmu/target-s390x/mem_helper.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
  CC    sh4eb-softmmu/qtest.o
make[1]: *** [numa.o] Error 1
  CC    sh4eb-softmmu/bootdevice.o
  CC    sparc-softmmu/tcg/optimize.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-mips64el-softmmu] Error 2
  CC    sparc-softmmu/fpu/softfloat.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    sh4-softmmu/qtest.o
/mnt/sdb/fortify-vm/qemu/target-s390x/mem_helper.c: In function ‘helper_iske’:
/mnt/sdb/fortify-vm/qemu/target-s390x/mem_helper.c:878: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-s390x/mem_helper.c:878: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/target-s390x/mem_helper.c:878: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/target-s390x/mem_helper.c: In function ‘helper_sske’:
/mnt/sdb/fortify-vm/qemu/target-s390x/mem_helper.c:890: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/target-s390x/mem_helper.c: In function ‘helper_rrbe’:
/mnt/sdb/fortify-vm/qemu/target-s390x/mem_helper.c:903: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [target-s390x/mem_helper.o] Error 1
  CC    s390x-softmmu/target-s390x/misc_helper.o
  GEN   sparc64-softmmu/hmp-commands.h
  GEN   sparc64-softmmu/qmp-commands-old.h
  GEN   sparc64-softmmu/config-target.h
  CC    sparc64-softmmu/exec.o
  CC    sh4eb-softmmu/device_tree.o
  CC    aarch64-softmmu/target-arm/cpu.o
  CC    sh4-softmmu/bootdevice.o
  CC    s390x-softmmu/target-s390x/gdbstub.o
  CC    sparc-softmmu/disas.o
  CC    sh4eb-softmmu/memory.o
  CC    sh4-softmmu/device_tree.o
  CC    s390x-softmmu/target-s390x/machine.o
  GEN   tricore-softmmu/hmp-commands.h
  GEN   tricore-softmmu/qmp-commands-old.h
  CC    aarch64-softmmu/target-arm/neon_helper.o
  CC    s390x-softmmu/target-s390x/ioinst.o
  CC    sparc-softmmu/kvm-stub.o
  CC    arm-softmmu/target-arm/cpu.o
  GEN   tricore-softmmu/config-target.h
  CC    sh4-softmmu/memory.o
  CC    tricore-softmmu/exec.o
  CC    sparc-softmmu/arch_init.o
  CC    s390x-softmmu/target-s390x/arch_dump.o
  CC    sparc64-softmmu/translate-all.o
  CC    arm-softmmu/target-arm/neon_helper.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    sparc64-softmmu/cpu-exec.o
  GEN   trace/generated-helpers.c
  CC    s390x-softmmu/gdbstub-xml.o
  CC    sh4eb-softmmu/savevm.o
  CC    sparc-softmmu/cpus.o
  CC    aarch64-softmmu/target-arm/iwmmxt_helper.o
  CC    s390x-softmmu/trace/generated-helpers.o
  CC    sh4-softmmu/savevm.o
  CC    sparc64-softmmu/tcg/tcg.o
  CC    tricore-softmmu/translate-all.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-s390x-softmmu] Error 2
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    tricore-softmmu/cpu-exec.o
  CC    sh4eb-softmmu/cputlb.o
  CC    sh4eb-softmmu/memory_mapping.o
  CC    aarch64-softmmu/target-arm/gdbstub.o
  CC    sh4-softmmu/cputlb.o
  CC    sh4-softmmu/memory_mapping.o
  CC    sparc-softmmu/monitor.o
  CC    tricore-softmmu/tcg/tcg.o
  CC    aarch64-softmmu/target-arm/psci.o
  GEN   unicore32-softmmu/hmp-commands.h
  GEN   unicore32-softmmu/qmp-commands-old.h
  CC    sh4-softmmu/dump.o
  GEN   unicore32-softmmu/config-target.h
  CC    unicore32-softmmu/exec.o
  CC    aarch64-softmmu/target-arm/cpu64.o
  CC    arm-softmmu/target-arm/iwmmxt_helper.o
  CC    ppc64-softmmu/target-ppc/int_helper.o
  CC    sh4eb-softmmu/dump.o
  CC    aarch64-softmmu/target-arm/translate-a64.o
  CC    aarch64-softmmu/target-arm/helper-a64.o
  CC    aarch64-softmmu/target-arm/gdbstub64.o
  CC    sparc64-softmmu/tcg/optimize.o
  CC    sh4-softmmu/xen-common-stub.o
  CC    aarch64-softmmu/target-arm/crypto_helper.o
  CC    sh4-softmmu/xen-hvm-stub.o
  CC    sh4-softmmu/hw/9pfs/virtio-9p-device.o
  CC    sh4eb-softmmu/xen-common-stub.o
  CC    sh4eb-softmmu/xen-hvm-stub.o
  CC    sh4-softmmu/hw/block/tc58128.o
  GEN   trace/generated-helpers.c
  CC    sh4eb-softmmu/hw/9pfs/virtio-9p-device.o
  CC    sh4eb-softmmu/hw/block/tc58128.o
  CC    tricore-softmmu/tcg/optimize.o
  CC    sh4eb-softmmu/hw/block/virtio-blk.o
  CC    arm-softmmu/target-arm/gdbstub.o
  CC    unicore32-softmmu/translate-all.o
  CC    sparc64-softmmu/fpu/softfloat.o
  CC    sparc-softmmu/gdbstub.o
  CC    sh4-softmmu/hw/block/virtio-blk.o
  CC    sh4eb-softmmu/hw/block/dataplane/virtio-blk.o
  CC    tricore-softmmu/fpu/softfloat.o
  CC    arm-softmmu/target-arm/psci.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    unicore32-softmmu/cpu-exec.o
  CC    ppc64-softmmu/target-ppc/timebase_helper.o
  CC    ppc64-softmmu/target-ppc/misc_helper.o
  CC    sh4eb-softmmu/hw/char/sh_serial.o
  CC    arm-softmmu/target-arm/crypto_helper.o
  CC    sh4-softmmu/hw/block/dataplane/virtio-blk.o
  GEN   trace/generated-helpers.c
  GEN   trace/generated-helpers.c
  CC    sparc-softmmu/balloon.o
  CC    sparc-softmmu/ioport.o
  CC    arm-softmmu/gdbstub-xml.o
  CC    ppc64-softmmu/target-ppc/mem_helper.o
  CC    mipsel-softmmu/trace/generated-helpers.o
  CC    unicore32-softmmu/tcg/tcg.o
  CC    sh4eb-softmmu/hw/char/virtio-serial-bus.o
  CC    sh4-softmmu/hw/char/sh_serial.o
  CC    sh4-softmmu/hw/char/virtio-serial-bus.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-mipsel-softmmu] Error 2
  CC    sh4-softmmu/hw/display/sm501.o
  CC    arm-softmmu/trace/generated-helpers.o
  CC    sparc-softmmu/numa.o
/mnt/sdb/fortify-vm/qemu/target-arm/translate-a64.c: In function ‘handle_shri_with_rndacc’:
/mnt/sdb/fortify-vm/qemu/target-arm/translate-a64.c:6072: warning: ‘tcg_src_hi’ may be used uninitialized in this function
  CC    sh4-softmmu/hw/intc/sh_intc.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-arm-softmmu] Error 2
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
  CC    ppc64-softmmu/target-ppc/gdbstub.o
make[1]: *** [numa.o] Error 1
  CC    sparc-softmmu/qtest.o
  CC    sh4eb-softmmu/hw/display/sm501.o
  CC    sh4eb-softmmu/hw/intc/sh_intc.o
  GEN   trace/generated-helpers.c
  CC    sh4-softmmu/hw/misc/vfio.o
  CC    ppc64-softmmu/gdbstub-xml.o
  CC    ppc64-softmmu/trace/generated-helpers.o
  GEN   xtensa-softmmu/hmp-commands.h
  CC    sparc-softmmu/bootdevice.o
  GEN   x86_64-softmmu/hmp-commands.h
  CC    sparc-softmmu/device_tree.o
  GEN   xtensa-softmmu/qmp-commands-old.h
  GEN   x86_64-softmmu/qmp-commands-old.h
  GEN   xtensa-softmmu/config-target.h
  CC    unicore32-softmmu/tcg/optimize.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-ppc64-softmmu] Error 2
  CC    unicore32-softmmu/fpu/softfloat.o
  CC    sparc-softmmu/memory.o
  CC    sh4eb-softmmu/hw/misc/vfio.o
  CC    xtensa-softmmu/exec.o
  GEN   x86_64-softmmu/config-target.h
  CC    x86_64-softmmu/exec.o
  CC    unicore32-softmmu/disas.o
  CC    sparc-softmmu/savevm.o
  CC    unicore32-softmmu/kvm-stub.o
  CC    unicore32-softmmu/arch_init.o
  CC    unicore32-softmmu/cpus.o
  CC    sh4-softmmu/hw/net/virtio-net.o
  CC    sparc64-softmmu/disas.o
  CC    sparc64-softmmu/kvm-stub.o
  CC    tricore-softmmu/disas.o
  CC    xtensa-softmmu/translate-all.o
  CC    sparc64-softmmu/arch_init.o
  CC    sparc64-softmmu/cpus.o
  CC    x86_64-softmmu/translate-all.o
  CC    sparc-softmmu/cputlb.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    xtensa-softmmu/cpu-exec.o
  CC    sh4eb-softmmu/hw/net/virtio-net.o
  CC    tricore-softmmu/kvm-stub.o
/mnt/sdb/fortify-vm/qemu/target-arm/translate-a64.c: In function ‘disas_simd_scalar_two_reg_misc’:
/mnt/sdb/fortify-vm/qemu/target-arm/translate-a64.c:7801: warning: ‘rmode’ may be used uninitialized in this function
  CC    unicore32-softmmu/monitor.o
  CC    unicore32-softmmu/gdbstub.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    x86_64-softmmu/cpu-exec.o
  CC    tricore-softmmu/arch_init.o
  CC    sh4-softmmu/hw/net/vhost_net.o
  CC    sh4-softmmu/hw/scsi/virtio-scsi.o
  CC    sparc64-softmmu/monitor.o
  CC    xtensa-softmmu/tcg/tcg.o
  CC    x86_64-softmmu/tcg/tcg.o
  CC    tricore-softmmu/cpus.o
  CC    sh4eb-softmmu/hw/net/vhost_net.o
  CC    sh4-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    unicore32-softmmu/balloon.o
  CC    tricore-softmmu/monitor.o
  CC    sh4eb-softmmu/hw/scsi/virtio-scsi.o
  CC    sparc-softmmu/memory_mapping.o
  CC    unicore32-softmmu/ioport.o
  CC    tricore-softmmu/gdbstub.o
  CC    sh4-softmmu/hw/scsi/vhost-scsi.o
  CC    sparc-softmmu/dump.o
  CC    unicore32-softmmu/numa.o
  CC    aarch64-softmmu/gdbstub-xml.o
  CC    aarch64-softmmu/trace/generated-helpers.o
  CC    sh4eb-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    sh4-softmmu/hw/timer/sh_timer.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    unicore32-softmmu/qtest.o
  CC    unicore32-softmmu/bootdevice.o
  CC    tricore-softmmu/balloon.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-aarch64-softmmu] Error 2
  CC    tricore-softmmu/ioport.o
  CC    tricore-softmmu/numa.o
  CC    sh4eb-softmmu/hw/scsi/vhost-scsi.o
  CC    sh4-softmmu/hw/timer/mc146818rtc.o
  CC    xtensa-softmmu/tcg/optimize.o
  CC    sparc-softmmu/xen-common-stub.o
  CC    sparc64-softmmu/gdbstub.o
  CC    sparc64-softmmu/balloon.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    tricore-softmmu/qtest.o
  CC    tricore-softmmu/bootdevice.o
  CC    tricore-softmmu/device_tree.o
  CC    x86_64-softmmu/tcg/optimize.o
  CC    unicore32-softmmu/device_tree.o
  CC    sh4eb-softmmu/hw/timer/sh_timer.o
  CC    sparc-softmmu/xen-hvm-stub.o
  CC    sparc-softmmu/hw/display/tcx.o
  CC    tricore-softmmu/memory.o
  CC    tricore-softmmu/savevm.o
  CC    sh4-softmmu/hw/virtio/virtio.o
  CC    sh4eb-softmmu/hw/timer/mc146818rtc.o
  CC    sh4-softmmu/hw/virtio/virtio-balloon.o
  CC    unicore32-softmmu/memory.o
  CC    tricore-softmmu/cputlb.o
  CC    sparc-softmmu/hw/display/cg3.o
  CC    sparc64-softmmu/ioport.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
  CC    xtensa-softmmu/fpu/softfloat.o
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    xtensa-softmmu/disas.o
  CC    sparc-softmmu/hw/intc/grlib_irqmp.o
  CC    sparc-softmmu/hw/misc/eccmemctl.o
  CC    sh4eb-softmmu/hw/virtio/virtio.o
  CC    sparc64-softmmu/numa.o
  CC    tricore-softmmu/memory_mapping.o
  CC    sh4-softmmu/hw/virtio/vhost.o
  CC    sh4-softmmu/hw/virtio/vhost-backend.o
  CC    sparc-softmmu/hw/misc/slavio_misc.o
  CC    x86_64-softmmu/fpu/softfloat.o
  CC    x86_64-softmmu/disas.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    sparc64-softmmu/qtest.o
  CC    sparc64-softmmu/bootdevice.o
  CC    tricore-softmmu/dump.o
  CC    sparc-softmmu/hw/net/vhost_net.o
  CC    tricore-softmmu/xen-common-stub.o
  CC    sparc64-softmmu/device_tree.o
  CC    sh4eb-softmmu/hw/virtio/virtio-balloon.o
  CC    x86_64-softmmu/arch_init.o
  CC    tricore-softmmu/xen-hvm-stub.o
  CC    unicore32-softmmu/savevm.o
  CC    unicore32-softmmu/cputlb.o
  CC    sparc64-softmmu/memory.o
  CC    sparc-softmmu/hw/sparc/sun4m.o
  CC    sh4-softmmu/hw/virtio/vhost-user.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    sh4eb-softmmu/hw/virtio/vhost.o
  CC    sparc64-softmmu/savevm.o
  CC    tricore-softmmu/hw/net/vhost_net.o
  CC    tricore-softmmu/hw/tricore/tricore_testboard.o
  CC    sh4-softmmu/hw/sh4/shix.o
/mnt/sdb/fortify-vm/qemu/hw/sparc/sun4m.c: In function ‘sun4m_hw_init’:
/mnt/sdb/fortify-vm/qemu/hw/sparc/sun4m.c:1090: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/sparc/sun4m.c:1090: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/sparc/sun4m.c:1090: error: for each function it appears in.)
make[1]: *** [hw/sparc/sun4m.o] Error 1
  CC    sparc-softmmu/hw/sparc/leon3.o
  CC    sparc-softmmu/target-sparc/machine.o
  CC    tricore-softmmu/target-tricore/translate.o
  CC    tricore-softmmu/target-tricore/helper.o
  CC    unicore32-softmmu/memory_mapping.o
  CC    sh4-softmmu/hw/sh4/r2d.o
  CC    sparc-softmmu/target-sparc/translate.o
  CC    sparc-softmmu/target-sparc/helper.o
  CC    tricore-softmmu/target-tricore/cpu.o
  CC    sh4eb-softmmu/hw/virtio/vhost-backend.o
  CC    sparc64-softmmu/cputlb.o
  CC    sh4-softmmu/hw/sh4/sh7750.o
  CC    sh4-softmmu/hw/sh4/sh7750_regnames.o
  CC    unicore32-softmmu/dump.o
  CC    sparc-softmmu/target-sparc/cpu.o
  CC    tricore-softmmu/target-tricore/op_helper.o
  CC    sh4eb-softmmu/hw/virtio/vhost-user.o
  CC    sparc64-softmmu/memory_mapping.o
  CC    sparc64-softmmu/dump.o
  CC    sh4-softmmu/hw/sh4/sh_pci.o
  CC    sh4-softmmu/target-sh4/translate.o
  CC    sh4eb-softmmu/hw/sh4/shix.o
  CC    sparc64-softmmu/xen-common-stub.o
  CC    sparc64-softmmu/xen-hvm-stub.o
  CC    unicore32-softmmu/xen-common-stub.o
  GEN   trace/generated-helpers.c
  CC    sh4eb-softmmu/hw/sh4/r2d.o
  CC    sparc64-softmmu/hw/9pfs/virtio-9p-device.o
  CC    unicore32-softmmu/xen-hvm-stub.o
  CC    xtensa-softmmu/kvm-stub.o
  CC    tricore-softmmu/trace/generated-helpers.o
  CC    unicore32-softmmu/hw/net/vhost_net.o
  CC    unicore32-softmmu/hw/unicore32/puv3.o
  CC    unicore32-softmmu/target-unicore32/translate.o
  CC    unicore32-softmmu/target-unicore32/op_helper.o
  CC    sparc64-softmmu/hw/block/virtio-blk.o
  CC    sh4eb-softmmu/hw/sh4/sh7750.o
  CC    sh4eb-softmmu/hw/sh4/sh7750_regnames.o
  CC    xtensa-softmmu/arch_init.o
  CC    sparc64-softmmu/hw/block/dataplane/virtio-blk.o
  CC    unicore32-softmmu/target-unicore32/helper.o
  CC    sh4eb-softmmu/hw/sh4/sh_pci.o
  CC    x86_64-softmmu/cpus.o
  CC    unicore32-softmmu/target-unicore32/cpu.o
  CC    unicore32-softmmu/target-unicore32/ucf64_helper.o
  CC    sh4eb-softmmu/target-sh4/translate.o
  CC    sparc64-softmmu/hw/char/virtio-serial-bus.o
  CC    sh4eb-softmmu/target-sh4/op_helper.o
  CC    sparc64-softmmu/hw/display/vga.o
  CC    unicore32-softmmu/target-unicore32/softmmu.o
  CC    sh4eb-softmmu/target-sh4/helper.o
  CC    xtensa-softmmu/cpus.o
  CC    xtensa-softmmu/monitor.o
  CC    x86_64-softmmu/monitor.o
  CC    sh4eb-softmmu/target-sh4/cpu.o
  GEN   trace/generated-helpers.c
  CC    sparc64-softmmu/hw/misc/vfio.o
  CC    unicore32-softmmu/trace/generated-helpers.o
  CC    xtensa-softmmu/gdbstub.o
  CC    sh4eb-softmmu/target-sh4/gdbstub.o
  GEN   trace/generated-helpers.c
  CC    xtensa-softmmu/balloon.o
  CC    sparc64-softmmu/hw/net/virtio-net.o
  CC    sparc64-softmmu/hw/net/vhost_net.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-unicore32-softmmu] Error 2
  CC    xtensa-softmmu/ioport.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-tricore-softmmu] Error 2
  CC    sparc64-softmmu/hw/scsi/virtio-scsi.o
  GEN   aarch64-linux-user/config-target.h
  CC    aarch64-linux-user/exec.o
  GEN   alpha-linux-user/config-target.h
  CC    alpha-linux-user/exec.o
  CC    alpha-linux-user/translate-all.o
  GEN   xtensaeb-softmmu/hmp-commands.h
  GEN   xtensaeb-softmmu/qmp-commands-old.h
  GEN   xtensaeb-softmmu/config-target.h
  CC    xtensa-softmmu/numa.o
  CC    aarch64-linux-user/translate-all.o
  CC    aarch64-linux-user/cpu-exec.o
  CC    aarch64-linux-user/tcg/tcg.o
  CC    xtensaeb-softmmu/exec.o
  CC    xtensaeb-softmmu/translate-all.o
  CC    sparc64-softmmu/hw/scsi/virtio-scsi-dataplane.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    xtensa-softmmu/qtest.o
  CC    alpha-linux-user/cpu-exec.o
/mnt/sdb/fortify-vm/qemu/translate-all.c: In function ‘size_code_gen_buffer’:
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/translate-all.c:499: error: for each function it appears in.)
make[1]: *** [translate-all.o] Error 1
  CC    alpha-linux-user/tcg/tcg.o
  CC    x86_64-softmmu/gdbstub.o
  CC    sparc-softmmu/target-sparc/fop_helper.o
  CC    aarch64-linux-user/tcg/optimize.o
  CC    sparc64-softmmu/hw/scsi/vhost-scsi.o
  CC    sparc64-softmmu/hw/timer/mc146818rtc.o
  CC    sparc64-softmmu/hw/virtio/virtio.o
  CC    sparc64-softmmu/hw/virtio/virtio-balloon.o
  CC    xtensa-softmmu/bootdevice.o
  CC    sparc-softmmu/target-sparc/cc_helper.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    sparc-softmmu/target-sparc/win_helper.o
  CC    x86_64-softmmu/balloon.o
  CC    xtensa-softmmu/device_tree.o
  CC    xtensa-softmmu/memory.o
  CC    xtensa-softmmu/savevm.o
  CC    sparc-softmmu/target-sparc/mmu_helper.o
  CC    aarch64-linux-user/fpu/softfloat.o
  CC    x86_64-softmmu/ioport.o
  CC    xtensaeb-softmmu/cpu-exec.o
  CC    sparc64-softmmu/hw/virtio/vhost.o
  CC    xtensa-softmmu/cputlb.o
  CC    sparc-softmmu/target-sparc/ldst_helper.o
  CC    sparc-softmmu/target-sparc/int32_helper.o
  CC    x86_64-softmmu/numa.o
  CC    x86_64-softmmu/qtest.o
  CC    alpha-linux-user/tcg/optimize.o
  CC    xtensaeb-softmmu/tcg/tcg.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    x86_64-softmmu/bootdevice.o
  CC    sparc-softmmu/target-sparc/gdbstub.o
  CC    sparc64-softmmu/hw/virtio/vhost-backend.o
  GEN   trace/generated-helpers.c
  CC    sparc-softmmu/trace/generated-helpers.o
  CC    x86_64-softmmu/device_tree.o
  CC    xtensa-softmmu/memory_mapping.o
  CC    xtensa-softmmu/dump.o
  CC    sparc64-softmmu/hw/virtio/vhost-user.o
  CC    x86_64-softmmu/kvm-all.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-sparc-softmmu] Error 2
  CC    xtensa-softmmu/xen-common-stub.o
  CC    sh4-softmmu/target-sh4/op_helper.o
  GEN   armeb-linux-user/config-target.h
  GEN   arm-linux-user/config-target.h
  CC    armeb-linux-user/exec.o
  CC    arm-linux-user/exec.o
  CC    sparc64-softmmu/hw/sparc64/sun4u.o
  GEN   cris-linux-user/config-target.h
  CC    cris-linux-user/exec.o
  CC    alpha-linux-user/fpu/softfloat.o
  CC    xtensa-softmmu/xen-hvm-stub.o
/mnt/sdb/fortify-vm/qemu/hw/sparc64/sun4u.c: In function ‘main_cpu_reset’:
/mnt/sdb/fortify-vm/qemu/hw/sparc64/sun4u.c:418: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/sparc64/sun4u.c:418: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/sparc64/sun4u.c:418: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/sparc64/sun4u.c: In function ‘sun4uv_init’:
/mnt/sdb/fortify-vm/qemu/hw/sparc64/sun4u.c:882: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/sparc64/sun4u.o] Error 1
  CC    sparc64-softmmu/target-sparc/machine.o
  CC    armeb-linux-user/translate-all.o
  CC    xtensa-softmmu/hw/net/vhost_net.o
  CC    cris-linux-user/translate-all.o
  CC    xtensa-softmmu/hw/xtensa/pic_cpu.o
  CC    arm-linux-user/translate-all.o
  CC    sh4-softmmu/target-sh4/helper.o
  CC    x86_64-softmmu/memory.o
  CC    sparc64-softmmu/target-sparc/translate.o
  CC    xtensa-softmmu/hw/xtensa/sim.o
  CC    xtensaeb-softmmu/tcg/optimize.o
  CC    xtensaeb-softmmu/fpu/softfloat.o
  CC    armeb-linux-user/cpu-exec.o
  CC    cris-linux-user/cpu-exec.o
  CC    sh4-softmmu/target-sh4/cpu.o
  CC    xtensa-softmmu/hw/xtensa/xtfpga.o
  CC    arm-linux-user/cpu-exec.o
  CC    cris-linux-user/tcg/tcg.o
  CC    sh4-softmmu/target-sh4/gdbstub.o
  CC    armeb-linux-user/tcg/tcg.o
  CC    xtensa-softmmu/target-xtensa/xtensa-semi.o
  CC    arm-linux-user/tcg/tcg.o
  GEN   trace/generated-helpers.c
  CC    sh4-softmmu/trace/generated-helpers.o
  CC    x86_64-softmmu/savevm.o
  CC    xtensa-softmmu/target-xtensa/core-dc232b.o
  CC    xtensa-softmmu/target-xtensa/core-dc233c.o
  CC    aarch64-linux-user/disas.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-sh4-softmmu] Error 2
  CC    xtensa-softmmu/target-xtensa/core-fsf.o
  CC    xtensa-softmmu/target-xtensa/translate.o
  GEN   i386-linux-user/config-target.h
  CC    i386-linux-user/exec.o
  GEN   aarch64-linux-user/gdbstub-xml.c
  CC    sh4eb-softmmu/trace/generated-helpers.o
  CC    xtensa-softmmu/target-xtensa/op_helper.o
  CC    aarch64-linux-user/kvm-stub.o
  CC    x86_64-softmmu/cputlb.o
  CC    i386-linux-user/translate-all.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-sh4eb-softmmu] Error 2
  CC    aarch64-linux-user/gdbstub.o
  GEN   m68k-linux-user/config-target.h
  CC    m68k-linux-user/exec.o
  CC    cris-linux-user/tcg/optimize.o
  CC    xtensa-softmmu/target-xtensa/helper.o
  CC    armeb-linux-user/tcg/optimize.o
  CC    m68k-linux-user/translate-all.o
  CC    i386-linux-user/cpu-exec.o
  CC    aarch64-linux-user/thunk.o
  CC    arm-linux-user/tcg/optimize.o
  CC    x86_64-softmmu/memory_mapping.o
  CC    alpha-linux-user/disas.o
  CC    xtensa-softmmu/target-xtensa/cpu.o
  CC    i386-linux-user/tcg/tcg.o
  CC    aarch64-linux-user/user-exec.o
  CC    alpha-linux-user/kvm-stub.o
  CC    xtensaeb-softmmu/disas.o
  CC    cris-linux-user/fpu/softfloat.o
  CC    x86_64-softmmu/dump.o
  CC    xtensa-softmmu/target-xtensa/gdbstub.o
  CC    m68k-linux-user/cpu-exec.o
  CC    aarch64-linux-user/linux-user/main.o
  CC    alpha-linux-user/gdbstub.o
  CC    armeb-linux-user/fpu/softfloat.o
  CC    armeb-linux-user/disas.o
  CC    xtensaeb-softmmu/kvm-stub.o
  CC    m68k-linux-user/tcg/tcg.o
  CC    arm-linux-user/fpu/softfloat.o
  CC    xtensaeb-softmmu/arch_init.o
  CC    arm-linux-user/disas.o
  CC    aarch64-linux-user/linux-user/syscall.o
  CC    x86_64-softmmu/xen-common.o
  CC    alpha-linux-user/thunk.o
  GEN   trace/generated-helpers.c
  CC    alpha-linux-user/user-exec.o
  CC    xtensa-softmmu/trace/generated-helpers.o
  CC    x86_64-softmmu/xen-hvm.o
  CC    alpha-linux-user/linux-user/main.o
  CC    xtensaeb-softmmu/cpus.o
  CC    alpha-linux-user/linux-user/syscall.o
/mnt/sdb/fortify-vm/qemu/xen-hvm.c: In function ‘xen_hvm_init’:
/mnt/sdb/fortify-vm/qemu/xen-hvm.c:1157: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/xen-hvm.c:1157: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/xen-hvm.c:1157: error: for each function it appears in.)
make[1]: *** [xen-hvm.o] Error 1
  CC    x86_64-softmmu/xen-mapcache.o
  CC    i386-linux-user/tcg/optimize.o
  CC    alpha-linux-user/linux-user/strace.o
  CC    x86_64-softmmu/hw/9pfs/virtio-9p-device.o
  CC    xtensaeb-softmmu/monitor.o
  CC    m68k-linux-user/tcg/optimize.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-xtensa-softmmu] Error 2
  CC    m68k-linux-user/fpu/softfloat.o
  CC    x86_64-softmmu/hw/block/virtio-blk.o
  CC    alpha-linux-user/linux-user/mmap.o
  CC    i386-linux-user/fpu/softfloat.o
t CC    m68k-linux-user/disas.o
  CC    cris-linux-user/disas.o
  CC    x86_64-softmmu/hw/block/dataplane/virtio-blk.o
  CC    alpha-linux-user/linux-user/signal.o
  CC    cris-linux-user/kvm-stub.o
  GEN   m68k-linux-user/gdbstub-xml.c
  CC    m68k-linux-user/kvm-stub.o
  CC    x86_64-softmmu/hw/char/virtio-serial-bus.o
  CC    cris-linux-user/gdbstub.o
  GEN   armeb-linux-user/gdbstub-xml.c
  CC    armeb-linux-user/kvm-stub.o
  CC    armeb-linux-user/gdbstub.o
  CC    armeb-linux-user/thunk.o
  GEN   arm-linux-user/gdbstub-xml.c
  CC    arm-linux-user/kvm-stub.o
  CC    arm-linux-user/gdbstub.o
  CC    xtensaeb-softmmu/gdbstub.o
  CC    armeb-linux-user/user-exec.o
  CC    x86_64-softmmu/hw/cpu/icc_bus.o
  CC    arm-linux-user/thunk.o
  CC    cris-linux-user/thunk.o
  CC    x86_64-softmmu/hw/display/vga.o
  CC    armeb-linux-user/linux-user/main.o
  CC    armeb-linux-user/linux-user/syscall.o
  CC    armeb-linux-user/linux-user/strace.o
  CC    cris-linux-user/user-exec.o
  CC    arm-linux-user/user-exec.o
  CC    xtensaeb-softmmu/balloon.o
  CC    cris-linux-user/linux-user/main.o
  CC    arm-linux-user/linux-user/main.o
  CC    xtensaeb-softmmu/ioport.o
  CC    armeb-linux-user/linux-user/mmap.o
  CC    armeb-linux-user/linux-user/signal.o
  CC    cris-linux-user/linux-user/syscall.o
  CC    xtensaeb-softmmu/numa.o
  CC    x86_64-softmmu/hw/intc/apic.o
  CC    arm-linux-user/linux-user/syscall.o
  CC    armeb-linux-user/linux-user/elfload.o
/mnt/sdb/fortify-vm/qemu/numa.c: In function ‘set_numa_nodes’:
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/numa.c:202: error: for each function it appears in.)
make[1]: *** [numa.o] Error 1
  CC    xtensaeb-softmmu/qtest.o
  CC    sparc64-softmmu/target-sparc/helper.o
  CC    m68k-linux-user/gdbstub.o
  CC    armeb-linux-user/linux-user/linuxload.o
  CC    sparc64-softmmu/target-sparc/cpu.o
  CC    x86_64-softmmu/hw/intc/apic_common.o
  CC    xtensaeb-softmmu/bootdevice.o
  CC    i386-linux-user/disas.o
  CC    aarch64-linux-user/linux-user/strace.o
/mnt/sdb/fortify-vm/qemu/hw/intc/apic_common.c: In function ‘apic_common_realize’:
/mnt/sdb/fortify-vm/qemu/hw/intc/apic_common.c:317: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/intc/apic_common.c:317: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/intc/apic_common.c:317: error: for each function it appears in.)
make[1]: *** [hw/intc/apic_common.o] Error 1
  CC    x86_64-softmmu/hw/intc/ioapic.o
  CC    x86_64-softmmu/hw/isa/lpc_ich9.o
  CC    xtensaeb-softmmu/device_tree.o
  CC    sparc64-softmmu/target-sparc/fop_helper.o
  CC    armeb-linux-user/linux-user/uaccess.o
  CC    i386-linux-user/kvm-stub.o
  CC    m68k-linux-user/thunk.o
  CC    i386-linux-user/gdbstub.o
  CC    i386-linux-user/thunk.o
  CC    i386-linux-user/user-exec.o
  CC    x86_64-softmmu/hw/misc/vmport.o
  CC    xtensaeb-softmmu/memory.o
  CC    m68k-linux-user/user-exec.o
  CC    alpha-linux-user/linux-user/elfload.o
  CC    aarch64-linux-user/linux-user/mmap.o
  CC    sparc64-softmmu/target-sparc/cc_helper.o
  CC    i386-linux-user/linux-user/main.o
/mnt/sdb/fortify-vm/qemu/hw/misc/vmport.c: In function ‘vmport_cmd_ram_size’:
/mnt/sdb/fortify-vm/qemu/hw/misc/vmport.c:112: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/misc/vmport.c:112: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/misc/vmport.c:112: error: for each function it appears in.)
make[1]: *** [hw/misc/vmport.o] Error 1
  CC    x86_64-softmmu/hw/misc/ivshmem.o
  CC    m68k-linux-user/linux-user/main.o
  CC    i386-linux-user/linux-user/syscall.o
  CC    i386-linux-user/linux-user/strace.o
  CC    sparc64-softmmu/target-sparc/win_helper.o
  CC    aarch64-linux-user/linux-user/signal.o
  CC    alpha-linux-user/linux-user/linuxload.o
  CC    m68k-linux-user/linux-user/syscall.o
  CC    aarch64-linux-user/linux-user/elfload.o
  CC    x86_64-softmmu/hw/misc/vfio.o
  CC    sparc64-softmmu/target-sparc/mmu_helper.o
  CC    aarch64-linux-user/linux-user/linuxload.o
  CC    alpha-linux-user/linux-user/uaccess.o
  CC    xtensaeb-softmmu/savevm.o
  CC    i386-linux-user/linux-user/mmap.o
  CC    alpha-linux-user/linux-user/uname.o
  CC    aarch64-linux-user/linux-user/uaccess.o
  CC    sparc64-softmmu/target-sparc/ldst_helper.o
  CC    aarch64-linux-user/linux-user/uname.o
  CC    alpha-linux-user/target-alpha/translate.o
  CC    alpha-linux-user/target-alpha/helper.o
  CC    aarch64-linux-user/linux-user/flatload.o
  CC    xtensaeb-softmmu/cputlb.o
  CC    aarch64-linux-user/target-arm/arm-semi.o
  CC    alpha-linux-user/target-alpha/cpu.o
  CC    aarch64-linux-user/target-arm/kvm-stub.o
  CC    x86_64-softmmu/hw/misc/pvpanic.o
  CC    aarch64-linux-user/target-arm/translate.o
  CC    sparc64-softmmu/target-sparc/int64_helper.o
  CC    aarch64-linux-user/target-arm/op_helper.o
  CC    alpha-linux-user/target-alpha/int_helper.o
  CC    x86_64-softmmu/hw/net/virtio-net.o
  CC    sparc64-softmmu/target-sparc/vis_helper.o
  CC    alpha-linux-user/target-alpha/fpu_helper.o
  CC    alpha-linux-user/target-alpha/sys_helper.o
  CC    xtensaeb-softmmu/memory_mapping.o
  CC    sparc64-softmmu/target-sparc/gdbstub.o
  GEN   trace/generated-helpers.c
  CC    cris-linux-user/linux-user/strace.o
  CC    xtensaeb-softmmu/dump.o
  CC    alpha-linux-user/target-alpha/mem_helper.o
  CC    alpha-linux-user/target-alpha/gdbstub.o
  CC    x86_64-softmmu/hw/net/vhost_net.o
  CC    sparc64-softmmu/trace/generated-helpers.o
  GEN   trace/generated-helpers.c
  CC    alpha-linux-user/trace/generated-helpers.o
  CC    x86_64-softmmu/hw/scsi/virtio-scsi.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-sparc64-softmmu] Error 2
  CC    xtensaeb-softmmu/xen-common-stub.o
  GEN   microblaze-linux-user/config-target.h
  CC    microblaze-linux-user/exec.o
  GEN   microblazeel-linux-user/config-target.h
  CC    microblazeel-linux-user/exec.o
  CC    cris-linux-user/linux-user/mmap.o
  LINK  alpha-linux-user/qemu-alpha
  CC    xtensaeb-softmmu/xen-hvm-stub.o
  CC    xtensaeb-softmmu/hw/net/vhost_net.o
  CC    x86_64-softmmu/hw/scsi/virtio-scsi-dataplane.o
  CC    x86_64-softmmu/hw/scsi/vhost-scsi.o
  CC    microblaze-linux-user/translate-all.o
  CC    xtensaeb-softmmu/hw/xtensa/pic_cpu.o
  CC    microblazeel-linux-user/translate-all.o
  CC    cris-linux-user/linux-user/signal.o
  CC    cris-linux-user/linux-user/elfload.o
  CC    arm-linux-user/linux-user/strace.o
  CC    x86_64-softmmu/hw/timer/mc146818rtc.o
  CC    x86_64-softmmu/hw/virtio/virtio.o
  CC    xtensaeb-softmmu/hw/xtensa/sim.o
  CC    microblazeel-linux-user/cpu-exec.o
  CC    xtensaeb-softmmu/hw/xtensa/xtfpga.o
  CC    microblaze-linux-user/cpu-exec.o
  CC    microblaze-linux-user/tcg/tcg.o
  CC    cris-linux-user/linux-user/linuxload.o
  CC    arm-linux-user/linux-user/mmap.o
  CC    x86_64-softmmu/hw/virtio/virtio-balloon.o
  CC    cris-linux-user/linux-user/uaccess.o
  CC    xtensaeb-softmmu/target-xtensa/xtensa-semi.o
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_set_config’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:300: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_stat’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:315: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c: In function ‘virtio_balloon_to_target’:
/mnt/sdb/fortify-vm/qemu/hw/virtio/virtio-balloon.c:324: error: ‘ram_size’ undeclared (first use in this function)
  CC    microblazeel-linux-user/tcg/tcg.o
make[1]: *** [hw/virtio/virtio-balloon.o] Error 1
  CC    microblazeel-linux-user/tcg/optimize.o
  CC    x86_64-softmmu/hw/virtio/vhost.o
  CC    x86_64-softmmu/hw/virtio/vhost-backend.o
  CC    cris-linux-user/linux-user/uname.o
  CC    arm-linux-user/linux-user/signal.o
  CC    armeb-linux-user/linux-user/uname.o
  CC    xtensaeb-softmmu/target-xtensa/core-dc232b.o
  CC    x86_64-softmmu/hw/virtio/vhost-user.o
  CC    i386-linux-user/linux-user/signal.o
  CC    cris-linux-user/target-cris/translate.o
  CC    x86_64-softmmu/hw/xen/xen-host-pci-device.o
  CC    xtensaeb-softmmu/target-xtensa/core-dc233c.o
  CC    armeb-linux-user/linux-user/flatload.o
  CC    x86_64-softmmu/hw/xen/xen_pt.o
  CC    arm-linux-user/linux-user/elfload.o
  CC    microblazeel-linux-user/fpu/softfloat.o
  CC    xtensaeb-softmmu/target-xtensa/core-fsf.o
  CC    i386-linux-user/linux-user/elfload.o
  CC    x86_64-softmmu/hw/xen/xen_pt_config_init.o
  CC    armeb-linux-user/linux-user/arm/nwfpe/fpa11.o
  CC    xtensaeb-softmmu/target-xtensa/translate.o
  CC    microblaze-linux-user/tcg/optimize.o
  CC    armeb-linux-user/linux-user/arm/nwfpe/fpa11_cpdo.o
  CC    m68k-linux-user/linux-user/strace.o
  CC    xtensaeb-softmmu/target-xtensa/op_helper.o
  CC    microblazeel-linux-user/disas.o
  CC    arm-linux-user/linux-user/linuxload.o
  CC    armeb-linux-user/linux-user/arm/nwfpe/fpa11_cpdt.o
  CC    x86_64-softmmu/hw/xen/xen_pt_msi.o
  CC    i386-linux-user/linux-user/linuxload.o
  CC    microblazeel-linux-user/kvm-stub.o
  CC    microblaze-linux-user/fpu/softfloat.o
  CC    m68k-linux-user/linux-user/mmap.o
  CC    arm-linux-user/linux-user/uaccess.o
  CC    i386-linux-user/linux-user/uaccess.o
  CC    xtensaeb-softmmu/target-xtensa/helper.o
  CC    microblazeel-linux-user/gdbstub.o
  CC    armeb-linux-user/linux-user/arm/nwfpe/fpa11_cprt.o
  CC    arm-linux-user/linux-user/uname.o
  CC    x86_64-softmmu/hw/i386/multiboot.o
  CC    i386-linux-user/linux-user/uname.o
  CC    armeb-linux-user/linux-user/arm/nwfpe/fpopcode.o
  CC    m68k-linux-user/linux-user/signal.o
  CC    arm-linux-user/linux-user/flatload.o
  CC    x86_64-softmmu/hw/i386/smbios.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpa11.o
  CC    i386-linux-user/linux-user/vm86.o
  CC    armeb-linux-user/linux-user/arm/nwfpe/single_cpdo.o
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c: In function ‘smbios_build_type_16_table’:
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c:655: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c:655: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c:655: error: for each function it appears in.)
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c: In function ‘smbios_get_tables’:
/mnt/sdb/fortify-vm/qemu/hw/i386/smbios.c:855: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/i386/smbios.o] Error 1
  CC    x86_64-softmmu/hw/i386/pc.o
  CC    x86_64-softmmu/hw/i386/pc_piix.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpa11_cpdo.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpa11_cpdt.o
  CC    armeb-linux-user/linux-user/arm/nwfpe/double_cpdo.o
  CC    i386-linux-user/target-i386/translate.o
  CC    m68k-linux-user/linux-user/elfload.o
  CC    arm-linux-user/linux-user/arm/nwfpe/fpa11_cprt.o
/mnt/sdb/fortify-vm/qemu/hw/i386/pc.c: In function ‘bochs_bios_init’:
/mnt/sdb/fortify-vm/qemu/hw/i386/pc.c:667: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/i386/pc.c:667: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/i386/pc.c:667: error: for each function it appears in.)
make[1]: *** [hw/i386/pc.o] Error 1
  CC    arm-linux-user/linux-user/arm/nwfpe/fpopcode.o
  CC    armeb-linux-user/linux-user/arm/nwfpe/extended_cpdo.o
  CC    armeb-linux-user/target-arm/arm-semi.o
  CC    x86_64-softmmu/hw/i386/pc_q35.o
  CC    arm-linux-user/linux-user/arm/nwfpe/single_cpdo.o
  CC    arm-linux-user/linux-user/arm/nwfpe/double_cpdo.o
  CC    armeb-linux-user/target-arm/kvm-stub.o
  CC    armeb-linux-user/target-arm/translate.o
  CC    armeb-linux-user/target-arm/op_helper.o
  CC    arm-linux-user/linux-user/arm/nwfpe/extended_cpdo.o
  CC    x86_64-softmmu/hw/i386/pc_sysfw.o
  CC    armeb-linux-user/target-arm/helper.o
  CC    m68k-linux-user/linux-user/linuxload.o
  CC    cris-linux-user/target-cris/op_helper.o
  CC    arm-linux-user/target-arm/arm-semi.o
  CC    x86_64-softmmu/hw/i386/intel_iommu.o
  CC    microblazeel-linux-user/thunk.o
  CC    m68k-linux-user/linux-user/uaccess.o
  CC    m68k-linux-user/linux-user/uname.o
  CC    cris-linux-user/target-cris/helper.o
  CC    x86_64-softmmu/hw/i386/kvmvapic.o
  CC    microblazeel-linux-user/user-exec.o
  CC    cris-linux-user/target-cris/cpu.o
  CC    arm-linux-user/target-arm/kvm-stub.o
  CC    m68k-linux-user/linux-user/flatload.o
  CC    microblazeel-linux-user/linux-user/main.o
  CPP x86_64-softmmu/acpi-dsdt.dsl.i.orig
  ACPI_PREPROCESS x86_64-softmmu/acpi-dsdt.dsl.i
  CC    arm-linux-user/target-arm/translate.o
  CC    cris-linux-user/target-cris/gdbstub.o
  IASL x86_64-softmmu/acpi-dsdt.dsl.i
  ACPI_EXTRACT x86_64-softmmu/acpi-dsdt.off
  CAT x86_64-softmmu/hw/i386/acpi-dsdt.hex
  CPP x86_64-softmmu/ssdt-proc.dsl.i.orig
  CC    microblazeel-linux-user/linux-user/syscall.o
  ACPI_PREPROCESS x86_64-softmmu/ssdt-proc.dsl.i
  CC    m68k-linux-user/linux-user/m68k-sim.o
  CC    xtensaeb-softmmu/target-xtensa/cpu.o
  IASL x86_64-softmmu/ssdt-proc.dsl.i
  ACPI_EXTRACT x86_64-softmmu/ssdt-proc.off
  CAT x86_64-softmmu/hw/i386/ssdt-proc.hex
  CPP x86_64-softmmu/ssdt-pcihp.dsl.i.orig
  ACPI_PREPROCESS x86_64-softmmu/ssdt-pcihp.dsl.i
  GEN   trace/generated-helpers.c
  IASL x86_64-softmmu/ssdt-pcihp.dsl.i
  ACPI_EXTRACT x86_64-softmmu/ssdt-pcihp.off
  CAT x86_64-softmmu/hw/i386/ssdt-pcihp.hex
  CPP x86_64-softmmu/ssdt-misc.dsl.i.orig
  CC    cris-linux-user/trace/generated-helpers.o
  ACPI_PREPROCESS x86_64-softmmu/ssdt-misc.dsl.i
  CC    microblaze-linux-user/disas.o
  IASL x86_64-softmmu/ssdt-misc.dsl.i
  ACPI_EXTRACT x86_64-softmmu/ssdt-misc.off
  CAT x86_64-softmmu/hw/i386/ssdt-misc.hex
  CPP x86_64-softmmu/q35-acpi-dsdt.dsl.i.orig
  ACPI_PREPROCESS x86_64-softmmu/q35-acpi-dsdt.dsl.i
  IASL x86_64-softmmu/q35-acpi-dsdt.dsl.i
  CC    m68k-linux-user/target-m68k/m68k-semi.o
  CC    microblazeel-linux-user/linux-user/strace.o
  ACPI_EXTRACT x86_64-softmmu/q35-acpi-dsdt.off
  CC    xtensaeb-softmmu/target-xtensa/gdbstub.o
  LINK  cris-linux-user/qemu-cris
  CC    microblaze-linux-user/kvm-stub.o
  CAT x86_64-softmmu/hw/i386/q35-acpi-dsdt.hex
  CPP x86_64-softmmu/ssdt-mem.dsl.i.orig
  ACPI_PREPROCESS x86_64-softmmu/ssdt-mem.dsl.i
  IASL x86_64-softmmu/ssdt-mem.dsl.i
  ACPI_EXTRACT x86_64-softmmu/ssdt-mem.off
  CPP x86_64-softmmu/ssdt-tpm.dsl.i.orig
  ACPI_PREPROCESS x86_64-softmmu/ssdt-tpm.dsl.i
  CAT x86_64-softmmu/hw/i386/ssdt-mem.hex
  CC    m68k-linux-user/target-m68k/translate.o
  IASL x86_64-softmmu/ssdt-tpm.dsl.i
  ACPI_EXTRACT x86_64-softmmu/ssdt-tpm.off
  CAT x86_64-softmmu/hw/i386/ssdt-tpm.hex
  CC    x86_64-softmmu/hw/i386/bios-linker-loader.o
  GEN   trace/generated-helpers.c
  CC    armeb-linux-user/target-arm/cpu.o
  CC    xtensaeb-softmmu/trace/generated-helpers.o
  CC    microblaze-linux-user/gdbstub.o
  CC    m68k-linux-user/target-m68k/op_helper.o
  CC    x86_64-softmmu/hw/i386/../xenpv/xen_domainbuild.o
  CC    x86_64-softmmu/hw/i386/../xenpv/xen_machine_pv.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-xtensaeb-softmmu] Error 2
  CC    m68k-linux-user/target-m68k/helper.o
  CC    m68k-linux-user/target-m68k/cpu.o
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c: In function ‘xenstore_domain_init1’:
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c:82: error: ‘ram_size’ undeclared (first use in this function)
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c:82: error: (Each undeclared identifier is reported only once
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c:82: error: for each function it appears in.)
  GEN   mips-linux-user/config-target.h
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c: In function ‘xen_domain_build_pv’:
/mnt/sdb/fortify-vm/qemu/hw/i386/../xenpv/xen_domainbuild.c:264: error: ‘ram_size’ undeclared (first use in this function)
make[1]: *** [hw/i386/../xenpv/xen_domainbuild.o] Error 1
  CC    x86_64-softmmu/hw/i386/kvm/clock.o
  CC    mips-linux-user/exec.o
  CC    mips-linux-user/translate-all.o
  CC    microblaze-linux-user/thunk.o
  CC    mips-linux-user/cpu-exec.o
  CC    x86_64-softmmu/hw/i386/kvm/apic.o
  CC    x86_64-softmmu/hw/i386/kvm/i8259.o
  CC    m68k-linux-user/target-m68k/gdbstub.o
  CC    microblaze-linux-user/user-exec.o
  CC    microblaze-linux-user/linux-user/main.o
  CC    mips-linux-user/tcg/tcg.o
  CC    x86_64-softmmu/hw/i386/kvm/ioapic.o
  CC    x86_64-softmmu/hw/i386/kvm/i8254.o
  GEN   trace/generated-helpers.c
  CC    m68k-linux-user/gdbstub-xml.o
  CC    microblaze-linux-user/linux-user/syscall.o
  CC    microblaze-linux-user/linux-user/strace.o
  CC    m68k-linux-user/trace/generated-helpers.o
  CC    x86_64-softmmu/hw/i386/kvm/pci-assign.o
  CC    x86_64-softmmu/hw/i386/xen/xen_platform.o
  CC    x86_64-softmmu/hw/i386/xen/xen_apic.o
  CC    x86_64-softmmu/hw/i386/xen/xen_pvdevice.o
  CC    x86_64-softmmu/target-i386/translate.o
  CC    armeb-linux-user/target-arm/neon_helper.o
  CC    x86_64-softmmu/target-i386/helper.o
  LINK  m68k-linux-user/qemu-m68k
  CC    x86_64-softmmu/target-i386/cpu.o
  GEN   mips64-linux-user/config-target.h
  CC    mips64-linux-user/exec.o
  CC    mips-linux-user/tcg/optimize.o
  CC    mips-linux-user/fpu/softfloat.o
  CC    mips64-linux-user/translate-all.o
  CC    x86_64-softmmu/target-i386/excp_helper.o
  CC    x86_64-softmmu/target-i386/fpu_helper.o
  CC    mips64-linux-user/cpu-exec.o
  CC    mips-linux-user/disas.o
  CC    armeb-linux-user/target-arm/iwmmxt_helper.o
  CC    mips-linux-user/kvm-stub.o
  CC    mips64-linux-user/tcg/tcg.o
  CC    mips-linux-user/gdbstub.o
  CC    microblazeel-linux-user/linux-user/mmap.o
  CC    microblazeel-linux-user/linux-user/signal.o
  CC    microblazeel-linux-user/linux-user/elfload.o
  CC    armeb-linux-user/target-arm/gdbstub.o
  CC    armeb-linux-user/target-arm/crypto_helper.o
  CC    mips-linux-user/thunk.o
  GEN   trace/generated-helpers.c
  CC    armeb-linux-user/gdbstub-xml.o
  CC    armeb-linux-user/trace/generated-helpers.o
  CC    microblazeel-linux-user/linux-user/linuxload.o
  CC    mips64-linux-user/tcg/optimize.o
  CC    mips-linux-user/user-exec.o
  CC    mips-linux-user/linux-user/main.o
  CC    mips-linux-user/linux-user/syscall.o
  CC    microblazeel-linux-user/linux-user/uaccess.o
  CC    mips-linux-user/linux-user/strace.o
  CC    microblazeel-linux-user/linux-user/uname.o
  CC    mips-linux-user/linux-user/mmap.o
  CC    microblazeel-linux-user/linux-user/flatload.o
  CC    x86_64-softmmu/target-i386/cc_helper.o
  CC    mips64-linux-user/fpu/softfloat.o
  CC    mips-linux-user/linux-user/signal.o
  CC    microblazeel-linux-user/target-microblaze/translate.o
  CC    mips-linux-user/linux-user/elfload.o
  CC    x86_64-softmmu/target-i386/int_helper.o
  CC    mips-linux-user/linux-user/linuxload.o
  CC    mips-linux-user/linux-user/uaccess.o
  CC    microblazeel-linux-user/target-microblaze/op_helper.o
  CC    microblaze-linux-user/linux-user/mmap.o
  CC    microblaze-linux-user/linux-user/signal.o
  CC    mips-linux-user/linux-user/uname.o
  CC    microblazeel-linux-user/target-microblaze/helper.o
  CC    mips-linux-user/target-mips/translate.o
  CC    microblaze-linux-user/linux-user/elfload.o
  CC    microblazeel-linux-user/target-microblaze/cpu.o
  CC    microblaze-linux-user/linux-user/linuxload.o
  CC    microblazeel-linux-user/target-microblaze/gdbstub.o
  CC    microblaze-linux-user/linux-user/uaccess.o
  GEN   trace/generated-helpers.c
  CC    microblazeel-linux-user/trace/generated-helpers.o
  CC    microblaze-linux-user/linux-user/uname.o
  CC    microblaze-linux-user/linux-user/flatload.o
  CC    microblaze-linux-user/target-microblaze/translate.o
  LINK  microblazeel-linux-user/qemu-microblazeel
  CC    microblaze-linux-user/target-microblaze/op_helper.o
  CC    microblaze-linux-user/target-microblaze/helper.o
  CC    i386-linux-user/target-i386/helper.o
  GEN   mips64el-linux-user/config-target.h
  CC    mips64el-linux-user/exec.o
  CC    mips64el-linux-user/translate-all.o
  CC    mips64-linux-user/disas.o
  CC    mips64-linux-user/kvm-stub.o
  CC    i386-linux-user/target-i386/cpu.o
  CC    mips64el-linux-user/cpu-exec.o
  CC    mips64-linux-user/gdbstub.o
  GEN   mipsel-linux-user/config-target.h
  CC    mipsel-linux-user/exec.o
  CC    mipsel-linux-user/translate-all.o
  CC    mips64el-linux-user/tcg/tcg.o
  CC    mips64el-linux-user/tcg/optimize.o
  CC    i386-linux-user/target-i386/excp_helper.o
  CC    mipsel-linux-user/cpu-exec.o
  CC    mips64-linux-user/thunk.o
  CC    i386-linux-user/target-i386/fpu_helper.o
  CC    mipsel-linux-user/tcg/tcg.o
  CC    microblaze-linux-user/target-microblaze/cpu.o
  CC    mips64-linux-user/user-exec.o
  CC    microblaze-linux-user/target-microblaze/gdbstub.o
  CC    mips64el-linux-user/fpu/softfloat.o
  CC    mips64-linux-user/linux-user/main.o
  CC    aarch64-linux-user/target-arm/helper.o
  GEN   trace/generated-helpers.c
  CC    microblaze-linux-user/trace/generated-helpers.o
  LINK  microblaze-linux-user/qemu-microblaze
  CC    aarch64-linux-user/target-arm/cpu.o
  CC    mips64-linux-user/linux-user/syscall.o
  GEN   mipsn32-linux-user/config-target.h
  CC    mipsn32-linux-user/exec.o
  CC    mipsel-linux-user/tcg/optimize.o
  CC    aarch64-linux-user/target-arm/neon_helper.o
  CC    mips-linux-user/target-mips/dsp_helper.o
  CC    mipsn32-linux-user/translate-all.o
  CC    mipsn32-linux-user/cpu-exec.o
  CC    mipsel-linux-user/fpu/softfloat.o
  CC    mipsn32-linux-user/tcg/tcg.o
  CC    mipsn32-linux-user/tcg/optimize.o
  CC    mips-linux-user/target-mips/op_helper.o
  CC    i386-linux-user/target-i386/cc_helper.o
  CC    aarch64-linux-user/target-arm/iwmmxt_helper.o
  CC    i386-linux-user/target-i386/int_helper.o
  CC    mipsn32-linux-user/fpu/softfloat.o
  CC    mips64el-linux-user/disas.o
  CC    i386-linux-user/target-i386/svm_helper.o
  CC    i386-linux-user/target-i386/smm_helper.o
  CC    mips64el-linux-user/kvm-stub.o
  CC    i386-linux-user/target-i386/misc_helper.o
  CC    mipsn32-linux-user/disas.o
  CC    mips64el-linux-user/gdbstub.o
  CC    mipsn32-linux-user/kvm-stub.o
  CC    i386-linux-user/target-i386/mem_helper.o
  CC    mipsn32-linux-user/gdbstub.o
  CC    aarch64-linux-user/target-arm/gdbstub.o
  CC    i386-linux-user/target-i386/seg_helper.o
  LINK  armeb-linux-user/qemu-armeb
  CC    aarch64-linux-user/target-arm/cpu64.o
  CC    mips64el-linux-user/thunk.o
  CC    i386-linux-user/target-i386/gdbstub.o
  CC    mipsel-linux-user/disas.o
  CC    aarch64-linux-user/target-arm/translate-a64.o
  CC    mipsel-linux-user/kvm-stub.o
  CC    mips64el-linux-user/user-exec.o
  CC    i386-linux-user/target-i386/kvm-stub.o
  CC    mipsel-linux-user/gdbstub.o
  CC    mips64el-linux-user/linux-user/main.o
  CC    mipsel-linux-user/thunk.o
  CC    mipsel-linux-user/user-exec.o
  CC    i386-linux-user/target-i386/ioport-user.o
  CC    mipsel-linux-user/linux-user/main.o
  GEN   trace/generated-helpers.c
  CC    mipsel-linux-user/linux-user/syscall.o
  CC    i386-linux-user/trace/generated-helpers.o
  CC    mips-linux-user/target-mips/lmi_helper.o
  CC    mips64el-linux-user/linux-user/syscall.o
  CC    mipsel-linux-user/linux-user/strace.o
  LINK  i386-linux-user/qemu-i386
  CC    mipsel-linux-user/linux-user/mmap.o
  CC    arm-linux-user/target-arm/op_helper.o
  CC    mips64-linux-user/linux-user/strace.o
  CC    mips-linux-user/target-mips/helper.o
  CC    mipsn32-linux-user/thunk.o
  GEN   mipsn32el-linux-user/config-target.h
  CC    mipsn32el-linux-user/exec.o
  CC    mipsn32el-linux-user/translate-all.o
  CC    mipsel-linux-user/linux-user/signal.o
  CC    mipsel-linux-user/linux-user/elfload.o
  CC    mipsn32-linux-user/user-exec.o
  CC    mips64-linux-user/linux-user/mmap.o
  CC    arm-linux-user/target-arm/helper.o
  CC    arm-linux-user/target-arm/cpu.o
/mnt/sdb/fortify-vm/qemu/target-arm/translate-a64.c: In function ‘handle_shri_with_rndacc’:
/mnt/sdb/fortify-vm/qemu/target-arm/translate-a64.c:6072: warning: ‘tcg_src_hi’ may be used uninitialized in this function
  CC    arm-linux-user/target-arm/neon_helper.o
  CC    mipsn32-linux-user/linux-user/main.o
  CC    mipsn32el-linux-user/cpu-exec.o
  CC    x86_64-softmmu/target-i386/svm_helper.o
  CC    mips64-linux-user/linux-user/signal.o
  CC    mips64-linux-user/linux-user/elfload.o
  CC    x86_64-softmmu/target-i386/smm_helper.o
  CC    mipsn32el-linux-user/tcg/tcg.o
  CC    mipsn32-linux-user/linux-user/syscall.o
  CC    mips64-linux-user/linux-user/linuxload.o
  CC    mips64-linux-user/linux-user/uaccess.o
  CC    x86_64-softmmu/target-i386/misc_helper.o
  CC    x86_64-softmmu/target-i386/mem_helper.o
  CC    mips64-linux-user/linux-user/uname.o
  CC    mipsn32-linux-user/linux-user/strace.o
  CC    x86_64-softmmu/target-i386/seg_helper.o
  CC    mips64-linux-user/target-mips/translate.o
  CC    mips64-linux-user/target-mips/dsp_helper.o
  CC    arm-linux-user/target-arm/iwmmxt_helper.o
  CC    arm-linux-user/target-arm/gdbstub.o
  CC    mipsn32-linux-user/linux-user/mmap.o
  CC    arm-linux-user/target-arm/crypto_helper.o
  CC    mipsn32el-linux-user/tcg/optimize.o
  CC    mipsn32el-linux-user/fpu/softfloat.o
  CC    mipsn32-linux-user/linux-user/signal.o
/mnt/sdb/fortify-vm/qemu/target-arm/translate-a64.c: In function ‘disas_simd_scalar_two_reg_misc’:
/mnt/sdb/fortify-vm/qemu/target-arm/translate-a64.c:7801: warning: ‘rmode’ may be used uninitialized in this function
  GEN   trace/generated-helpers.c
  CC    arm-linux-user/gdbstub-xml.o
  CC    mipsn32-linux-user/linux-user/elfload.o
  CC    arm-linux-user/trace/generated-helpers.o
  CC    mips64-linux-user/target-mips/op_helper.o
  LINK  arm-linux-user/qemu-arm
  CC    mipsn32el-linux-user/disas.o
  CC    mipsn32el-linux-user/kvm-stub.o
  CC    mipsn32el-linux-user/gdbstub.o
  CC    mipsn32-linux-user/linux-user/linuxload.o
  CC    aarch64-linux-user/target-arm/helper-a64.o
  CC    mipsel-linux-user/linux-user/linuxload.o
  CC    mips64el-linux-user/linux-user/strace.o
  CC    mips64el-linux-user/linux-user/mmap.o
  CC    mips64el-linux-user/linux-user/signal.o
  CC    mipsel-linux-user/linux-user/uaccess.o
  CC    aarch64-linux-user/target-arm/gdbstub64.o
  CC    mips64el-linux-user/linux-user/elfload.o
  CC    mipsel-linux-user/linux-user/uname.o
  CC    x86_64-softmmu/target-i386/gdbstub.o
  CC    x86_64-softmmu/target-i386/machine.o
  CC    mipsn32el-linux-user/thunk.o
  CC    aarch64-linux-user/target-arm/crypto_helper.o
  GEN   trace/generated-helpers.c
  CC    x86_64-softmmu/target-i386/arch_memory_mapping.o
  CC    mipsel-linux-user/target-mips/translate.o
  CC    x86_64-softmmu/target-i386/arch_dump.o
  CC    x86_64-softmmu/target-i386/kvm.o
  CC    mipsn32el-linux-user/user-exec.o
  CC    mipsn32el-linux-user/linux-user/main.o
  CC    aarch64-linux-user/gdbstub-xml.o
  CC    mips64el-linux-user/linux-user/linuxload.o
  CC    mips64el-linux-user/linux-user/uaccess.o
  GEN   trace/generated-helpers.c
  CC    x86_64-softmmu/hw/i386/acpi-build.o
  CC    aarch64-linux-user/trace/generated-helpers.o
  CC    mips64el-linux-user/linux-user/uname.o
  CC    mipsn32el-linux-user/linux-user/syscall.o
  CC    mipsn32el-linux-user/linux-user/strace.o
  LINK  aarch64-linux-user/qemu-aarch64
  CC    mips64el-linux-user/target-mips/translate.o
  CC    mipsn32el-linux-user/linux-user/mmap.o
  CC    x86_64-softmmu/trace/generated-helpers.o
  GEN   or32-linux-user/config-target.h
  CC    or32-linux-user/exec.o
  CC    or32-linux-user/translate-all.o
  GEN   ppc-linux-user/config-target.h
  CC    ppc-linux-user/exec.o
  CC    ppc-linux-user/translate-all.o
make[1]: Target `all' not remade because of errors.
make: *** [subdir-x86_64-softmmu] Error 2
  CC    mips64-linux-user/target-mips/lmi_helper.o
  CC    mipsn32-linux-user/linux-user/uaccess.o
  CC    or32-linux-user/cpu-exec.o
  GEN   ppc64-linux-user/config-target.h
  CC    ppc64-linux-user/exec.o
  CC    ppc64-linux-user/translate-all.o
  CC    ppc64-linux-user/cpu-exec.o
  CC    mipsn32-linux-user/linux-user/uname.o
  CC    or32-linux-user/tcg/tcg.o
  CC    ppc-linux-user/cpu-exec.o
  CC    ppc64-linux-user/tcg/tcg.o
  CC    mipsn32-linux-user/target-mips/translate.o
  CC    mipsn32-linux-user/target-mips/dsp_helper.o
  CC    mipsn32-linux-user/target-mips/op_helper.o
  CC    ppc64-linux-user/tcg/optimize.o
  CC    ppc-linux-user/tcg/tcg.o
  CC    ppc64-linux-user/fpu/softfloat.o
  CC    or32-linux-user/tcg/optimize.o
  CC    ppc-linux-user/tcg/optimize.o
  CC    mips-linux-user/target-mips/cpu.o
  CC    ppc64-linux-user/disas.o
  CC    mipsn32-linux-user/target-mips/lmi_helper.o
  CC    mips-linux-user/target-mips/gdbstub.o
  CC    mips-linux-user/target-mips/msa_helper.o
  CC    or32-linux-user/fpu/softfloat.o
  CC    ppc-linux-user/fpu/softfloat.o
  CC    mipsn32-linux-user/target-mips/helper.o
  CC    ppc-linux-user/disas.o
  GEN   ppc-linux-user/gdbstub-xml.c
  CC    ppc-linux-user/kvm-stub.o
  CC    ppc-linux-user/libdecnumber/decContext.o
  CC    ppc-linux-user/libdecnumber/decNumber.o
  CC    ppc-linux-user/libdecnumber/dpd/decimal32.o
  CC    mipsn32el-linux-user/linux-user/signal.o
  CC    mipsn32-linux-user/target-mips/cpu.o
  CC    ppc-linux-user/libdecnumber/dpd/decimal64.o
  CC    mipsn32-linux-user/target-mips/gdbstub.o
  CC    ppc-linux-user/libdecnumber/dpd/decimal128.o
  CC    mipsn32el-linux-user/linux-user/elfload.o
  CC    mipsn32-linux-user/target-mips/msa_helper.o
  CC    ppc-linux-user/gdbstub.o
  GEN   ppc64-linux-user/gdbstub-xml.c
  CC    ppc64-linux-user/kvm-stub.o
  CC    ppc64-linux-user/libdecnumber/decContext.o
  CC    mipsn32el-linux-user/linux-user/linuxload.o
  CC    ppc64-linux-user/libdecnumber/decNumber.o
  CC    ppc-linux-user/thunk.o
  CC    mipsn32el-linux-user/linux-user/uaccess.o
  CC    ppc-linux-user/user-exec.o
  CC    ppc-linux-user/linux-user/main.o
  CC    mipsn32el-linux-user/linux-user/uname.o
  CC    or32-linux-user/disas.o
  CC    ppc-linux-user/linux-user/syscall.o
  CC    mipsn32el-linux-user/target-mips/translate.o
  CC    or32-linux-user/kvm-stub.o
  CC    ppc-linux-user/linux-user/strace.o
  CC    ppc-linux-user/linux-user/mmap.o
  CC    or32-linux-user/gdbstub.o
  CC    ppc-linux-user/linux-user/signal.o
  CC    or32-linux-user/thunk.o
  CC    ppc64-linux-user/libdecnumber/dpd/decimal32.o
  CC    or32-linux-user/user-exec.o
  CC    ppc64-linux-user/libdecnumber/dpd/decimal64.o
  CC    ppc-linux-user/linux-user/elfload.o
  CC    or32-linux-user/linux-user/main.o
  CC    ppc64-linux-user/libdecnumber/dpd/decimal128.o
  CC    ppc-linux-user/linux-user/linuxload.o
  CC    ppc64-linux-user/gdbstub.o
  CC    or32-linux-user/linux-user/syscall.o
  CC    ppc-linux-user/linux-user/uaccess.o
  CC    or32-linux-user/linux-user/strace.o
  CC    ppc-linux-user/linux-user/uname.o
  CC    ppc64-linux-user/thunk.o
  CC    ppc-linux-user/target-ppc/cpu-models.o
  CC    or32-linux-user/linux-user/mmap.o
  CC    ppc64-linux-user/user-exec.o
  GEN   trace/generated-helpers.c
  CC    mips-linux-user/trace/generated-helpers.o
  CC    ppc64-linux-user/linux-user/main.o
  CC    or32-linux-user/linux-user/signal.o
  LINK  mips-linux-user/qemu-mips
  CC    or32-linux-user/linux-user/elfload.o
  GEN   ppc64abi32-linux-user/config-target.h
  CC    ppc64abi32-linux-user/exec.o
  CC    ppc64-linux-user/linux-user/syscall.o
  CC    ppc64abi32-linux-user/translate-all.o
  CC    ppc64abi32-linux-user/cpu-exec.o
  CC    ppc64abi32-linux-user/tcg/tcg.o
  CC    ppc64abi32-linux-user/tcg/optimize.o
  CC    ppc64abi32-linux-user/fpu/softfloat.o
  GEN   trace/generated-helpers.c
  CC    ppc-linux-user/target-ppc/translate.o
  CC    mipsn32-linux-user/trace/generated-helpers.o
  CC    ppc64abi32-linux-user/disas.o
  GEN   ppc64abi32-linux-user/gdbstub-xml.c
  CC    ppc64abi32-linux-user/kvm-stub.o
  CC    ppc64abi32-linux-user/libdecnumber/decContext.o
  CC    ppc64abi32-linux-user/libdecnumber/decNumber.o
  CC    ppc64abi32-linux-user/libdecnumber/dpd/decimal32.o
  CC    or32-linux-user/linux-user/linuxload.o
  CC    ppc64abi32-linux-user/libdecnumber/dpd/decimal64.o
  CC    or32-linux-user/linux-user/uaccess.o
  CC    ppc64abi32-linux-user/libdecnumber/dpd/decimal128.o
  CC    ppc64abi32-linux-user/gdbstub.o
  CC    ppc64abi32-linux-user/thunk.o
  CC    ppc64abi32-linux-user/user-exec.o
  CC    ppc64abi32-linux-user/linux-user/main.o
  CC    ppc64abi32-linux-user/linux-user/syscall.o
  CC    or32-linux-user/linux-user/uname.o
  CC    ppc64abi32-linux-user/linux-user/strace.o
  CC    or32-linux-user/target-openrisc/cpu.o
  CC    or32-linux-user/target-openrisc/exception.o
  CC    or32-linux-user/target-openrisc/interrupt.o
  CC    ppc64abi32-linux-user/linux-user/mmap.o
  CC    or32-linux-user/target-openrisc/mmu.o
  CC    ppc64-linux-user/linux-user/strace.o
  CC    ppc64-linux-user/linux-user/mmap.o
  CC    or32-linux-user/target-openrisc/translate.o
  CC    ppc64abi32-linux-user/linux-user/signal.o
  CC    ppc64-linux-user/linux-user/signal.o
  CC    ppc64-linux-user/linux-user/elfload.o
  CC    ppc64-linux-user/linux-user/linuxload.o
  CC    ppc64abi32-linux-user/linux-user/elfload.o
  CC    ppc64-linux-user/linux-user/uaccess.o
  CC    or32-linux-user/target-openrisc/exception_helper.o
  CC    ppc64-linux-user/linux-user/uname.o
  CC    ppc64-linux-user/target-ppc/cpu-models.o
  CC    ppc64-linux-user/target-ppc/translate.o
  CC    ppc64abi32-linux-user/linux-user/linuxload.o
  CC    ppc64-linux-user/target-ppc/kvm-stub.o
  CC    ppc-linux-user/target-ppc/kvm-stub.o
  CC    ppc64abi32-linux-user/linux-user/uaccess.o
  CC    or32-linux-user/target-openrisc/fpu_helper.o
  CC    or32-linux-user/target-openrisc/int_helper.o
  CC    ppc64abi32-linux-user/linux-user/uname.o
  CC    ppc64abi32-linux-user/target-ppc/cpu-models.o
  CC    ppc64abi32-linux-user/target-ppc/translate.o
  CC    or32-linux-user/target-openrisc/interrupt_helper.o
  CC    or32-linux-user/target-openrisc/mmu_helper.o
  CC    or32-linux-user/target-openrisc/sys_helper.o
  CC    mipsel-linux-user/target-mips/dsp_helper.o
  CC    or32-linux-user/target-openrisc/gdbstub.o
  GEN   trace/generated-helpers.c
  CC    ppc64-linux-user/target-ppc/dfp_helper.o
  CC    or32-linux-user/trace/generated-helpers.o
  LINK  or32-linux-user/qemu-or32
  CC    mipsel-linux-user/target-mips/op_helper.o
  CC    mipsel-linux-user/target-mips/lmi_helper.o
  CC    mipsel-linux-user/target-mips/helper.o
  CC    mipsel-linux-user/target-mips/cpu.o
  CC    ppc64-linux-user/target-ppc/excp_helper.o
  CC    ppc64abi32-linux-user/target-ppc/kvm-stub.o
  CC    mipsel-linux-user/target-mips/gdbstub.o
  CC    mipsel-linux-user/target-mips/msa_helper.o
  CC    ppc64-linux-user/target-ppc/fpu_helper.o
  CC    ppc64abi32-linux-user/target-ppc/dfp_helper.o
  CC    ppc64abi32-linux-user/target-ppc/excp_helper.o
  CC    ppc64abi32-linux-user/target-ppc/fpu_helper.o
  CC    ppc64abi32-linux-user/target-ppc/int_helper.o
  CC    ppc64abi32-linux-user/target-ppc/timebase_helper.o
  CC    ppc-linux-user/target-ppc/dfp_helper.o
  CC    ppc64abi32-linux-user/target-ppc/misc_helper.o
  CC    ppc64abi32-linux-user/target-ppc/mem_helper.o
  CC    ppc-linux-user/target-ppc/excp_helper.o
  CC    mipsn32el-linux-user/target-mips/dsp_helper.o
  CC    ppc64abi32-linux-user/target-ppc/user_only_helper.o
  CC    ppc64abi32-linux-user/target-ppc/gdbstub.o
  GEN   trace/generated-helpers.c
  CC    ppc-linux-user/target-ppc/fpu_helper.o
  CC    ppc64-linux-user/target-ppc/int_helper.o
  CC    mips64-linux-user/target-mips/helper.o
  CC    mips64-linux-user/target-mips/cpu.o
  CC    mips64-linux-user/target-mips/gdbstub.o
  CC    ppc64abi32-linux-user/gdbstub-xml.o
  CC    ppc64abi32-linux-user/trace/generated-helpers.o
  CC    mips64-linux-user/target-mips/msa_helper.o
  GEN   trace/generated-helpers.c
  CC    mipsn32el-linux-user/target-mips/op_helper.o
  CC    mips64-linux-user/trace/generated-helpers.o
  CC    mipsn32el-linux-user/target-mips/lmi_helper.o
  GEN   trace/generated-helpers.c
  CC    mipsel-linux-user/trace/generated-helpers.o
  CC    ppc64-linux-user/target-ppc/timebase_helper.o
  CC    ppc64-linux-user/target-ppc/misc_helper.o
  CC    ppc64-linux-user/target-ppc/mem_helper.o
  LINK  mipsel-linux-user/qemu-mipsel
  CC    ppc64-linux-user/target-ppc/user_only_helper.o
  CC    ppc64-linux-user/target-ppc/gdbstub.o
  GEN   trace/generated-helpers.c
  GEN   ppc64le-linux-user/config-target.h
  CC    ppc64-linux-user/gdbstub-xml.o
  CC    ppc64le-linux-user/exec.o
  CC    ppc64-linux-user/trace/generated-helpers.o
  CC    mips64el-linux-user/target-mips/dsp_helper.o
  CC    ppc64le-linux-user/translate-all.o
  CC    ppc64le-linux-user/cpu-exec.o
  CC    ppc-linux-user/target-ppc/int_helper.o
  CC    ppc64le-linux-user/tcg/tcg.o
  CC    ppc64le-linux-user/tcg/optimize.o
  CC    mips64el-linux-user/target-mips/op_helper.o
  CC    ppc-linux-user/target-ppc/timebase_helper.o
  CC    mips64el-linux-user/target-mips/lmi_helper.o
  CC    ppc-linux-user/target-ppc/misc_helper.o
  CC    ppc64le-linux-user/fpu/softfloat.o
  CC    ppc64le-linux-user/disas.o
  CC    ppc-linux-user/target-ppc/mem_helper.o
  CC    mips64el-linux-user/target-mips/helper.o
  GEN   ppc64le-linux-user/gdbstub-xml.c
  CC    ppc64le-linux-user/kvm-stub.o
  CC    ppc64le-linux-user/libdecnumber/decContext.o
  LINK  mipsn32-linux-user/qemu-mipsn32
  CC    ppc-linux-user/target-ppc/user_only_helper.o
  CC    mips64el-linux-user/target-mips/cpu.o
  CC    ppc64le-linux-user/libdecnumber/decNumber.o
  CC    ppc64le-linux-user/libdecnumber/dpd/decimal32.o
  CC    ppc64le-linux-user/libdecnumber/dpd/decimal64.o
  CC    ppc64le-linux-user/libdecnumber/dpd/decimal128.o
  GEN   s390x-linux-user/config-target.h
  CC    mips64el-linux-user/target-mips/gdbstub.o
  CC    s390x-linux-user/exec.o
  CC    s390x-linux-user/translate-all.o
  CC    ppc64le-linux-user/gdbstub.o
  CC    ppc64le-linux-user/thunk.o
  CC    s390x-linux-user/cpu-exec.o
  CC    ppc64le-linux-user/user-exec.o
  CC    s390x-linux-user/tcg/tcg.o
  CC    s390x-linux-user/tcg/optimize.o
  CC    s390x-linux-user/fpu/softfloat.o
  LINK  mips64-linux-user/qemu-mips64
  CC    ppc64le-linux-user/linux-user/main.o
  GEN   sh4-linux-user/config-target.h
  CC    sh4-linux-user/exec.o
  CC    sh4-linux-user/translate-all.o
  CC    sh4-linux-user/cpu-exec.o
  CC    s390x-linux-user/disas.o
  GEN   s390x-linux-user/gdbstub-xml.c
  CC    sh4-linux-user/tcg/tcg.o
  CC    mips64el-linux-user/target-mips/msa_helper.o
  CC    sh4-linux-user/tcg/optimize.o
  CC    sh4-linux-user/fpu/softfloat.o
  CC    sh4-linux-user/disas.o
  CC    ppc64le-linux-user/linux-user/syscall.o
  CC    sh4-linux-user/kvm-stub.o
  CC    sh4-linux-user/gdbstub.o
  CC    sh4-linux-user/thunk.o
  CC    s390x-linux-user/kvm-stub.o
  CC    ppc64le-linux-user/linux-user/strace.o
  CC    sh4-linux-user/user-exec.o
  CC    s390x-linux-user/gdbstub.o
  CC    sh4-linux-user/linux-user/main.o
  CC    sh4-linux-user/linux-user/syscall.o
  CC    sh4-linux-user/linux-user/strace.o
  CC    sh4-linux-user/linux-user/mmap.o
  CC    sh4-linux-user/linux-user/signal.o
  CC    s390x-linux-user/thunk.o
  CC    sh4-linux-user/linux-user/elfload.o
  CC    sh4-linux-user/linux-user/linuxload.o
  CC    s390x-linux-user/user-exec.o
  CC    sh4-linux-user/linux-user/uaccess.o
  CC    s390x-linux-user/linux-user/main.o
  CC    sh4-linux-user/linux-user/uname.o
  CC    mipsn32el-linux-user/target-mips/helper.o
  CC    sh4-linux-user/linux-user/flatload.o
  CC    sh4-linux-user/target-sh4/translate.o
  CC    sh4-linux-user/target-sh4/op_helper.o
  CC    mipsn32el-linux-user/target-mips/cpu.o
  CC    sh4-linux-user/target-sh4/helper.o
  CC    s390x-linux-user/linux-user/syscall.o
  CC    mipsn32el-linux-user/target-mips/gdbstub.o
  CC    mipsn32el-linux-user/target-mips/msa_helper.o
  GEN   trace/generated-helpers.c
  CC    s390x-linux-user/linux-user/strace.o
  CC    sh4-linux-user/target-sh4/cpu.o
  CC    mipsn32el-linux-user/trace/generated-helpers.o
  CC    sh4-linux-user/target-sh4/gdbstub.o
  GEN   trace/generated-helpers.c
  CC    ppc-linux-user/target-ppc/gdbstub.o
  CC    sh4-linux-user/trace/generated-helpers.o
  CC    s390x-linux-user/linux-user/mmap.o
  GEN   trace/generated-helpers.c
  CC    ppc64le-linux-user/linux-user/mmap.o
  CC    ppc-linux-user/gdbstub-xml.o
  CC    s390x-linux-user/linux-user/signal.o
  CC    ppc-linux-user/trace/generated-helpers.o
  CC    ppc64le-linux-user/linux-user/signal.o
  CC    ppc64le-linux-user/linux-user/elfload.o
  CC    s390x-linux-user/linux-user/elfload.o
  CC    ppc64le-linux-user/linux-user/linuxload.o
  CC    ppc64le-linux-user/linux-user/uaccess.o
  CC    s390x-linux-user/linux-user/linuxload.o
  CC    s390x-linux-user/linux-user/uaccess.o
  CC    ppc64le-linux-user/linux-user/uname.o
  CC    s390x-linux-user/linux-user/uname.o
  CC    s390x-linux-user/target-s390x/translate.o
  CC    ppc64le-linux-user/target-ppc/cpu-models.o
  CC    ppc64le-linux-user/target-ppc/translate.o
  CC    ppc64le-linux-user/target-ppc/kvm-stub.o
  GEN   trace/generated-helpers.c
  CC    mips64el-linux-user/trace/generated-helpers.o
  GEN   sh4eb-linux-user/config-target.h
  CC    sh4eb-linux-user/exec.o
  LINK  mips64el-linux-user/qemu-mips64el
  CC    sh4eb-linux-user/translate-all.o
  CC    sh4eb-linux-user/cpu-exec.o
  GEN   sparc-linux-user/config-target.h
  CC    sparc-linux-user/exec.o
  CC    sh4eb-linux-user/tcg/tcg.o
  CC    sh4eb-linux-user/tcg/optimize.o
  CC    sparc-linux-user/translate-all.o
  CC    sparc-linux-user/cpu-exec.o
  CC    sh4eb-linux-user/fpu/softfloat.o
  LINK  sh4-linux-user/qemu-sh4
  CC    sparc-linux-user/tcg/tcg.o
  CC    s390x-linux-user/target-s390x/helper.o
  CC    ppc64le-linux-user/target-ppc/dfp_helper.o
  GEN   sparc32plus-linux-user/config-target.h
  CC    s390x-linux-user/target-s390x/cpu.o
  CC    sparc32plus-linux-user/exec.o
  CC    sh4eb-linux-user/disas.o
  CC    sh4eb-linux-user/kvm-stub.o
  CC    s390x-linux-user/target-s390x/interrupt.o
  CC    sparc32plus-linux-user/translate-all.o
  CC    s390x-linux-user/target-s390x/int_helper.o
  CC    sh4eb-linux-user/gdbstub.o
  CC    sh4eb-linux-user/thunk.o
  CC    s390x-linux-user/target-s390x/fpu_helper.o
  LINK  mipsn32el-linux-user/qemu-mipsn32el
  CC    s390x-linux-user/target-s390x/cc_helper.o
  CC    sparc32plus-linux-user/cpu-exec.o
  CC    sh4eb-linux-user/user-exec.o
  CC    sparc-linux-user/tcg/optimize.o
  CC    s390x-linux-user/target-s390x/mem_helper.o
  GEN   sparc64-linux-user/config-target.h
  CC    sparc64-linux-user/exec.o
  CC    sh4eb-linux-user/linux-user/main.o
  CC    s390x-linux-user/target-s390x/misc_helper.o
  CC    s390x-linux-user/target-s390x/gdbstub.o
  CC    sparc32plus-linux-user/tcg/tcg.o
  CC    sparc32plus-linux-user/tcg/optimize.o
  GEN   trace/generated-helpers.c
  CC    sparc64-linux-user/translate-all.o
  CC    s390x-linux-user/gdbstub-xml.o
  CC    s390x-linux-user/trace/generated-helpers.o
  CC    sh4eb-linux-user/linux-user/syscall.o
  LINK  ppc-linux-user/qemu-ppc
  CC    sparc-linux-user/fpu/softfloat.o
  CC    sh4eb-linux-user/linux-user/strace.o
  LINK  s390x-linux-user/qemu-s390x
  CC    sh4eb-linux-user/linux-user/mmap.o
  CC    sparc64-linux-user/cpu-exec.o
  CC    sparc64-linux-user/tcg/tcg.o
  GEN   unicore32-linux-user/config-target.h
  CC    unicore32-linux-user/exec.o
  CC    sh4eb-linux-user/linux-user/signal.o
  CC    sh4eb-linux-user/linux-user/elfload.o
  CC    sh4eb-linux-user/linux-user/linuxload.o
  CC    unicore32-linux-user/translate-all.o
  CC    sparc64-linux-user/tcg/optimize.o
  CC    sparc32plus-linux-user/fpu/softfloat.o
  CC    sh4eb-linux-user/linux-user/uaccess.o
  CC    sh4eb-linux-user/linux-user/uname.o
  CC    sh4eb-linux-user/linux-user/flatload.o
  CC    unicore32-linux-user/cpu-exec.o
  CC    sparc32plus-linux-user/disas.o
  CC    sh4eb-linux-user/target-sh4/translate.o
  CC    unicore32-linux-user/tcg/tcg.o
  CC    unicore32-linux-user/tcg/optimize.o
  CC    sparc32plus-linux-user/kvm-stub.o
  CC    sparc64-linux-user/fpu/softfloat.o
  CC    unicore32-linux-user/fpu/softfloat.o
  CC    sparc32plus-linux-user/gdbstub.o
  CC    sparc32plus-linux-user/thunk.o
  CC    sparc32plus-linux-user/user-exec.o
  CC    unicore32-linux-user/disas.o
  CC    sparc32plus-linux-user/linux-user/main.o
  CC    unicore32-linux-user/kvm-stub.o
  CC    sh4eb-linux-user/target-sh4/op_helper.o
  CC    sparc-linux-user/disas.o
  CC    sparc-linux-user/kvm-stub.o
  CC    sparc32plus-linux-user/linux-user/syscall.o
  CC    sparc-linux-user/gdbstub.o
  CC    sparc-linux-user/thunk.o
  CC    sh4eb-linux-user/target-sh4/helper.o
  CC    sh4eb-linux-user/target-sh4/cpu.o
  CC    sparc-linux-user/user-exec.o
  CC    sparc-linux-user/linux-user/main.o
  CC    sh4eb-linux-user/target-sh4/gdbstub.o
  CC    sparc-linux-user/linux-user/syscall.o
  CC    sparc-linux-user/linux-user/strace.o
  GEN   trace/generated-helpers.c
  CC    sh4eb-linux-user/trace/generated-helpers.o
  CC    unicore32-linux-user/gdbstub.o
  CC    sparc-linux-user/linux-user/mmap.o
  CC    sparc64-linux-user/disas.o
  CC    sparc-linux-user/linux-user/signal.o
  CC    sparc64-linux-user/kvm-stub.o
  CC    unicore32-linux-user/thunk.o
  CC    sparc-linux-user/linux-user/elfload.o
  CC    sparc64-linux-user/gdbstub.o
  CC    unicore32-linux-user/user-exec.o
  CC    sparc-linux-user/linux-user/linuxload.o
  CC    unicore32-linux-user/linux-user/main.o
  CC    unicore32-linux-user/linux-user/syscall.o
  CC    sparc-linux-user/linux-user/uaccess.o
  CC    sparc-linux-user/linux-user/uname.o
  CC    sparc-linux-user/target-sparc/translate.o
  CC    unicore32-linux-user/linux-user/strace.o
  CC    sparc64-linux-user/thunk.o
  CC    sparc-linux-user/target-sparc/helper.o
  CC    sparc-linux-user/target-sparc/cpu.o
  CC    sparc-linux-user/target-sparc/fop_helper.o
  CC    sparc64-linux-user/user-exec.o
  CC    sparc-linux-user/target-sparc/cc_helper.o
  CC    sparc64-linux-user/linux-user/main.o
  CC    unicore32-linux-user/linux-user/mmap.o
  CC    sparc-linux-user/target-sparc/win_helper.o
  CC    sparc64-linux-user/linux-user/syscall.o
  CC    sparc-linux-user/target-sparc/mmu_helper.o
  CC    sparc-linux-user/target-sparc/ldst_helper.o
  CC    sparc64-linux-user/linux-user/strace.o
  LINK  sh4eb-linux-user/qemu-sh4eb
  CC    sparc64-linux-user/linux-user/mmap.o
  CC    sparc64-linux-user/linux-user/signal.o
  CC    sparc64-linux-user/linux-user/elfload.o
  CC    sparc-linux-user/target-sparc/int32_helper.o
  CC    sparc-linux-user/target-sparc/gdbstub.o
  CC    sparc64-linux-user/linux-user/linuxload.o
  CC    sparc64-linux-user/linux-user/uaccess.o
  CC    sparc64-linux-user/linux-user/uname.o
  GEN   trace/generated-helpers.c
  CC    sparc-linux-user/trace/generated-helpers.o
  CC    sparc64-linux-user/target-sparc/translate.o
  CC    ppc64le-linux-user/target-ppc/excp_helper.o
  CC    sparc64-linux-user/target-sparc/helper.o
  CC    sparc64-linux-user/target-sparc/cpu.o
  CC    ppc64le-linux-user/target-ppc/fpu_helper.o
  CC    ppc64le-linux-user/target-ppc/int_helper.o
  CC    sparc32plus-linux-user/linux-user/strace.o
  CC    sparc64-linux-user/target-sparc/fop_helper.o
  CC    sparc64-linux-user/target-sparc/cc_helper.o
  CC    sparc64-linux-user/target-sparc/win_helper.o
  CC    sparc32plus-linux-user/linux-user/mmap.o
  CC    sparc32plus-linux-user/linux-user/signal.o
  CC    sparc64-linux-user/target-sparc/mmu_helper.o
  LINK  sparc-linux-user/qemu-sparc
  CC    sparc32plus-linux-user/linux-user/elfload.o
  CC    sparc64-linux-user/target-sparc/ldst_helper.o
  CC    sparc32plus-linux-user/linux-user/linuxload.o
  CC    sparc32plus-linux-user/linux-user/uaccess.o
  GEN   x86_64-linux-user/config-target.h
  CC    x86_64-linux-user/exec.o
  CC    sparc32plus-linux-user/linux-user/uname.o
  CC    sparc64-linux-user/target-sparc/int64_helper.o
  CC    sparc32plus-linux-user/target-sparc/translate.o
  CC    sparc32plus-linux-user/target-sparc/helper.o
  CC    x86_64-linux-user/translate-all.o
  CC    x86_64-linux-user/cpu-exec.o
  CC    x86_64-linux-user/tcg/tcg.o
  CC    x86_64-linux-user/tcg/optimize.o
  CC    sparc32plus-linux-user/target-sparc/cpu.o
  CC    x86_64-linux-user/fpu/softfloat.o
  CC    unicore32-linux-user/linux-user/signal.o
  CC    sparc32plus-linux-user/target-sparc/fop_helper.o
  CC    x86_64-linux-user/disas.o
  CC    unicore32-linux-user/linux-user/elfload.o
  CC    x86_64-linux-user/kvm-stub.o
  CC    sparc32plus-linux-user/target-sparc/cc_helper.o
  CC    x86_64-linux-user/gdbstub.o
  CC    x86_64-linux-user/thunk.o
  CC    unicore32-linux-user/linux-user/linuxload.o
  CC    sparc32plus-linux-user/target-sparc/win_helper.o
  CC    sparc32plus-linux-user/target-sparc/mmu_helper.o
  CC    unicore32-linux-user/linux-user/uaccess.o
  CC    sparc64-linux-user/target-sparc/vis_helper.o
  CC    sparc64-linux-user/target-sparc/gdbstub.o
  CC    x86_64-linux-user/user-exec.o
  CC    sparc32plus-linux-user/target-sparc/ldst_helper.o
  CC    unicore32-linux-user/linux-user/uname.o
  CC    ppc64le-linux-user/target-ppc/timebase_helper.o
  GEN   trace/generated-helpers.c
  CC    x86_64-linux-user/linux-user/main.o
  CC    x86_64-linux-user/linux-user/syscall.o
  CC    x86_64-linux-user/linux-user/strace.o
  CC    unicore32-linux-user/target-unicore32/translate.o
  CC    ppc64le-linux-user/target-ppc/misc_helper.o
  CC    sparc32plus-linux-user/target-sparc/int64_helper.o
  CC    ppc64le-linux-user/target-ppc/mem_helper.o
  CC    sparc32plus-linux-user/target-sparc/vis_helper.o
  CC    sparc32plus-linux-user/target-sparc/gdbstub.o
  CC    x86_64-linux-user/linux-user/mmap.o
  CC    ppc64le-linux-user/target-ppc/user_only_helper.o
  CC    ppc64le-linux-user/target-ppc/gdbstub.o
  GEN   trace/generated-helpers.c
  CC    sparc64-linux-user/trace/generated-helpers.o
  GEN   trace/generated-helpers.c
  CC    sparc32plus-linux-user/trace/generated-helpers.o
  CC    ppc64le-linux-user/gdbstub-xml.o
  CC    x86_64-linux-user/linux-user/signal.o
  CC    x86_64-linux-user/linux-user/elfload.o
  CC    x86_64-linux-user/linux-user/linuxload.o
  CC    x86_64-linux-user/linux-user/uaccess.o
  CC    ppc64le-linux-user/trace/generated-helpers.o
  CC    x86_64-linux-user/linux-user/uname.o
  CC    x86_64-linux-user/target-i386/translate.o
  CC    unicore32-linux-user/target-unicore32/op_helper.o
  CC    unicore32-linux-user/target-unicore32/helper.o
  CC    unicore32-linux-user/target-unicore32/cpu.o
  CC    x86_64-linux-user/target-i386/helper.o
  CC    x86_64-linux-user/target-i386/cpu.o
  CC    x86_64-linux-user/target-i386/excp_helper.o
  CC    unicore32-linux-user/target-unicore32/ucf64_helper.o
  CC    x86_64-linux-user/target-i386/fpu_helper.o
  GEN   trace/generated-helpers.c
  CC    x86_64-linux-user/target-i386/cc_helper.o
  CC    unicore32-linux-user/trace/generated-helpers.o
  LINK  sparc64-linux-user/qemu-sparc64
  CC    x86_64-linux-user/target-i386/int_helper.o
  CC    x86_64-linux-user/target-i386/svm_helper.o
  LINK  unicore32-linux-user/qemu-unicore32
  CC    x86_64-linux-user/target-i386/smm_helper.o
  CC    x86_64-linux-user/target-i386/misc_helper.o
  CC    x86_64-linux-user/target-i386/mem_helper.o
  CC    x86_64-linux-user/target-i386/seg_helper.o
  CC    x86_64-linux-user/target-i386/gdbstub.o
  CC    x86_64-linux-user/target-i386/kvm-stub.o
  CC    x86_64-linux-user/target-i386/ioport-user.o
  GEN   trace/generated-helpers.c
  CC    x86_64-linux-user/trace/generated-helpers.o
  LINK  ppc64-linux-user/qemu-ppc64
  LINK  sparc32plus-linux-user/qemu-sparc32plus
  LINK  ppc64abi32-linux-user/qemu-ppc64abi32
  LINK  x86_64-linux-user/qemu-x86_64
  LINK  ppc64le-linux-user/qemu-ppc64le
make: Target `all' not remade because of errors.
UVP:/mnt/sdb/fortify-vm/qemu # git log
UVP:/mnt/sdb/fortify-vm/qemu # git checkout
M       include/exec/cpu-common.h
M       roms/seabios
Your branch is ahead of 'origin/master' by 16 commits.

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-17  5:11 [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory zhanghailiang
                   ` (4 preceding siblings ...)
  2014-11-17 10:39 ` Michael S. Tsirkin
@ 2014-11-19  8:28 ` zhanghailiang
  2014-11-19 10:06   ` Igor Mammedov
  2015-03-03 14:04 ` Luiz Capitulino
  6 siblings, 1 reply; 23+ messages in thread
From: zhanghailiang @ 2014-11-19  8:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: imammedo, peter.huangpeng, mst

Hi,

Ping...?

Should this be fixed in 2.2?

Thanks,
zhanghailiang
On 2014/11/17 13:11, zhanghailiang wrote:
> Hi,
>
> Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
> hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
> after we hotplug memory.
>
> This bug exists since we begin to support hotplug memory, and it is better
> to fix it.
>
> Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary,
> pls feel free to remove it.
>
> Thanks,
> zhanghailiang
>
> v2:
> - fix compiling break for other targets that don't support pc-dimm
>
> zhanghailiang (3):
>    pc-dimm: add a function to calculate VM's current RAM size
>    virtio-balloon: Fix balloon not working correctly when hotplug memory
>    virtio-balloon: Add some trace events
>
>   hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>   hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
>   include/exec/cpu-common.h       |  1 +
>   stubs/qmp_pc_dimm_device_list.c |  5 +++++
>   trace-events                    |  4 ++++
>   5 files changed, 51 insertions(+), 6 deletions(-)
>

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size zhanghailiang
@ 2014-11-19  9:59   ` Igor Mammedov
  2014-11-19 10:32   ` Michael S. Tsirkin
  1 sibling, 0 replies; 23+ messages in thread
From: Igor Mammedov @ 2014-11-19  9:59 UTC (permalink / raw)
  To: zhanghailiang; +Cc: mst, qemu-devel, peter.huangpeng

On Mon, 17 Nov 2014 13:11:08 +0800
zhanghailiang <zhang.zhanghailiang@huawei.com> wrote:

> The global parameter 'ram_size' does not take into account
> the hotplugged memory.
> 
> In some codes, we use 'ram_size' as current VM's real RAM size,
> which is not correct.
> 
> Add function 'get_current_ram_size' to calculate VM's current RAM
> size, it will enumerate present memory devices and also plus ram_size.
> 
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> ---
>  hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>  include/exec/cpu-common.h       |  1 +
>  stubs/qmp_pc_dimm_device_list.c |  5 +++++
>  3 files changed, 32 insertions(+)
> 
> diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
> index a800ea7..38465d0 100644
> --- a/hw/mem/pc-dimm.c
> +++ b/hw/mem/pc-dimm.c
> @@ -62,6 +62,32 @@ int qmp_pc_dimm_device_list(Object *obj, void
> *opaque) return 0;
>  }
>  
> +ram_addr_t get_current_ram_size(void)
> +{
> +    MemoryDeviceInfoList *info_list = NULL;
> +    MemoryDeviceInfoList **prev = &info_list;

> +    MemoryDeviceInfoList *info;
> +    ram_addr_t size = ram_size;
> +
> +    qmp_pc_dimm_device_list(qdev_get_machine(), &prev);
> +    for (info = info_list; info; info = info->next) {
> +        MemoryDeviceInfo *value = info->value;
> +
> +        if (value) {
> +            switch (value->kind) {
> +            case MEMORY_DEVICE_INFO_KIND_DIMM:
> +                size += value->dimm->size;
> +                break;
> +            default:
> +                break;
> +            }
> +        }
> +    }
> +    qapi_free_MemoryDeviceInfoList(info_list);
> +
> +    return size;
> +}
function is a generic one and it could handle not only pc-dimm device
in future, so it would be better to put it in some device neutral place.

That would allow to drop following stub as well.

> +
>  static int pc_dimm_slot2bitmap(Object *obj, void *opaque)
>  {
>      unsigned long *bitmap = opaque;
> diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
> index 427b851..fcc3162 100644
> --- a/include/exec/cpu-common.h
> +++ b/include/exec/cpu-common.h
> @@ -52,6 +52,7 @@ typedef uintptr_t ram_addr_t;
>  #endif
>  
>  extern ram_addr_t ram_size;
> +ram_addr_t get_current_ram_size(void);
>  
>  /* memory API */
>  
> diff --git a/stubs/qmp_pc_dimm_device_list.c
> b/stubs/qmp_pc_dimm_device_list.c index 5cb220c..b584bd8 100644
> --- a/stubs/qmp_pc_dimm_device_list.c
> +++ b/stubs/qmp_pc_dimm_device_list.c
> @@ -5,3 +5,8 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
>  {
>     return 0;
>  }
> +
> +ram_addr_t get_current_ram_size(void)
> +{
> +    return ram_size;
> +}

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-19  8:28 ` zhanghailiang
@ 2014-11-19 10:06   ` Igor Mammedov
  0 siblings, 0 replies; 23+ messages in thread
From: Igor Mammedov @ 2014-11-19 10:06 UTC (permalink / raw)
  To: zhanghailiang; +Cc: peter.huangpeng, qemu-devel, mst

On Wed, 19 Nov 2014 16:28:09 +0800
zhanghailiang <zhang.zhanghailiang@huawei.com> wrote:

> Hi,
> 
> Ping...?
> 
> Should this be fixed in 2.2?
I'd preffer it go after memory unplug is merged to see how balooning
will fare along with it.

Also ack from Luiz could be useful to make it sure that balloning will
work just fine with sparse memory and memory unplug.

> 
> Thanks,
> zhanghailiang
> On 2014/11/17 13:11, zhanghailiang wrote:
> > Hi,
> >
> > Patch 1 and 2 mainly fix bug about balloon not working correctly
> > when we do hotplug memory. It takes 'ram_size' as VM's real RAM
> > size which is wrong after we hotplug memory.
> >
> > This bug exists since we begin to support hotplug memory, and it is
> > better to fix it.
> >
> > Patch 3 add some trace events, it helps debugging balloon. If it is
> > unnecessary, pls feel free to remove it.
> >
> > Thanks,
> > zhanghailiang
> >
> > v2:
> > - fix compiling break for other targets that don't support pc-dimm
> >
> > zhanghailiang (3):
> >    pc-dimm: add a function to calculate VM's current RAM size
> >    virtio-balloon: Fix balloon not working correctly when hotplug
> > memory virtio-balloon: Add some trace events
> >
> >   hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
> >   hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
> >   include/exec/cpu-common.h       |  1 +
> >   stubs/qmp_pc_dimm_device_list.c |  5 +++++
> >   trace-events                    |  4 ++++
> >   5 files changed, 51 insertions(+), 6 deletions(-)
> >
> 
> 

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size zhanghailiang
  2014-11-19  9:59   ` Igor Mammedov
@ 2014-11-19 10:32   ` Michael S. Tsirkin
  2014-11-19 15:13     ` Luiz Capitulino
  2014-11-20  2:33     ` zhanghailiang
  1 sibling, 2 replies; 23+ messages in thread
From: Michael S. Tsirkin @ 2014-11-19 10:32 UTC (permalink / raw)
  To: zhanghailiang; +Cc: imammedo, lcapitulino, qemu-devel, peter.huangpeng

On Mon, Nov 17, 2014 at 01:11:08PM +0800, zhanghailiang wrote:
> The global parameter 'ram_size' does not take into account
> the hotplugged memory.
> 
> In some codes, we use 'ram_size' as current VM's real RAM size,
> which is not correct.
> 
> Add function 'get_current_ram_size' to calculate VM's current RAM size,
> it will enumerate present memory devices and also plus ram_size.
> 
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>


This affects QMP right?
Cc Luiz.


> ---
>  hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>  include/exec/cpu-common.h       |  1 +
>  stubs/qmp_pc_dimm_device_list.c |  5 +++++
>  3 files changed, 32 insertions(+)
> 
> diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
> index a800ea7..38465d0 100644
> --- a/hw/mem/pc-dimm.c
> +++ b/hw/mem/pc-dimm.c
> @@ -62,6 +62,32 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
>      return 0;
>  }
>  
> +ram_addr_t get_current_ram_size(void)
> +{
> +    MemoryDeviceInfoList *info_list = NULL;
> +    MemoryDeviceInfoList **prev = &info_list;
> +    MemoryDeviceInfoList *info;
> +    ram_addr_t size = ram_size;
> +
> +    qmp_pc_dimm_device_list(qdev_get_machine(), &prev);
> +    for (info = info_list; info; info = info->next) {
> +        MemoryDeviceInfo *value = info->value;
> +
> +        if (value) {
> +            switch (value->kind) {
> +            case MEMORY_DEVICE_INFO_KIND_DIMM:
> +                size += value->dimm->size;
> +                break;
> +            default:
> +                break;
> +            }
> +        }
> +    }
> +    qapi_free_MemoryDeviceInfoList(info_list);
> +
> +    return size;
> +}
> +
>  static int pc_dimm_slot2bitmap(Object *obj, void *opaque)
>  {
>      unsigned long *bitmap = opaque;
> diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
> index 427b851..fcc3162 100644
> --- a/include/exec/cpu-common.h
> +++ b/include/exec/cpu-common.h
> @@ -52,6 +52,7 @@ typedef uintptr_t ram_addr_t;
>  #endif
>  
>  extern ram_addr_t ram_size;
> +ram_addr_t get_current_ram_size(void);
>  
>  /* memory API */
>  
> diff --git a/stubs/qmp_pc_dimm_device_list.c b/stubs/qmp_pc_dimm_device_list.c
> index 5cb220c..b584bd8 100644
> --- a/stubs/qmp_pc_dimm_device_list.c
> +++ b/stubs/qmp_pc_dimm_device_list.c
> @@ -5,3 +5,8 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
>  {
>     return 0;
>  }
> +
> +ram_addr_t get_current_ram_size(void)
> +{
> +    return ram_size;
> +}
> -- 
> 1.7.12.4
> 

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-19 10:32   ` Michael S. Tsirkin
@ 2014-11-19 15:13     ` Luiz Capitulino
  2014-11-19 15:52       ` Eric Blake
  2014-11-20  2:33     ` zhanghailiang
  1 sibling, 1 reply; 23+ messages in thread
From: Luiz Capitulino @ 2014-11-19 15:13 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: imammedo, peter.huangpeng, zhanghailiang, qemu-devel

On Wed, 19 Nov 2014 12:32:46 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> On Mon, Nov 17, 2014 at 01:11:08PM +0800, zhanghailiang wrote:
> > The global parameter 'ram_size' does not take into account
> > the hotplugged memory.
> > 
> > In some codes, we use 'ram_size' as current VM's real RAM size,
> > which is not correct.
> > 
> > Add function 'get_current_ram_size' to calculate VM's current RAM size,
> > it will enumerate present memory devices and also plus ram_size.
> > 
> > Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> 
> 
> This affects QMP right?

I think later patches will tell how. CC'ing Eric.

> Cc Luiz.
> 
> 
> > ---
> >  hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
> >  include/exec/cpu-common.h       |  1 +
> >  stubs/qmp_pc_dimm_device_list.c |  5 +++++
> >  3 files changed, 32 insertions(+)
> > 
> > diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
> > index a800ea7..38465d0 100644
> > --- a/hw/mem/pc-dimm.c
> > +++ b/hw/mem/pc-dimm.c
> > @@ -62,6 +62,32 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
> >      return 0;
> >  }
> >  
> > +ram_addr_t get_current_ram_size(void)
> > +{
> > +    MemoryDeviceInfoList *info_list = NULL;
> > +    MemoryDeviceInfoList **prev = &info_list;
> > +    MemoryDeviceInfoList *info;
> > +    ram_addr_t size = ram_size;
> > +
> > +    qmp_pc_dimm_device_list(qdev_get_machine(), &prev);
> > +    for (info = info_list; info; info = info->next) {
> > +        MemoryDeviceInfo *value = info->value;
> > +
> > +        if (value) {
> > +            switch (value->kind) {
> > +            case MEMORY_DEVICE_INFO_KIND_DIMM:
> > +                size += value->dimm->size;
> > +                break;
> > +            default:
> > +                break;
> > +            }
> > +        }
> > +    }
> > +    qapi_free_MemoryDeviceInfoList(info_list);
> > +
> > +    return size;
> > +}
> > +
> >  static int pc_dimm_slot2bitmap(Object *obj, void *opaque)
> >  {
> >      unsigned long *bitmap = opaque;
> > diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
> > index 427b851..fcc3162 100644
> > --- a/include/exec/cpu-common.h
> > +++ b/include/exec/cpu-common.h
> > @@ -52,6 +52,7 @@ typedef uintptr_t ram_addr_t;
> >  #endif
> >  
> >  extern ram_addr_t ram_size;
> > +ram_addr_t get_current_ram_size(void);
> >  
> >  /* memory API */
> >  
> > diff --git a/stubs/qmp_pc_dimm_device_list.c b/stubs/qmp_pc_dimm_device_list.c
> > index 5cb220c..b584bd8 100644
> > --- a/stubs/qmp_pc_dimm_device_list.c
> > +++ b/stubs/qmp_pc_dimm_device_list.c
> > @@ -5,3 +5,8 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
> >  {
> >     return 0;
> >  }
> > +
> > +ram_addr_t get_current_ram_size(void)
> > +{
> > +    return ram_size;
> > +}
> > -- 
> > 1.7.12.4
> > 
> 

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-19 15:13     ` Luiz Capitulino
@ 2014-11-19 15:52       ` Eric Blake
  2014-11-19 16:06         ` Michael S. Tsirkin
  0 siblings, 1 reply; 23+ messages in thread
From: Eric Blake @ 2014-11-19 15:52 UTC (permalink / raw)
  To: Luiz Capitulino, Michael S. Tsirkin
  Cc: imammedo, peter.huangpeng, zhanghailiang, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]

On 11/19/2014 08:13 AM, Luiz Capitulino wrote:
> On Wed, 19 Nov 2014 12:32:46 +0200
> "Michael S. Tsirkin" <mst@redhat.com> wrote:
> 
>> On Mon, Nov 17, 2014 at 01:11:08PM +0800, zhanghailiang wrote:
>>> The global parameter 'ram_size' does not take into account
>>> the hotplugged memory.
>>>
>>> In some codes, we use 'ram_size' as current VM's real RAM size,
>>> which is not correct.
>>>
>>> Add function 'get_current_ram_size' to calculate VM's current RAM size,
>>> it will enumerate present memory devices and also plus ram_size.
>>>
>>> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
>>
>>
>> This affects QMP right?
> 
> I think later patches will tell how. CC'ing Eric.

As far as I can tell, this is just correcting a reporting issue; the
existing QMP commands/events for tracking balloon size will now properly
account for hotplugged memory.

What I don't know is if this change in semantics will affect any users.
 Libvirt is not yet supporting memory hotplug, so ideally, fixing this
bug before libvirt uses memory hotplug means libvirt will never have to
worry about qemu versions that do incorrect reporting.

The alternative is to declare that the existing QMP commands cannot
change in semantics for the existing members that it reports, and must
instead report additional dictionary members describing the amount of
hot-plugged memory, and then require that the client add the numbers
together itself.  That sounds mean to the client, so I'm hoping we don't
have to go there.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-19 15:52       ` Eric Blake
@ 2014-11-19 16:06         ` Michael S. Tsirkin
  2014-11-19 16:31           ` Eric Blake
  0 siblings, 1 reply; 23+ messages in thread
From: Michael S. Tsirkin @ 2014-11-19 16:06 UTC (permalink / raw)
  To: Eric Blake
  Cc: qemu-devel, imammedo, peter.huangpeng, zhanghailiang,
	Luiz Capitulino

On Wed, Nov 19, 2014 at 08:52:19AM -0700, Eric Blake wrote:
> On 11/19/2014 08:13 AM, Luiz Capitulino wrote:
> > On Wed, 19 Nov 2014 12:32:46 +0200
> > "Michael S. Tsirkin" <mst@redhat.com> wrote:
> > 
> >> On Mon, Nov 17, 2014 at 01:11:08PM +0800, zhanghailiang wrote:
> >>> The global parameter 'ram_size' does not take into account
> >>> the hotplugged memory.
> >>>
> >>> In some codes, we use 'ram_size' as current VM's real RAM size,
> >>> which is not correct.
> >>>
> >>> Add function 'get_current_ram_size' to calculate VM's current RAM size,
> >>> it will enumerate present memory devices and also plus ram_size.
> >>>
> >>> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> >>
> >>
> >> This affects QMP right?
> > 
> > I think later patches will tell how. CC'ing Eric.
> 
> As far as I can tell, this is just correcting a reporting issue; the
> existing QMP commands/events for tracking balloon size will now properly
> account for hotplugged memory.
> 
> What I don't know is if this change in semantics will affect any users.
>  Libvirt is not yet supporting memory hotplug, so ideally, fixing this
> bug before libvirt uses memory hotplug means libvirt will never have to
> worry about qemu versions that do incorrect reporting.
> 
> The alternative is to declare that the existing QMP commands cannot
> change in semantics for the existing members that it reports, and must
> instead report additional dictionary members describing the amount of
> hot-plugged memory, and then require that the client add the numbers
> together itself.  That sounds mean to the client, so I'm hoping we don't
> have to go there.


IOW you ack this patch for 2.2?

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-19 16:06         ` Michael S. Tsirkin
@ 2014-11-19 16:31           ` Eric Blake
  2014-11-20  2:31             ` zhanghailiang
  2014-11-20  9:10             ` Michael S. Tsirkin
  0 siblings, 2 replies; 23+ messages in thread
From: Eric Blake @ 2014-11-19 16:31 UTC (permalink / raw)
  To: Michael S. Tsirkin
  Cc: qemu-devel, imammedo, peter.huangpeng, zhanghailiang,
	Luiz Capitulino

[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]

On 11/19/2014 09:06 AM, Michael S. Tsirkin wrote:

>>>> This affects QMP right?
>>>
>>> I think later patches will tell how. CC'ing Eric.
>>
>> As far as I can tell, this is just correcting a reporting issue; the
>> existing QMP commands/events for tracking balloon size will now properly
>> account for hotplugged memory.
>>
>> What I don't know is if this change in semantics will affect any users.
>>  Libvirt is not yet supporting memory hotplug, so ideally, fixing this
>> bug before libvirt uses memory hotplug means libvirt will never have to
>> worry about qemu versions that do incorrect reporting.
>>
>> The alternative is to declare that the existing QMP commands cannot
>> change in semantics for the existing members that it reports, and must
>> instead report additional dictionary members describing the amount of
>> hot-plugged memory, and then require that the client add the numbers
>> together itself.  That sounds mean to the client, so I'm hoping we don't
>> have to go there.
> 
> 
> IOW you ack this patch for 2.2?
> 

Is memory hotplug one of the new features in 2.2?  If so, then yes, we
should get its semantics right from the start (this is a bug fix to
avoid a release with broken semantics).  On the other hand, if hotplug
existed in 2.1, then we already have a release with odd semantics, so
delaying this fix until 2.3 and leaving 2.2 with the same odd semantics
would not hurt, and it then becomes a judgment call of whether we are
rushing in a possibly incomplete solution by trying to get this into
2.2. (Sorry I haven't been following the history of memory hotplug closer)


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-19 16:31           ` Eric Blake
@ 2014-11-20  2:31             ` zhanghailiang
  2014-11-20  9:10             ` Michael S. Tsirkin
  1 sibling, 0 replies; 23+ messages in thread
From: zhanghailiang @ 2014-11-20  2:31 UTC (permalink / raw)
  To: Eric Blake, Michael S. Tsirkin
  Cc: imammedo, peter.huangpeng, qemu-devel, borntraeger,
	Luiz Capitulino

On 2014/11/20 0:31, Eric Blake wrote:
> On 11/19/2014 09:06 AM, Michael S. Tsirkin wrote:
>
>>>>> This affects QMP right?
>>>>
>>>> I think later patches will tell how. CC'ing Eric.
>>>
>>> As far as I can tell, this is just correcting a reporting issue; the
>>> existing QMP commands/events for tracking balloon size will now properly
>>> account for hotplugged memory.
>>>
>>> What I don't know is if this change in semantics will affect any users.
>>>   Libvirt is not yet supporting memory hotplug, so ideally, fixing this
>>> bug before libvirt uses memory hotplug means libvirt will never have to
>>> worry about qemu versions that do incorrect reporting.
>>>
>>> The alternative is to declare that the existing QMP commands cannot
>>> change in semantics for the existing members that it reports, and must
>>> instead report additional dictionary members describing the amount of
>>> hot-plugged memory, and then require that the client add the numbers
>>> together itself.  That sounds mean to the client, so I'm hoping we don't
>>> have to go there.
>>
>>
>> IOW you ack this patch for 2.2?
>>
>
> Is memory hotplug one of the new features in 2.2?  If so, then yes, we

No, after searching this feature in ChangeLogs, i found pc-dimm memory hotplug
was supported since 2.1. It only supports for x86 target.

And one more thing, i found in 2.2's Changelog it begin to support memory hotplug
for s390 target, I'm not sure whether this problem also exists for s390.

> should get its semantics right from the start (this is a bug fix to
> avoid a release with broken semantics).  On the other hand, if hotplug
> existed in 2.1, then we already have a release with odd semantics, so
> delaying this fix until 2.3 and leaving 2.2 with the same odd semantics
> would not hurt, and it then becomes a judgment call of whether we are
> rushing in a possibly incomplete solution by trying to get this into
> 2.2. (Sorry I haven't been following the history of memory hotplug closer)
>
>

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-19 10:32   ` Michael S. Tsirkin
  2014-11-19 15:13     ` Luiz Capitulino
@ 2014-11-20  2:33     ` zhanghailiang
  1 sibling, 0 replies; 23+ messages in thread
From: zhanghailiang @ 2014-11-20  2:33 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: imammedo, lcapitulino, qemu-devel, peter.huangpeng

On 2014/11/19 18:32, Michael S. Tsirkin wrote:
> On Mon, Nov 17, 2014 at 01:11:08PM +0800, zhanghailiang wrote:
>> The global parameter 'ram_size' does not take into account
>> the hotplugged memory.
>>
>> In some codes, we use 'ram_size' as current VM's real RAM size,
>> which is not correct.
>>
>> Add function 'get_current_ram_size' to calculate VM's current RAM size,
>> it will enumerate present memory devices and also plus ram_size.
>>
>> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
>
>
> This affects QMP right?

Yes, will affect the results of balloon commands ;)

> Cc Luiz.
>
>
>> ---
>>   hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>>   include/exec/cpu-common.h       |  1 +
>>   stubs/qmp_pc_dimm_device_list.c |  5 +++++
>>   3 files changed, 32 insertions(+)
>>
>> diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
>> index a800ea7..38465d0 100644
>> --- a/hw/mem/pc-dimm.c
>> +++ b/hw/mem/pc-dimm.c
>> @@ -62,6 +62,32 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
>>       return 0;
>>   }
>>
>> +ram_addr_t get_current_ram_size(void)
>> +{
>> +    MemoryDeviceInfoList *info_list = NULL;
>> +    MemoryDeviceInfoList **prev = &info_list;
>> +    MemoryDeviceInfoList *info;
>> +    ram_addr_t size = ram_size;
>> +
>> +    qmp_pc_dimm_device_list(qdev_get_machine(), &prev);
>> +    for (info = info_list; info; info = info->next) {
>> +        MemoryDeviceInfo *value = info->value;
>> +
>> +        if (value) {
>> +            switch (value->kind) {
>> +            case MEMORY_DEVICE_INFO_KIND_DIMM:
>> +                size += value->dimm->size;
>> +                break;
>> +            default:
>> +                break;
>> +            }
>> +        }
>> +    }
>> +    qapi_free_MemoryDeviceInfoList(info_list);
>> +
>> +    return size;
>> +}
>> +
>>   static int pc_dimm_slot2bitmap(Object *obj, void *opaque)
>>   {
>>       unsigned long *bitmap = opaque;
>> diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
>> index 427b851..fcc3162 100644
>> --- a/include/exec/cpu-common.h
>> +++ b/include/exec/cpu-common.h
>> @@ -52,6 +52,7 @@ typedef uintptr_t ram_addr_t;
>>   #endif
>>
>>   extern ram_addr_t ram_size;
>> +ram_addr_t get_current_ram_size(void);
>>
>>   /* memory API */
>>
>> diff --git a/stubs/qmp_pc_dimm_device_list.c b/stubs/qmp_pc_dimm_device_list.c
>> index 5cb220c..b584bd8 100644
>> --- a/stubs/qmp_pc_dimm_device_list.c
>> +++ b/stubs/qmp_pc_dimm_device_list.c
>> @@ -5,3 +5,8 @@ int qmp_pc_dimm_device_list(Object *obj, void *opaque)
>>   {
>>      return 0;
>>   }
>> +
>> +ram_addr_t get_current_ram_size(void)
>> +{
>> +    return ram_size;
>> +}
>> --
>> 1.7.12.4
>>
>
> .
>

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

* Re: [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size
  2014-11-19 16:31           ` Eric Blake
  2014-11-20  2:31             ` zhanghailiang
@ 2014-11-20  9:10             ` Michael S. Tsirkin
  1 sibling, 0 replies; 23+ messages in thread
From: Michael S. Tsirkin @ 2014-11-20  9:10 UTC (permalink / raw)
  To: Eric Blake
  Cc: qemu-devel, imammedo, peter.huangpeng, zhanghailiang,
	Luiz Capitulino

On Wed, Nov 19, 2014 at 09:31:35AM -0700, Eric Blake wrote:
> On 11/19/2014 09:06 AM, Michael S. Tsirkin wrote:
> 
> >>>> This affects QMP right?
> >>>
> >>> I think later patches will tell how. CC'ing Eric.
> >>
> >> As far as I can tell, this is just correcting a reporting issue; the
> >> existing QMP commands/events for tracking balloon size will now properly
> >> account for hotplugged memory.
> >>
> >> What I don't know is if this change in semantics will affect any users.
> >>  Libvirt is not yet supporting memory hotplug, so ideally, fixing this
> >> bug before libvirt uses memory hotplug means libvirt will never have to
> >> worry about qemu versions that do incorrect reporting.
> >>
> >> The alternative is to declare that the existing QMP commands cannot
> >> change in semantics for the existing members that it reports, and must
> >> instead report additional dictionary members describing the amount of
> >> hot-plugged memory, and then require that the client add the numbers
> >> together itself.  That sounds mean to the client, so I'm hoping we don't
> >> have to go there.
> > 
> > 
> > IOW you ack this patch for 2.2?
> > 
> 
> Is memory hotplug one of the new features in 2.2?  If so, then yes, we
> should get its semantics right from the start (this is a bug fix to
> avoid a release with broken semantics).  On the other hand, if hotplug
> existed in 2.1, then we already have a release with odd semantics, so
> delaying this fix until 2.3 and leaving 2.2 with the same odd semantics
> would not hurt, and it then becomes a judgment call of whether we are
> rushing in a possibly incomplete solution by trying to get this into
> 2.2. (Sorry I haven't been following the history of memory hotplug closer)

AFAIK it's there since 2.0.


> 
> -- 
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
> 

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2014-11-17  5:11 [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory zhanghailiang
                   ` (5 preceding siblings ...)
  2014-11-19  8:28 ` zhanghailiang
@ 2015-03-03 14:04 ` Luiz Capitulino
  2015-03-04 12:55   ` zhanghailiang
  6 siblings, 1 reply; 23+ messages in thread
From: Luiz Capitulino @ 2015-03-03 14:04 UTC (permalink / raw)
  To: zhanghailiang; +Cc: imammedo, mst, qemu-devel, peter.huangpeng

On Mon, 17 Nov 2014 13:11:07 +0800
zhanghailiang <zhang.zhanghailiang@huawei.com> wrote:

> Hi,
> 
> Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
> hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
> after we hotplug memory.
> 
> This bug exists since we begin to support hotplug memory, and it is better
> to fix it.
> 
> Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary, 
> pls feel free to remove it.

I've applied this series to the QMP tree.

> 
> Thanks,
> zhanghailiang
> 
> v2:
> - fix compiling break for other targets that don't support pc-dimm
> 
> zhanghailiang (3):
>   pc-dimm: add a function to calculate VM's current RAM size
>   virtio-balloon: Fix balloon not working correctly when hotplug memory
>   virtio-balloon: Add some trace events
> 
>  hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>  hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
>  include/exec/cpu-common.h       |  1 +
>  stubs/qmp_pc_dimm_device_list.c |  5 +++++
>  trace-events                    |  4 ++++
>  5 files changed, 51 insertions(+), 6 deletions(-)
> 

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

* Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory
  2015-03-03 14:04 ` Luiz Capitulino
@ 2015-03-04 12:55   ` zhanghailiang
  0 siblings, 0 replies; 23+ messages in thread
From: zhanghailiang @ 2015-03-04 12:55 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: imammedo, hangaohuai, mst, peter.huangpeng, qemu-devel

On 2015/3/3 22:04, Luiz Capitulino wrote:
> On Mon, 17 Nov 2014 13:11:07 +0800
> zhanghailiang <zhang.zhanghailiang@huawei.com> wrote:
>
>> Hi,
>>
>> Patch 1 and 2 mainly fix bug about balloon not working correctly when we do
>> hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong
>> after we hotplug memory.
>>
>> This bug exists since we begin to support hotplug memory, and it is better
>> to fix it.
>>
>> Patch 3 add some trace events, it helps debugging balloon. If it is unnecessary,
>> pls feel free to remove it.
>
> I've applied this series to the QMP tree.
>

OK, Thanks.

>>
>> Thanks,
>> zhanghailiang
>>
>> v2:
>> - fix compiling break for other targets that don't support pc-dimm
>>
>> zhanghailiang (3):
>>    pc-dimm: add a function to calculate VM's current RAM size
>>    virtio-balloon: Fix balloon not working correctly when hotplug memory
>>    virtio-balloon: Add some trace events
>>
>>   hw/mem/pc-dimm.c                | 26 ++++++++++++++++++++++++++
>>   hw/virtio/virtio-balloon.c      | 21 +++++++++++++++------
>>   include/exec/cpu-common.h       |  1 +
>>   stubs/qmp_pc_dimm_device_list.c |  5 +++++
>>   trace-events                    |  4 ++++
>>   5 files changed, 51 insertions(+), 6 deletions(-)
>>
>
>
> .
>

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

end of thread, other threads:[~2015-03-04 12:56 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17  5:11 [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory zhanghailiang
2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 1/3] pc-dimm: add a function to calculate VM's current RAM size zhanghailiang
2014-11-19  9:59   ` Igor Mammedov
2014-11-19 10:32   ` Michael S. Tsirkin
2014-11-19 15:13     ` Luiz Capitulino
2014-11-19 15:52       ` Eric Blake
2014-11-19 16:06         ` Michael S. Tsirkin
2014-11-19 16:31           ` Eric Blake
2014-11-20  2:31             ` zhanghailiang
2014-11-20  9:10             ` Michael S. Tsirkin
2014-11-20  2:33     ` zhanghailiang
2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 2/3] virtio-balloon: Fix balloon not working correctly when hotplug memory zhanghailiang
2014-11-17  5:11 ` [Qemu-devel] [PATCH v2 3/3] virtio-balloon: Add some trace events zhanghailiang
2014-11-17  6:07 ` [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory Michael S. Tsirkin
2014-11-17 10:39 ` Michael S. Tsirkin
2014-11-17 10:53   ` zhanghailiang
2014-11-17 12:25     ` zhanghailiang
2014-11-17 12:40       ` Michael S. Tsirkin
2014-11-18  2:50         ` zhanghailiang
2014-11-19  8:28 ` zhanghailiang
2014-11-19 10:06   ` Igor Mammedov
2015-03-03 14:04 ` Luiz Capitulino
2015-03-04 12:55   ` zhanghailiang

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).