qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hvf: Avoid mapping regions < PAGE_SIZE as ram


From: Paolo Bonzini
Subject: Re: [PATCH] hvf: Avoid mapping regions < PAGE_SIZE as ram
Date: Tue, 26 Oct 2021 18:34:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

On 25/10/21 21:10, Alexander Graf wrote:
          }
      }
  +    if (int128_get64(section->size) & (qemu_real_host_page_size - 1) || +        section->offset_within_address_space & (qemu_real_host_page_size - 1)) {
+        /* Not page aligned, so we can not map as RAM */
+        add = false;
+    }
+
      mem = hvf_find_overlap_slot(
              section->offset_within_address_space,
              int128_get64(section->size));


Queued, thanks.


You probably want v2 instead :)

That's actually what I had applied. :)

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]