qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] Question about softmmu
@ 2004-11-07  0:51 olivier cozette
  2004-11-08  0:32 ` Another related question " Ye Wen
  0 siblings, 1 reply; 2+ messages in thread
From: olivier cozette @ 2004-11-07  0:51 UTC (permalink / raw)
  To: qemu-devel

Hello,

>I'm reading the QEMU code. I have a question haunting my mind for some time
>about tb flushing due to MMU change. Generally, whenever the page table has
>any change, we should flush the tb hash table. But I only see in the code that
>when CR3 is changed, the tb_flush is called. What if the CR3 does not change,
>but some level 2 page table in the memory change, should the tb also be
>flushed?


In this case, in the real processor (see Intel Manual), the processor TLBs (it's
like the Qemu tb) are not flushed, so Qemu act as a real processor.

Olivier

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Another related question Re: [Qemu-devel] Question about softmmu
  2004-11-07  0:51 [Qemu-devel] Question about softmmu olivier cozette
@ 2004-11-08  0:32 ` Ye Wen
  0 siblings, 0 replies; 2+ messages in thread
From: Ye Wen @ 2004-11-08  0:32 UTC (permalink / raw)
  To: qemu-devel

Thanks Olivier.

Another question:
When translating instructions that access PC, e.g. move pc to register,
actually the PC value at translation time is used. This causes a problem
that if the address mapping changes later, this translated basic block
is still using the old PC value. Is it right? How does QEMU deal with it?
Or is it completely impossible?

Thanks,
Ye

Quoting olivier cozette <olivier.cozette@u-picardie.fr>:

> Hello,
>
> >I'm reading the QEMU code. I have a question haunting my mind for some time
> >about tb flushing due to MMU change. Generally, whenever the page table has
> >any change, we should flush the tb hash table. But I only see in the code
> that
> >when CR3 is changed, the tb_flush is called. What if the CR3 does not
> change,
> >but some level 2 page table in the memory change, should the tb also be
> >flushed?
>
>
> In this case, in the real processor (see Intel Manual), the processor TLBs
> (it's
> like the Qemu tb) are not flushed, so Qemu act as a real processor.
>
> Olivier
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>


--
Ye Wen
wen@umail.ucsb.edu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-08  0:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-07  0:51 [Qemu-devel] Question about softmmu olivier cozette
2004-11-08  0:32 ` Another related question " Ye Wen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).