Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its calling path

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Monday, April 12, 2010 - 5:49 am

On 04/12/2010 03:22 PM, Xiao Guangrong wrote:

Ouch.  I see now, thanks for explaining.

One way to fix it is to make kvm_mmu_zap_page() only zap the page it is 
given, and use sp->role.invalid on its children.  But it's better to fix 
it now quickly and do the more involved fixes later.

Just change the assignment to a 'goto restart;' please, I don't like 
playing with list_for_each internals.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/6] KVM MMU: remove unused struct, Xiao Guangrong, (Mon Apr 12, 12:59 am)
[PATCH 4/6] KVM MMU: optimize for writing cr4, Xiao Guangrong, (Mon Apr 12, 1:03 am)
[PATCH 5/6] KVM MMU: reduce kvm_mmu_page size, Xiao Guangrong, (Mon Apr 12, 1:05 am)
[PATCH 6/6] KVM MMU: optimize synchronization shadow pages, Xiao Guangrong, (Mon Apr 12, 1:06 am)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4, Avi Kivity, (Mon Apr 12, 1:34 am)
Re: [PATCH 5/6] KVM MMU: reduce kvm_mmu_page size, Avi Kivity, (Mon Apr 12, 1:36 am)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4, Xiao Guangrong, (Mon Apr 12, 3:42 am)
Re: [PATCH 5/6] KVM MMU: reduce kvm_mmu_page size, Xiao Guangrong, (Mon Apr 12, 4:11 am)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4, Avi Kivity, (Mon Apr 12, 4:22 am)
Re: [PATCH 2/6] KVM MMU: fix kvm_mmu_zap_page() and its ca ..., Avi Kivity, (Mon Apr 12, 5:49 am)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4, Xiao Guangrong, (Mon Apr 12, 8:07 pm)
Re: [PATCH 4/6] KVM MMU: optimize for writing cr4, Avi Kivity, (Mon Apr 12, 11:42 pm)