On 9/21/21 9:56 PM, Warner Losh wrote:
          /* no page was there, so we allocate one */
          void *p = mmap(host_start, qemu_host_page_size, prot,
-                       flags | MAP_ANON, -1, 0);
+                       flags | ((fd != -1) ? MAP_ANON : 0), -1, 0);

I don't understand this change, given that the actual fd passed is always -1.


r~

Reply via email to