ppc doesn't support readonly mem
authorLauri Kasanen <cand@gmx.com>
Thu, 27 May 2021 16:00:31 +0000 (19:00 +0300)
committerLauri Kasanen <cand@gmx.com>
Thu, 27 May 2021 16:00:31 +0000 (19:00 +0300)
main.c

diff --git a/main.c b/main.c
index 0b9263f8b3107e84d8d0f9848f2368adc01a94ef..041d0c7cd8d773e7acc0216e4b32fc90cdd819b7 100644 (file)
--- a/main.c
+++ b/main.c
@@ -375,7 +375,6 @@ int main(int argc, char **argv) {
        region.guest_phys_addr = PROGSTART;
        region.memory_size = progmemlen;
        region.userspace_addr = (uint64_t) progmem;
-       region.flags = KVM_MEM_READONLY;
        if (ioctl(vmfd, KVM_SET_USER_MEMORY_REGION, &region) == -1)
                abort();