Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1336852imu; Mon, 5 Nov 2018 19:00:20 -0800 (PST) X-Google-Smtp-Source: AJdET5f6mxRQOIS62WR4OIiX7T3ZpQNySKC8kjeDAMuDQxfhuk1C4GtZV8s/7YIPaw+REE/RD63Z X-Received: by 2002:a17:902:2cc1:: with SMTP id n59-v6mr23851494plb.144.1541473220566; Mon, 05 Nov 2018 19:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541473220; cv=none; d=google.com; s=arc-20160816; b=DrmsT7t3+veFz1qaN8yiR99UwqwM04ff9IttILlhPKNozWMIEdkd47+iSXjTLOQ4u5 dvb7FCBZauomwdMt1kDF3SsL7Cg/4Q1w8WPp36Qd62EVVaHaprhWWiJ3bcf7eFUk50PW 5doV4S35mWqoB2pplqyu1uVINfv255lH3aFhR4ieUgZFAduccihGUhpk+QRcd80lYZDl RcN41YUOTEPwN4OVw3aXnZ76iJ5cnvydkeybdNxmxYZrUaMjwZLcN1ib/iMFBRYew2Lc tL3Hdbwt57daLKmax0Y+sWh2ERnUwK0FxsRbB6vwYbvwv0QQCaqAa15/akJXaFq5nq4O RqnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5E2XFtedg+a6UNNp9ie/vKGQF5bDeRCtCVHQwwFhM0g=; b=Vxz13szdYtpumXO6r0ay6eHrrPD82FyUV8ilDrI8ghTjS9egJ50SbZTq3yfntujk6O Anf//5gzPGxVgqfjPiLEYkFyoaI1qVGsR42OWcB+XjfpfTi5BRjVRo3N3KpHS6h10LLw ATWyiChQrSr2CzQo6p/ZfA1LxMQ/KQmfQz7qGhrGNq1aI5g46GOyvfYviGrU+xleiCbV yLgdXSk8X1snQxq89PIT8F3qZsiP1WAaOKbdK2D63t26OSu0F5AogrD7wCCZTGfZiXau t80xjY4ROliChTjrhdveR+YUPn+f62cTHL07znJAaPCIspWxsWCNHM4fn3nZcNitdMld 1/kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XJCVi8PK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6-v6si4082866plo.164.2018.11.05.19.00.04; Mon, 05 Nov 2018 19:00:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XJCVi8PK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729608AbeKFMWk (ORCPT + 99 others); Tue, 6 Nov 2018 07:22:40 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:38607 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbeKFMWk (ORCPT ); Tue, 6 Nov 2018 07:22:40 -0500 Received: by mail-qk1-f196.google.com with SMTP id d19so17633587qkg.5; Mon, 05 Nov 2018 18:59:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5E2XFtedg+a6UNNp9ie/vKGQF5bDeRCtCVHQwwFhM0g=; b=XJCVi8PKuDf88tPZ5wVmHHpqSrEr2v9lzn9IqWV7sluoMi0TywShoGujMhOiua6ltS BRW42YqkvkLbc5ArLNtk14rcKxUCQpjzu90QYuSgji8YCG6PX76POFkaj9s2V4AVa0GN Qht3p5c3t4MQyOfeAKGRLXj/OijVas1AXP62r8jbBcf496M/DQndTd1pQmfnMEJwch8y OPnGzmB+mXSGwOetjbzl8cZcVNnq9tWBx2zDTjDXxlpoC0UnQmL75gzvYOw/a9fcRUOF EQLafNBbwOuGZfjXgsJkQHsg+wTDiOGNRYSlC/fgryt8P75Cb8TRSHg6th8CGQ+M+EQw xxqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5E2XFtedg+a6UNNp9ie/vKGQF5bDeRCtCVHQwwFhM0g=; b=OAgVFpTCp8sHWT4uMWQ54KGBa4WFOdB8QSUtPs+XRdHRs/7fBBoVZaN0B68D+tqTGg ic6PZO7mB41A/12VUKYTNG1b0rPpnWBa2q+1iHIUsg8WgBSaa74CBy/nrVJg9m1w5Bvt XyJjZBKsHE2zN+qOrSRSSWwk89wxt4uHZ9XTvN/I/9phHwSBLILOg0hqrkmwYYMA/FIf w7JnEdakjvAcy9VlyHM+anKAWq7i4rP9YBITtYTO/kzwT469d+/96S/QU3CARmchwpH5 Wi9ONLuSSFmUZFJiKueA/mLG5enPOz2/vIvYwDeUjMkZAsMNZyiLuaRJDIL6X9O2U5dV D6Ng== X-Gm-Message-State: AGRZ1gLcDombRYufHLQVJ60TsFyTuhC3kRAF6n0AoU6c94PnVBCRWx1A LKrnq7RJlr4Ff/6+lNXgXMzkKUS5/kBcRJefdQE= X-Received: by 2002:ae9:f50d:: with SMTP id o13mr3209926qkg.137.1541473182997; Mon, 05 Nov 2018 18:59:42 -0800 (PST) MIME-Version: 1.0 References: <20181102160710.3741-1-v.mayatskih@gmail.com> <20181102160710.3741-2-v.mayatskih@gmail.com> <617e0c54-7d11-09b6-21e5-968260107872@redhat.com> In-Reply-To: <617e0c54-7d11-09b6-21e5-968260107872@redhat.com> From: Vitaly Mayatskih Date: Mon, 5 Nov 2018 21:59:31 -0500 Message-ID: Subject: Re: [PATCH 1/1] vhost: add per-vq worker thread To: Jason Wang Cc: "Michael S . Tsirkin" , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 5, 2018 at 9:49 PM Jason Wang wrote: > If you allow device to specify the worker itself, you can do any kinds > of mapping bettween work and worker kthread I think. The advantage of > doing this is that you can keep the vhost-net untouched. This makes > things a little bit easier and proving two kthreads is better than one > for -net workload is probably not as easy as it looks. We may get boost > in some cases but degradation for the rest. Sounds good. 1 worker is created by vhost as today, all the others are entering from userspace via ioctl. -- wbr, Vitaly