Re: [PATCH 1/3] KVM: MMU: release noslot pfn on the fail path properly

2012-09-10 Thread Xiao Guangrong
On 09/10/2012 05:02 PM, Avi Kivity wrote: > On 09/10/2012 11:37 AM, Xiao Guangrong wrote: >> On 09/10/2012 04:22 PM, Avi Kivity wrote: >>> On 09/07/2012 09:13 AM, Xiao Guangrong wrote: We can not directly call kvm_release_pfn_clean to release the pfn since we can meet noslot pfn which is

Re: [PATCH 1/3] KVM: MMU: release noslot pfn on the fail path properly

2012-09-10 Thread Avi Kivity
On 09/10/2012 11:37 AM, Xiao Guangrong wrote: > On 09/10/2012 04:22 PM, Avi Kivity wrote: >> On 09/07/2012 09:13 AM, Xiao Guangrong wrote: >>> We can not directly call kvm_release_pfn_clean to release the pfn >>> since we can meet noslot pfn which is used to cache mmio info into >>> spte >>> >>> In

Re: [PATCH 1/3] KVM: MMU: release noslot pfn on the fail path properly

2012-09-10 Thread Xiao Guangrong
On 09/10/2012 04:22 PM, Avi Kivity wrote: > On 09/07/2012 09:13 AM, Xiao Guangrong wrote: >> We can not directly call kvm_release_pfn_clean to release the pfn >> since we can meet noslot pfn which is used to cache mmio info into >> spte >> >> Introduce mmu_release_pfn_clean to do this kind of thing

Re: [PATCH 1/3] KVM: MMU: release noslot pfn on the fail path properly

2012-09-10 Thread Avi Kivity
On 09/07/2012 09:13 AM, Xiao Guangrong wrote: > We can not directly call kvm_release_pfn_clean to release the pfn > since we can meet noslot pfn which is used to cache mmio info into > spte > > Introduce mmu_release_pfn_clean to do this kind of thing > > Signed-off-by: Xiao Guangrong > --- > ar

[PATCH 1/3] KVM: MMU: release noslot pfn on the fail path properly

2012-09-06 Thread Xiao Guangrong
We can not directly call kvm_release_pfn_clean to release the pfn since we can meet noslot pfn which is used to cache mmio info into spte Introduce mmu_release_pfn_clean to do this kind of thing Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 19 ++- arch/x86/kv