On 18/6/26 22:23, Warner Losh wrote:
On Thu, Jun 18, 2026 at 4:22 PM Philippe Mathieu-Daudé <
[email protected]> wrote:
On 18/6/26 21:55, Richard Henderson wrote:
Reviewed-by: Helge Deller <[email protected]>
Reviewed-by: Warner Losh <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
---
common-user/selfmap.c | 41 ++++++++++++++++++++++++++++++++++++++++-
common-user/meson.build | 5 +++++
2 files changed, 45 insertions(+), 1 deletion(-)
diff --git a/common-user/selfmap.c b/common-user/selfmap.c
index a1b88dee66..151d066801 100644
--- a/common-user/selfmap.c
+++ b/common-user/selfmap.c
@@ -9,6 +9,10 @@
#include "qemu/osdep.h"
#include "qemu/cutils.h"
#include "user/selfmap.h"
+#ifdef __FreeBSD__
+#include <libutil.h>
Out of curiosity, what is libutil for?
kinfo_getvmmap
Indeed. I was looking at an outdated manpage.
My rewrite grabbed the data from the sysctl directly and didn't need this
wrapper.
Yep, saw in v4 :)