Yes, read pageWriteStamp. It is exactly build for SMC detection.
 
Stanislav
 
From: Adnan Khaleel [mailto:ad...@kh...] 
Sent: Thursday, April 15, 2010 9:31 PM
To: Stanislav Shwartsman; boc...@li...
Subject: RE: Dirty page table entry
 
Setting a watchpoint would work if I was monitoring a known page, however thats not the case. I'm essentially trying to figure out when self modifying code writes to a page. I just wanted to see if Bochs was doing this already instead of adding a separate page dirty tracker.
Adnan
  _____  
From: Stanislav Shwartsman [mailto:stl...@gm...]
To: ad...@kh..., boc...@li...
Sent: Thu, 15 Apr 2010 13:18:42 -0500
Subject: RE: Dirty page table entry
It was there a while ago but now it isn’t.
Today you could set up write watchpoint with length of whole page and get a breakpoint exactly when write to the page happens.
 
Stanislav
 
 
From: Adnan Khaleel [mailto:ad...@kh...] 
Sent: Thursday, April 15, 2010 9:13 PM
To: boc...@li...
Cc: stl...@gm...
Subject: Dirty page table entry
 
What is the simplest way to find out if a page has been written to? Is there a flag somewhere that Bochs already sets when a page has been modified?
Thanks,
AK
  |