Skip to contentSkip to conversation

Shadow's Dirty Bit Problem

DISCUSSION zhujun 2 participants 2 messages Jun 28, 2009

lore
Share & tools
lore

zhujun

author
#0 lore raw

Hi,

In the function _sh_propagate, the A&D bits of all the shadow page
tables entries above level 1 will be set. (// Set the A&D bits for higher level shadows). I am very confused about it. From Intel manual, the Dirty bit above level 1 is reserved and must be set 0. Am I right? If yes, how does the shadow page table deal with this problem?

Another question. In Xen's current version, does it use the Dirty
bit to do something?

zhujun

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 5 lines · zhujun

         In the function _sh_propagate, the A&D bits of all the shadow page tables entries above level 1 will be set. (// Set the A&D bits for higher level shadows). I am very confused about it. From Intel manual, the Dirty bit above level 1 is reserved and must be set 0. Am I right? If yes, how does the shadow page table deal with this problem?

Actually, it is an available bit in higher level. So there's no problem in putting it to 1. Also, note that there are level 2 entries with dirty bits: superpages ones.

Quoted 2 lines

         Another question. In Xen’s current version, does it use the Dirty bit to do something?

It's used only for tracking VRAM, to know whether the guest wrote to the VGA buffer or not. Otherwhise, we set it to one.

Thanks,
Gianluca

Signature · 4 lines
It was a type of people I did not know, I found them very strange and
they did not inspire confidence at all. Later I learned that I had been
introduced to electronic engineers.
                                                  E. W. Dijkstra