lkml.org 
[lkml]   [2020]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 12/21] KVM: X86: Implement ring-based dirty memory tracking
On Thu, Jan 09, 2020 at 09:57:20AM -0500, Peter Xu wrote:
> + /* If to map any writable page within dirty ring, fail it */
> + if ((kvm_page_in_dirty_ring(vcpu->kvm, vma->vm_pgoff) ||
> + kvm_page_in_dirty_ring(vcpu->kvm, vma->vm_pgoff + pages - 1)) &&
> + vma->vm_flags & VM_WRITE)
> + return -EINVAL;

Worth thinking about other flags. Do we want to force VM_SHARED?
Disable VM_EXEC?

\
 
 \ /
  Last update: 2020-01-16 09:38    [W:0.350 / U:2.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site