]> err.no Git - linux-2.6/commit
KVM: Avoid useless memory write when possible
authorLuca Tettamanti <kronos.it@gmail.com>
Tue, 19 Jun 2007 20:41:38 +0000 (22:41 +0200)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:48 +0000 (12:05 +0300)
commita3c870bdce4d34332ebdba7eb9969592c4c6b243
treeea0d54e333f133a6e96a56356c5e516fc79e5580
parent02c03a326a5df825cc01de426f72e160db2b9538
KVM: Avoid useless memory write when possible

When writing to normal memory and the memory area is unchanged the write
can be safely skipped, avoiding the costly kvm_mmu_pte_write.

Signed-Off-By: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c