On Mon, Aug 18, 2008 at 05:04:25PM -0500, Anthony Liguori wrote:
> +    if (!kvm_enabled() || !qemu_kvm_has_mmu_notifiers())
> +        madvise(addr, TARGET_PAGE_SIZE,
> +                deflate ? MADV_WILLNEED : MADV_DONTNEED);

The check was reversed so madvise wasn't invoked in the first place if
mmu notifier was enabled in the host kernel. This should fix it
(untested):

       if (!kvm_enabled() || kvm_has_sync_mmu())
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to