summaryrefslogtreecommitdiffstats
path: root/hw/i386/xen
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-06-25 14:42:03 +0200
committerPaolo Bonzini2018-07-02 15:41:13 +0200
commit8f951a13f0dd801dcf95c822091a7db49b323ca2 (patch)
tree164dc59772032bdf47e3f0f81cfd3b5f5dc65e22 /hw/i386/xen
parenthw/smbios: Use the IEC binary prefix definitions (diff)
downloadqemu-8f951a13f0dd801dcf95c822091a7db49b323ca2.tar.gz
qemu-8f951a13f0dd801dcf95c822091a7db49b323ca2.tar.xz
qemu-8f951a13f0dd801dcf95c822091a7db49b323ca2.zip
hw/xen: Use the IEC binary prefix definitions
It eases code review, unit is explicit. Patch generated using: $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alan Robinson <Alan.Robinson@ts.fujitsu.com> Message-Id: <20180625124238.25339-12-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/xen')
-rw-r--r--hw/i386/xen/xen-mapcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/i386/xen/xen-mapcache.c b/hw/i386/xen/xen-mapcache.c
index 628b813a11..4e4f069a24 100644
--- a/hw/i386/xen/xen-mapcache.c
+++ b/hw/i386/xen/xen-mapcache.c
@@ -9,6 +9,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu/units.h"
#include "qemu/error-report.h"
#include <sys/resource.h>
@@ -46,7 +47,7 @@
* From empirical tests I observed that qemu use 75MB more than the
* max_mcache_size.
*/
-#define NON_MCACHE_MEMORY_SIZE (80 * 1024 * 1024)
+#define NON_MCACHE_MEMORY_SIZE (80 * MiB)
typedef struct MapCacheEntry {
hwaddr paddr_index;