]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: set page dirty only if page has been writable
authorYu Zhao <yuzhao@google.com>
Wed, 30 Mar 2016 20:38:09 +0000 (13:38 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Apr 2016 10:10:10 +0000 (12:10 +0200)
commit8a30a2aa3093e2383a3e710751c1ea47164c0995
treea5883be4834d815db85463c1218b20da509b1830
parent9160ce5c85586fe644dcf30c88a04e544a05219b
kvm: set page dirty only if page has been writable

In absence of shadow dirty mask, there is no need to set page dirty
if page has never been writable. This is a tiny optimization but
good to have for people who care much about dirty page tracking.

Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c