[PATCH v5 1/5] KVM: MMU: fix Dirty bit missed if CR0.WP = 0

2013-01-07 Thread Xiao Guangrong
If the write-fault access is from supervisor and CR0.WP is not set on the vcpu, kvm will fix it by adjusting pte access - it sets the W bit on pte and clears U bit. This is the chance that kvm can change pte access from readonly to writable Unfortunately, the pte access is the access of 'direct'

[PATCH v5 1/5] KVM: MMU: fix Dirty bit missed if CR0.WP = 0

2013-01-07 Thread Xiao Guangrong
If the write-fault access is from supervisor and CR0.WP is not set on the vcpu, kvm will fix it by adjusting pte access - it sets the W bit on pte and clears U bit. This is the chance that kvm can change pte access from readonly to writable Unfortunately, the pte access is the access of 'direct'