Received: from eggs.gnu.org ([2001:4830:134:3::10]:41790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJlju-0001vr-UV for qemu-devel@nongnu.org; Fri, 06 Feb 2015 11:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJljp-0003jK-7x for qemu-devel@nongnu.org; Fri, 06 Feb 2015 11:26:42 -0500 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:59487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJljp-0003j9-0W for qemu-devel@nongnu.org; Fri, 06 Feb 2015 11:26:37 -0500 Received: by mail-wg0-f51.google.com with SMTP id k14so14495229wgh.10 for ; Fri, 06 Feb 2015 08:26:36 -0800 (PST) Date: Fri, 6 Feb 2015 16:26:26 +0000 From: Stefan Hajnoczi Message-ID: <20150206162626.GK18729@stefanha-thinkpad.redhat.com> References: <1423209253-22222-1-git-send-email-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvuyDaC2GNSBQusT" Content-Disposition: inline In-Reply-To: <1423209253-22222-1-git-send-email-jasowang@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/5] Support more virtio queues List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: qemu-devel@nongnu.org, mst@redhat.com --GvuyDaC2GNSBQusT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 06, 2015 at 03:54:08PM +0800, Jason Wang wrote: > We current limit the max virtio queues to 64. This is not sufficient > to support some multiqueue deivces (e.g recent Linux support up to 256 > tap queues). So this series try to let virtio to support more queues. >=20 > No much works needs to be done except: >=20 > - Patch 1 renames VIRTIO_PCI_QUEUE_MAX to a more generic name: > VIRTIO_QUEUE_MAX > - Patch 2 simply increase the the limitation to 513 (256 queue pairs) > - Patch 3 fixes a bug in virtio_del_queue() > - Patch 4 tries to remove the hard coded MSI-X bar size (4096) and allow = up to > 2048 MSI-X entries. > - Patch 5 add a boolean property to let the virtio-net can calculate > the MSI-X bar size based on the number of MSI-X vectors and keep > migration compability with legacy version whose bar size is 4096. >=20 > With this patch, we can support up to 256 queues.Since x86 can only > allow about 240 interrupt vectors for MSI-X, current Linux driver can > only have about 80 queue pairs has their private MSI-X interrupt > vectors. With sharing IRQ with queue pairs (RFC posted in > https://lkml.org/lkml/2014/12/25/169), Linux driver can have up > to about 186 queue pairs has their private MSI-X interrupt vectors. Worth mentioning that the change to VIRTIO_QUEUE_MAX is safe from a live migration perspective: Old QEMUs will not accept migration from new QEMUs launched with >64 queues: Invalid number of PCI queues: 0x41 Other than that, live migration works fine. Stefan --GvuyDaC2GNSBQusT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU1OsyAAoJEJykq7OBq3PIlMIIAMKd7HWnamatpR72pl4g5siq ITYBvstdEIaX6poNBt7OAUffGDGBF0lH3AV7b6rLDysBwOji7MGGQraNmZx86Mfo CGoo82FXJtGE/gwkRlGF6L/7eK1RZsjxvQKw4XSH+sYyeiKCN8r/MBhHbc4uvN58 BF7YZbzNAyJfMOnynYqeD5qnvhAM+9YlckQ+st0wBYh60iKYGWHkYf28+TAu6OB8 KiqtJ+xiEE3xGai9Blk5GzNtXMA53y3uMiw62PxD/3mifhykpG8vt7jBxe5qa17i fKqG5LX5qYkq/FGerzGdMOWKqP2I2ULPVhkMX5RXX6o2GzqwnoHNTOSdxOss8mw= =iL5A -----END PGP SIGNATURE----- --GvuyDaC2GNSBQusT--