Re: [PATCH] KVM: MMU: Fix rmap_remove() race

Avi Kivity
2008-03-27T08:11:42Z

Andrea Arcangeli wrote:
> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
> index 30bf832..a49987c 100644
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -741,6 +741,10 @@ static struct vm_operations_struct kvm_vcpu_vm_ops = {
> static int kvm_vcpu_mmap(struct file *file, struct vm_area_struct *vma)
> {
> vma->vm_ops = &kvm_vcpu_vm_ops;
> +#ifndef CONFIG_MMU_NOTIFIER
> + /* prevent the VM to release pages under sptes mappings */
> + vma->vm_flags |= VM_LOCKED;
> +#endif
> return 0;
> }
>
>

Erm I don't think this means what you think it means. This is the
kernel/user communication area, used to pass exit data to userspace.
It's not the memslot vma.

--
error compiling committee.c: too many arguments to function