On Sun, Sep 2, 2012 at 2:33 AM, Xin Tong <xerox.time.t...@gmail.com> wrote: > I want to detect context switches in QEMU x86_64-softmmu. one of the > ideas i have is to track the write to CR3. is this valid on QEMU ( > i.e. are their any cases in which the assumption could break).
CMIIW, if context switch happen from a parent process to its NPTL based thread, or to kernel thread, then CR3 won't be updated since they are using the same address space in Linux kernel, right? And that includes no TLB flush AFAIK..... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com