Re: [RFC] KVM MMU: thinking of shadow page cache

2010-04-01 Thread Avi Kivity
On 04/01/2010 12:05 PM, Xiao Guangrong wrote: We've considered this in the past, it makes sense. The big question is whether any guests actually map the same page table through PDEs with different permissions (mapping the same page table through multiple PDEs is very common, but always with th

Re: [RFC] KVM MMU: thinking of shadow page cache

2010-04-01 Thread Xiao Guangrong
Avi Kivity wrote: >> > > We've considered this in the past, it makes sense. The big question is > whether any guests actually map the same page table through PDEs with > different permissions (mapping the same page table through multiple PDEs > is very common, but always with the same perm

Re: [RFC] KVM MMU: thinking of shadow page cache

2010-03-30 Thread Avi Kivity
On 03/30/2010 04:59 AM, Xiao Guangrong wrote: When we cached shadow page tables, one guest page table may have many shadow pages, take below case for example: (RO+U) ---> |--| __ |--| (W+U ) ---> | GP1 | || GP2 | (W+P ) ---> |--| |--> |--| There have 3 ki

[RFC] KVM MMU: thinking of shadow page cache

2010-03-30 Thread Xiao Guangrong
When we cached shadow page tables, one guest page table may have many shadow pages, take below case for example: (RO+U) ---> |--| __ |--| (W+U ) ---> | GP1 | || GP2 | (W+P ) ---> |--| |--> |--| There have 3 kinds of permission mapping to GP1, so we should allocate