On 07/16/2017 10:04 AM, Emilio G. Cota wrote:
+static int qemu_mprotect__osdep(void *addr, size_t size, int prot)
+{
+    void *start = QEMU_ALIGN_PTR_DOWN(addr, qemu_real_host_page_size);
+    void *end = QEMU_ALIGN_PTR_UP(addr + size, qemu_real_host_page_size);

I'm not keen on this. Any good reason for it as opposed to asserting that the inputs are already page aligned?


r~

Reply via email to