Re: [PATCH] KVM: fix the handling of dirty bitmaps to avoid overflows

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Monday, April 12, 2010 - 11:50 pm

On 04/13/2010 03:52 AM, Takuya Yoshikawa wrote:

No, int is 32 bits, but memslot->npages is not our under control.

Note that you don't actually need all those pages to create a large 
memory slot.


It's better to limit memory slots to something that can be handled by 
everything, then. 2^31 pages is plenty.  Return -EINVAL if the slot is 
too large.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] KVM: fix the handling of dirty bitmaps to avoi ..., Avi Kivity, (Mon Apr 12, 11:50 pm)
Re: [PATCH] KVM: fix the handling of dirty bitmaps to avoi ..., Takuya Yoshikawa, (Tue Apr 13, 12:03 am)