Skip to contentSkip to conversation

win32: fix broken build due to missing QEMU_MADV_HUGEPAGE

PATCH Applied Luiz Capitulino 3 participants 3 messages Oct 24, 2012 – Oct 26, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 win32: fix broken build due to missing QEMU_MADV_HUGEPAGE

Commit ad0b5321f1f797274603ebbe20108b0750baee94 forgot to add QEMU_MADV_HUGEPAGE macros for when CONFIG_MADVISE is not defined. This broke the build for Windows. Fix it.

---
 osdep.h | 2 ++
 1 file changed, 2 insertions(+)
osdep.h +2 -0
index c5fd3d9..585e2c1 100644
@@ -121,6 +121,7 @@ void qemu_vfree(void *ptr);
 #define QEMU_MADV_DONTFORK  QEMU_MADV_INVALID
 #define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID
 #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID
+#define QEMU_MADV_HUGEPAGE  QEMU_MADV_INVALID
 
 #else /* no-op */
 
@@ -129,6 +130,7 @@ void qemu_vfree(void *ptr);
 #define QEMU_MADV_DONTFORK  QEMU_MADV_INVALID
 #define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID
 #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID
+#define QEMU_MADV_HUGEPAGE  QEMU_MADV_INVALID
 
 #endif
 
Signature · 1 line
1.7.12.315.g682ce8b
Reviewed-by on v1 1/1
#1 lore raw

Am 24.10.2012 18:12, schrieb Luiz Capitulino:

Quoted 22 lines

Commit ad0b5321f1f797274603ebbe20108b0750baee94 forgot to add QEMU_MADV_HUGEPAGE macros for when CONFIG_MADVISE is not defined. This broke the build for Windows. Fix it.

---
  osdep.h | 2 ++
  1 file changed, 2 insertions(+)
osdep.h +1 -0
index c5fd3d9..585e2c1 100644
@@ -121,6 +121,7 @@ void qemu_vfree(void *ptr);
  #define QEMU_MADV_DONTFORK  QEMU_MADV_INVALID
  #define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID
  #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID
+#define QEMU_MADV_HUGEPAGE  QEMU_MADV_INVALID
 
  #else /* no-op */
 

osdep.h void qemu_vfree(void *ptr); · line 136

Quoted 7 lines
osdep.h +1 -0
@@ -129,6 +130,7 @@ void qemu_vfree(void *ptr);
  #define QEMU_MADV_DONTFORK  QEMU_MADV_INVALID
  #define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID
  #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID
+#define QEMU_MADV_HUGEPAGE  QEMU_MADV_INVALID
 
  #endif
 

This is a build fix for latest QEMU. Please apply it as soon as possible.

Regards
Stefan Weil

#2 lore raw
In reply to Luiz Capitulino
Quoted 5 lines · Luiz Capitulino

Commit ad0b5321f1f797274603ebbe20108b0750baee94 forgot to add QEMU_MADV_HUGEPAGE macros for when CONFIG_MADVISE is not defined. This broke the build for Windows. Fix it.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 26 lines
---
 osdep.h | 2 ++
 1 file changed, 2 insertions(+)
osdep.h +2 -0
index c5fd3d9..585e2c1 100644
@@ -121,6 +121,7 @@ void qemu_vfree(void *ptr);
 #define QEMU_MADV_DONTFORK  QEMU_MADV_INVALID
 #define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID
 #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID
+#define QEMU_MADV_HUGEPAGE  QEMU_MADV_INVALID
 
 #else /* no-op */
 
@@ -129,6 +130,7 @@ void qemu_vfree(void *ptr);
 #define QEMU_MADV_DONTFORK  QEMU_MADV_INVALID
 #define QEMU_MADV_MERGEABLE QEMU_MADV_INVALID
 #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID
+#define QEMU_MADV_HUGEPAGE  QEMU_MADV_INVALID
 
 #endif
 
Signature · 1 line
1.7.12.315.g682ce8b