Skip to contentSkip to conversation

possible code/comment mismatch in hap_enable_vram_tracking/hap_clean_vram_tracking

DISCUSSION Olaf Hering 2 participants 2 messages Sep 9, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

the comments in hap_enable_vram_tracking() and hap_clean_vram_tracking() say the pages will be set to read-only, but it passes p2m_ram_rw instead of p2m_ram_ro to p2m_change_type().

Bug or feature?

Olaf

#1 lore raw
Quoted 8 lines · Olaf Hering

Hello,

the comments in hap_enable_vram_tracking() and hap_clean_vram_tracking() say the pages will be set to read-only, but it passes p2m_ram_rw instead of p2m_ram_ro to p2m_change_type().

Bug or feature?

Neither. :) It's changing _from_ type p2m_ram_rw to type p2m_ram_logdirty (which is read-only until the next write, when it reverts to p2m_ram_rw and marks the page dirty).

Cheers,

Tim.

Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)