Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1629758
| Path | csiph.com!news.redatomik.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Radim Krčmář <rkrcmar@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/4] KVM: add KVM_CREATE_VM2 system ioctl |
| Date | Mon, 24 Apr 2017 18:30:02 +0200 |
| Message-ID | <tzP2a-Rd-9@gated-at.bofh.it> (permalink) |
| References | <tvTxn-86R-1@gated-at.bofh.it> <tvTxo-86R-13@gated-at.bofh.it> <txC93-7aw-1@gated-at.bofh.it> <txCsq-7gY-17@gated-at.bofh.it> |
| Dmarc-Filter | OpenDMARC Filter v1.3.2 mx1.redhat.com 7E3557F4BE |
| Authentication-Results | ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com |
| Authentication-Results | ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=rkrcmar@redhat.com |
| Dkim-Filter | OpenDKIM Filter v2.11.0 mx1.redhat.com 7E3557F4BE |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Scanned-By | MIMEDefang 2.79 on 10.5.11.16 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 24 Apr 2017 16:22:59 +0000 (UTC) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 26 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Christoffer Dall <cdall@linaro.org>, Marc Zyngier <marc.zyngier@arm.com>, Christian Borntraeger <borntraeger@de.ibm.com>, Cornelia Huck <cornelia.huck@de.ibm.com>, James Hogan <james.hogan@imgtec.com>, Paul Mackerras <paulus@ozlabs.org>, Alexander Graf <agraf@suse.com> |
| X-Original-Date | Mon, 24 Apr 2017 18:22:55 +0200 |
| X-Original-Message-ID | <20170424162255.GA5713@potion> |
| X-Original-References | <20170413201951.11939-1-rkrcmar@redhat.com> <20170413201951.11939-4-rkrcmar@redhat.com> <28b31907-80d8-3d5f-a3a3-0131621fa4c2@redhat.com> <d014f264-72a4-a17e-cdb4-38a95b737b3c@redhat.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1629758 |
Show key headers only | View raw
2017-04-18 16:30+0200, Paolo Bonzini: > On 18/04/2017 16:16, Paolo Bonzini wrote: >>> This patch allows userspace to tell how many VCPUs it is going to use, >>> which can save memory when allocating the kvm->vcpus array. This will >>> be done with a new KVM_CREATE_VM2 IOCTL. >>> >>> An alternative would be to redo kvm->vcpus as a list or protect the >>> array with RCU. RCU is slower and a list is not even practical as >>> kvm->vcpus are being used for index-based accesses. >>> >>> We could have an IOCTL that is called in between KVM_CREATE_VM and first >>> KVM_CREATE_VCPU and sets the size of the vcpus array, but we'd be making >>> one useless allocation. Knowing the desired number of VCPUs from the >>> beginning is seems best for now. >>> >>> This patch also prepares generic code for architectures that will set >>> KVM_CONFIGURABLE_MAX_VCPUS to a non-zero value. >> Why is KVM_MAX_VCPU_ID or KVM_MAX_VCPUS not enough? > > Ok, for KVM_MAX_VCPUS I should have read the cover letter more carefully. :) KVM_MAX_VCPU_ID makes sense as the upper bound, I just didn't want to mingle the concepts, because the kvm->vcpus array is not indexed by VCPU_ID ... In hindsight, it would be best to change that and get rid of the search. I'll see how that looks in v2.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] KVM: add KVM_CREATE_VM2 to allow dynamic kvm->vcpus array Radim Krčmář <rkrcmar@redhat.com> - 2017-04-13 22:30 +0200
[PATCH 4/4] KVM: x86: enable configurable MAX_VCPU Radim Krčmář <rkrcmar@redhat.com> - 2017-04-13 22:30 +0200
Re: [PATCH 4/4] KVM: x86: enable configurable MAX_VCPU Christian Borntraeger <borntraeger@de.ibm.com> - 2017-04-19 10:10 +0200
Re: [PATCH 4/4] KVM: x86: enable configurable MAX_VCPU Radim Krčmář <rkrcmar@redhat.com> - 2017-04-24 19:10 +0200
[PATCH 2/4] KVM: allocate kvm->vcpus separately Radim Krčmář <rkrcmar@redhat.com> - 2017-04-13 22:30 +0200
[PATCH 1/4] KVM: remove unused __KVM_HAVE_ARCH_VM_ALLOC Radim Krčmář <rkrcmar@redhat.com> - 2017-04-13 22:30 +0200
Re: [PATCH 1/4] KVM: remove unused __KVM_HAVE_ARCH_VM_ALLOC David Hildenbrand <david@redhat.com> - 2017-04-18 13:00 +0200
[PATCH 3/4] KVM: add KVM_CREATE_VM2 system ioctl Radim Krčmář <rkrcmar@redhat.com> - 2017-04-13 22:30 +0200
Re: [PATCH 3/4] KVM: add KVM_CREATE_VM2 system ioctl Paolo Bonzini <pbonzini@redhat.com> - 2017-04-18 16:20 +0200
Re: [PATCH 3/4] KVM: add KVM_CREATE_VM2 system ioctl Paolo Bonzini <pbonzini@redhat.com> - 2017-04-18 16:40 +0200
Re: [PATCH 3/4] KVM: add KVM_CREATE_VM2 system ioctl Radim Krčmář <rkrcmar@redhat.com> - 2017-04-24 18:30 +0200
Re: [PATCH 3/4] KVM: add KVM_CREATE_VM2 system ioctl Radim Krčmář <rkrcmar@redhat.com> - 2017-04-24 22:30 +0200
Re: [PATCH 0/4] KVM: add KVM_CREATE_VM2 to allow dynamic kvm->vcpus array David Hildenbrand <david@redhat.com> - 2017-04-18 13:20 +0200
Re: [PATCH 0/4] KVM: add KVM_CREATE_VM2 to allow dynamic kvm->vcpus array Cornelia Huck <cornelia.huck@de.ibm.com> - 2017-04-18 14:30 +0200
Re: [PATCH 0/4] KVM: add KVM_CREATE_VM2 to allow dynamic kvm->vcpus array Radim Krčmář <rkrcmar@redhat.com> - 2017-04-24 22:10 +0200
Re: [PATCH 0/4] KVM: add KVM_CREATE_VM2 to allow dynamic kvm->vcpus array Radim Krčmář <rkrcmar@redhat.com> - 2017-04-24 19:10 +0200
csiph-web