Re: [RFC PATCH 2/3] kvm: Allow memory slot array to grow on demand

2011-02-27 Thread Avi Kivity
On 02/24/2011 08:08 PM, Alex Williamson wrote: @@ -207,7 +206,7 @@ struct kvm_mmu_page { * One bit set per slot which has memory * in this shadow page. */ - DECLARE_BITMAP(slot_bitmap, KVM_MEMORY_SLOTS + KVM_PRIVATE_MEM_SLOTS); + unsigned long

Re: [RFC PATCH 2/3] kvm: Allow memory slot array to grow on demand

2011-02-24 Thread Avi Kivity
On 02/22/2011 08:55 PM, Alex Williamson wrote: Remove fixed KVM_MEMORY_SLOTS limit, allowing the slot array to grow on demand. Private slots are now allocated at the front instead of the end. Only x86 seems to use private slots, so this is now zero for all other archs. The memslots pointer is

Re: [RFC PATCH 2/3] kvm: Allow memory slot array to grow on demand

2011-02-24 Thread Alex Williamson
On Thu, 2011-02-24 at 12:39 +0200, Avi Kivity wrote: On 02/22/2011 08:55 PM, Alex Williamson wrote: Remove fixed KVM_MEMORY_SLOTS limit, allowing the slot array to grow on demand. Private slots are now allocated at the front instead of the end. Only x86 seems to use private slots, so

[RFC PATCH 2/3] kvm: Allow memory slot array to grow on demand

2011-02-22 Thread Alex Williamson
Remove fixed KVM_MEMORY_SLOTS limit, allowing the slot array to grow on demand. Private slots are now allocated at the front instead of the end. Only x86 seems to use private slots, so this is now zero for all other archs. The memslots pointer is already updated using rcu, so changing the size