kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Increase KVMSlots size
@ 2012-01-31 11:47 Bhushan Bharat-R65777
  2012-01-31 20:12 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Bhushan Bharat-R65777 @ 2012-01-31 11:47 UTC (permalink / raw)
  To: kvm@vger.kernel.org; +Cc: agraf@suse.de

Hi All,

In my development I came across the state where I need more than 32 kvmslots

QEMU/kvm-all.c:

<cut>
struct KVMState
{
    KVMSlot slots[32];
	
<cut>


Followings are the solution I thought of:
Solution 1: 
	Increase the slot to 64 in both KVM and QEMU. I think this will also require to add a new ioctl call so that qemu can come to know on which KVM it is running (whether it is running on 32 slots KVM or 64 slots KVM).

Other solutions:
	a) Decouple the qemu and kvm data structure. QEMU and KVM use some variable size data structure or lists etc. QEMU can keep on adding as many as it wants without knowing how much slots KVM supports.
	b) There are linear search in the KVM slots array in critical path of code of KVM. Does this make some sense using RB-tree, heapsort, balanced binary tree type of solutions?

Looking forward for suggestions.

Thanks
-Bharat


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-31 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 11:47 Increase KVMSlots size Bhushan Bharat-R65777
2012-01-31 20:12 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).