From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v7 0/2] fix ENOSPC issue of iobus dev Date: Fri, 9 Mar 2012 18:07:01 -0300 Message-ID: <20120309210701.GA23182@amt.cnet> References: <20120301070136.28053.71067.stgit@dhcp-8-167.nay.redhat.com> <20120309041003.3901.63690.stgit@dhcp-8-167.nay.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: jasowang@redhat.com, alex.williamson@redhat.com, kvm@vger.kernel.org, levinsasha928@gmail.com To: Amos Kong Return-path: Received: from mx1.redhat.com ([209.132.183.28]:23957 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753148Ab2CIVJv (ORCPT ); Fri, 9 Mar 2012 16:09:51 -0500 Content-Disposition: inline In-Reply-To: <20120309041003.3901.63690.stgit@dhcp-8-167.nay.redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Mar 09, 2012 at 12:17:22PM +0800, Amos Kong wrote: > Boot up qemu-kvm guest with 232 multiple functions disks, qemu > will report a ENOSPC error, it's not good to statically increase > iobus array. This patchset makes kvm_io_range array can be > resized dynamically, and change dev limit to 1000. > > Changes from v1: > - fix typo: kvm_io_bus_range -> kvm_io_range > > Changes from v2: > - unregister device only when it exists > > Changes from v3: > - set upper bounds to limit userspace > > Changes from v4: > - check if allocate successfully before memcpy() > - separate the change to 1000 devs to a new patch > > Changes from v5: > - memcpy() two times, drop sort > > Changes from V6: > - copy bus->dev_count memory to new_bus > > --- > > Amos Kong (2): > KVM: resize kvm_io_range array dynamically > KVM: set upper bounds for iobus dev to limit userspace Applied, thanks.