qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Can not read SMI handler code with cpu_memory_rw_debug while in SMM
@ 2019-08-28 14:21 poletaev
  0 siblings, 0 replies; only message in thread
From: poletaev @ 2019-08-28 14:21 UTC (permalink / raw)
  To: qemu-devel

I am using OVMF2018 (https://github.com/tianocore/tianocore.github.io/wiki/OVMF) build with smm functionality. Run qemu with "-machine smm=on" option.
When SMI handler starts working, cpu_memory_rw_debug() function reads from tseg_blackhole device mem and function returns ffff... instead of actual data.
Same situation when using remote gdb debugging, guess because cpu_memory_rw_debug() is in use also.
But code of SMI handler executes normally, so cpu can access actual data and not tseg_blackhole.

Can anybody explain please, what is the difference in this context between, for example, x86_ldub_code() and  cpu_memory_rw_debug()?
Is such behavior intended? (guess no)
What is tseg at all? I can't find similar terminology in intel manuals.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-28 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-28 14:21 [Qemu-devel] Can not read SMI handler code with cpu_memory_rw_debug while in SMM poletaev

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).