Ingo Molnar wrote:
>   
>> The context switch paths need to do the same.
>>     
>
> yeah. Although, as this example has shown it, such implicit assumptions 
> carried into code tends to be volatile. Couldnt the kvm_mmu_zap_page() 
> be done implicitly within kvm_mmu_alloc_page()? As long as the list is 
> LRU, and the number of allocations done within a logical operation 
> doesnt exceed the size of the LRU list (which it doesnt), this should be 
> doable.
>   

Right not the list is not LRU, so a zap can kill your parent page 
table.  I'm also worried about preserving invariants, as the page tables 
are linked through a variety of data structures.  Calling zap_page() 
while another operation is in progress could cause corruption if 
zap_page() kills one of your parents or children.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to