Re: [PATCH v7 03/12] Retry fault before vmentry

2010-10-17 Thread Avi Kivity
On 10/14/2010 11:22 AM, Gleb Natapov wrote: When page is swapped in it is mapped into guest memory only after guest tries to access it again and generate another fault. To save this fault we can map it immediately since we know that guest is going to access the page. Do it only when tdp is

Re: [PATCH v7 03/12] Retry fault before vmentry

2010-10-17 Thread Avi Kivity
On 10/17/2010 12:33 PM, Avi Kivity wrote: On 10/14/2010 11:22 AM, Gleb Natapov wrote: When page is swapped in it is mapped into guest memory only after guest tries to access it again and generate another fault. To save this fault we can map it immediately since we know that guest is going to

Re: [PATCH v7 03/12] Retry fault before vmentry

2010-10-17 Thread Gleb Natapov
When page is swapped in it is mapped into guest memory only after guest tries to access it again and generate another fault. To save this fault we can map it immediately since we know that guest is going to access the page. Do it only when tdp is enabled for now. Shadow paging case is more

[PATCH v7 03/12] Retry fault before vmentry

2010-10-14 Thread y
From: Gleb Natapov g...@redhat.com When page is swapped in it is mapped into guest memory only after guest tries to access it again and generate another fault. To save this fault we can map it immediately since we know that guest is going to access the page. Do it only when tdp is enabled for

[PATCH v7 03/12] Retry fault before vmentry

2010-10-14 Thread Gleb Natapov
When page is swapped in it is mapped into guest memory only after guest tries to access it again and generate another fault. To save this fault we can map it immediately since we know that guest is going to access the page. Do it only when tdp is enabled for now. Shadow paging case is more