Re: [Qemu-devel] virtual pc hash table vs physical pc hash table

2012-02-01 Thread 陳韋任
On Fri, Jan 20, 2012 at 08:49:56AM -0500, Xin Tong wrote: > maybe one of the reasons of having the virtual pc hash table is that > the pc does not need to be tranlated to a physical pc which is used in > the physical pc hash table. Take context switch as an example. Before context switching, you

Re: [Qemu-devel] virtual pc hash table vs physical pc hash table

2012-01-20 Thread 陳韋任
On Mon, Jan 02, 2012 at 07:11:41AM -0500, Xin Tong wrote: > In qemu, there is a virtual pc hash table and a physical pc hash > table. virtual pc hash table is used to find tbs until a context > switch. and physical pc hash table keeps all the translated tb. > virtual pc hash table is smaller, acces

Re: [Qemu-devel] virtual pc hash table vs physical pc hash table

2012-01-20 Thread Xin Tong
maybe one of the reasons of having the virtual pc hash table is that the pc does not need to be tranlated to a physical pc which is used in the physical pc hash table. Xin On Fri, Jan 20, 2012 at 1:24 AM, 陳韋任 wrote: > On Mon, Jan 02, 2012 at 07:11:41AM -0500, Xin Tong wrote: >> In qemu, there

[Qemu-devel] virtual pc hash table vs physical pc hash table

2012-01-02 Thread Xin Tong
In qemu, there is a virtual pc hash table and a physical pc hash table. virtual pc hash table is used to find tbs until a context switch. and physical pc hash table keeps all the translated tb. virtual pc hash table is smaller, accessed with 12 bits and physical pc hash table is bigger, accessed wi