Log memory access in every quantum

Log every first read/write and first write after reads in every quantum.
Sync after every quantums and kvm->arch.mmu_valid_gen++ to flush all
mmu pages in tm_commit().

Signed-off-by: Arthur Chunqi Li <yzt356@gmail.com>