qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Detecting context switch in QEMU


From: Mulyadi Santosa
Subject: Re: [Qemu-devel] Detecting context switch in QEMU
Date: Sun, 2 Sep 2012 23:10:54 +0700

Hi......

On Sun, Sep 2, 2012 at 10:52 PM, Xin Tong <address@hidden> wrote:
> Ok, i do not know this. but it seems tracking CR3 is no good. any ideas ?

from the Linux kernel source:
http://lxr.free-electrons.com/source/kernel/sched/core.c#L3456:

/*
2042  * context_switch - switch to the new MM and the new
2043  * thread's register state.
2044  */
2045 static inline void
2046 context_switch(struct rq *rq, struct task_struct *prev,
2047                struct task_struct *next)


i am not so good on arch detail...perhaps you have ideas what
"thread's register state" is?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]