kvm: set page dirty only if page has been writable