void kvm_setup_guest_memory(void *start, size_t size)

{

    if (!kvm_has_sync_mmu()) {

#ifdef MADV_DONTFORK

        int ret = madvise(start, size, MADV_DONTFORK);



        if (ret) {

            perror("madvice");

            exit(1);

        }

#else

        fprintf(stderr,

                "Need MADV_DONTFORK in absence of synchronous KVM MMU\n");

        exit(1);

#endif

    }

}

void kvm_setup_guest_memory(void *start, size_t size)

{

    if (!kvm_has_sync_mmu()) {

#ifdef MADV_DONTFORK

        int ret = madvise(start, size, MADV_DONTFORK);



        if (ret) {

            perror("madvice");

            exit(1);

        }

#else

        fprintf(stderr,

                "Need MADV_DONTFORK in absence of synchronous KVM MMU\n");

        exit(1);

#endif

    }

}

#endif #endif #ifdef MADV_DONTFORK         int ret = madvise(start, size, MADV_DONTFORK);             perror("madvice"); #else         fprintf(stderr,                 "Need MADV_DONTFORK in absence of synchronous KVM MMU\n");         exit(1); #endif
void FUNC_0(void *VAR_0, size_t VAR_1)

{

    if (!kvm_has_sync_mmu()) {

#ifdef MADV_DONTFORK

        int ret = madvise(VAR_0, VAR_1, MADV_DONTFORK);



        if (ret) {

            perror("madvice");

            exit(1);

        }

#else

        fprintf(stderr,

                "Need MADV_DONTFORK in absence of synchronous KVM MMU\n");

        exit(1);

#endif

    }

}

void FUNC_0(void *VAR_0, size_t VAR_1)
{ if (!kvm_has_sync_mmu()) { #ifdef MADV_DONTFORK
int ret = madvise(VAR_0, VAR_1, MADV_DONTFORK); if (ret) { perror("madvice"); exit(1); } #else
fprintf(stderr,
"Need MADV_DONTFORK in absence of synchronous KVM MMU\n"); exit(1); #endif
} }