migration/rdma: Plug memory leaks in qemu_rdma_registration_stop()
[qemu/armbru.git] / util / pagesize.c
blob998632cf6ee6877e6f8965a4a2fe4c0f889a5191
1 /*
2 * pagesize.c - query the host about its page size
4 * Copyright (C) 2017, Emilio G. Cota <cota@braap.org>
5 * License: GNU GPL, version 2 or later.
6 * See the COPYING file in the top-level directory.
7 */
9 #include "qemu/osdep.h"
11 uintptr_t qemu_real_host_page_size;
12 intptr_t qemu_real_host_page_mask;
14 static void __attribute__((constructor)) init_real_host_page_size(void)
16 qemu_real_host_page_size = getpagesize();
17 qemu_real_host_page_mask = -(intptr_t)qemu_real_host_page_size;