Re: How KVM sync guest page table with corresponding shadow page table?

2012-08-30 Thread Xiao Guangrong
On 08/24/2012 03:29 PM, 陳韋任 (Wei-Ren Chen) wrote: > Hi Guangrong, > > I am not familiar with the term used in paging world, so I need to ask > some dumb questions. > >> It is controlled by shadow page table, guest-page-tables are write-protected >> on shadow pages (the W bit on PTE is cleared).

Re: How KVM sync guest page table with corresponding shadow page table?

2012-08-24 Thread Wei-Ren Chen
Hi Guangrong, I am not familiar with the term used in paging world, so I need to ask some dumb questions. > It is controlled by shadow page table, guest-page-tables are write-protected > on shadow pages (the W bit on PTE is cleared). O.K. > There has a special case, called unsync shadow pa

Re: How KVM sync guest page table with corresponding shadow page table?

2012-08-14 Thread Xiao Guangrong
On 08/14/2012 11:54 AM, 陳韋任 (Wei-Ren Chen) wrote: > Hi all, > > If guest modify its guest page table entry, KVM should trap that event, > emulate what guest trying to do, and sync with the corresponding shadow > page table entry. Is my understanding correct? If so, does KVM use > something like

How KVM sync guest page table with corresponding shadow page table?

2012-08-13 Thread Wei-Ren Chen
Hi all, If guest modify its guest page table entry, KVM should trap that event, emulate what guest trying to do, and sync with the corresponding shadow page table entry. Is my understanding correct? If so, does KVM use something like mprotect to make guest page table read-only, or there is anoth