]> git.proxmox.com Git - mirror_qemu.git/blobdiff - migration/postcopy-ram.c
Replace qemu_real_host_page variables with inlined functions
[mirror_qemu.git] / migration / postcopy-ram.c
index 32c52f4b1d9ec7d8cb2a1d2679c40601bdef96c0..a66dd536d9397dfb2632aef7184b14d8e5cf7690 100644 (file)
@@ -319,7 +319,7 @@ static bool ufd_check_and_apply(int ufd, MigrationIncomingState *mis)
         return false;
     }
 
-    if (qemu_real_host_page_size != ram_pagesize_summary()) {
+    if (qemu_real_host_page_size() != ram_pagesize_summary()) {
         bool have_hp = false;
         /* We've got a huge page */
 #ifdef UFFD_FEATURE_MISSING_HUGETLBFS
@@ -357,7 +357,7 @@ static int test_ramblock_postcopiable(RAMBlock *rb, void *opaque)
  */
 bool postcopy_ram_supported_by_host(MigrationIncomingState *mis)
 {
-    long pagesize = qemu_real_host_page_size;
+    long pagesize = qemu_real_host_page_size();
     int ufd = -1;
     bool ret = false; /* Error unless we change it */
     void *testarea = NULL;