Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2679214yba; Mon, 6 May 2019 09:51:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKlTbTsI8Y8/bSWFLydyQQh0UId0ovuxCUDNtasbHJHnjl+Th4BCZ+kFEWcmhVzlXTW4p8 X-Received: by 2002:a65:5241:: with SMTP id q1mr12298968pgp.298.1557161493200; Mon, 06 May 2019 09:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557161493; cv=none; d=google.com; s=arc-20160816; b=ZNxZYzM3ucwjr/g8xvtq0ajbiyFn7L+alzJuN6cTGjG6rwB7AGD9oC8Uxic12W3fXn SV8cvvDbD87TP3FO3xOO4bnvYuh6q6RzP9rCLBHrACY7eQKIBJhwHfBCq3Ca8hDKm7pV fGusdrfRQ5+nApGRRu7IWUe+tHMt27xWrw+jArtyZ3ZXXQpsHwVnxrlmtImnnd0y/Rr9 dQIu3dkYzFEhKQy9G/zU031RsxvPwTs3tv6vsetCyo9kjD8MpbyEddx5Ca8uyrJHH9pr bxC5dmHCYpUbhIOx0GlzeIB+oZjn3rBM4wTxCbyl966zq4YVD682PYCZ+eOLq0JejP72 59Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=A2dBn4UzL7SDd2LFkKopD1eV96XD5BHH/L9c550P5tc=; b=Z3bsU6yKmSfkxn284EuwFKq+rqG/xc3CJRwAUi0HcXRV3XgUiw89c02IyGNOTqYcrD J237V0tOJdL8LxsRXx2WFpCVCzQ40rVzAcL4SOlD6cbMJQxdgINLzSwWjnK2S3dYPODH ALGoWxAaZ4rhu3oKC+4rRqnUHerBZlQKip0BkiVF4RIv+eLS6YlZECFqfKv7tsQgXxLg dxtuhNzHbej4WqfUCbaJuCJ2BsvE66lITn9qmGtHDQ3Fez5vUNWPmABZauiz6exFVtfA uKNz7AdgFh6BJifaBo4HmXxh/HUUttzgFUd48kzoEYEZkaZxI4L2SpWtHq3nUxp5rLbv ptiQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si16340895ply.104.2019.05.06.09.51.15; Mon, 06 May 2019 09:51:33 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726525AbfEFQtE (ORCPT + 99 others); Mon, 6 May 2019 12:49:04 -0400 Received: from mga14.intel.com ([192.55.52.115]:25683 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbfEFQtD (ORCPT ); Mon, 6 May 2019 12:49:03 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 May 2019 09:49:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,438,1549958400"; d="scan'208";a="230002448" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga001.jf.intel.com with ESMTP; 06 May 2019 09:49:01 -0700 Date: Mon, 6 May 2019 10:43:25 -0600 From: Keith Busch To: Christoph Hellwig Cc: Maxim Levitsky , Fam Zheng , "Busch, Keith" , Sagi Grimberg , "kvm@vger.kernel.org" , Wolfram Sang , Greg Kroah-Hartman , "Liang, Cunming" , Nicolas Ferre , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "David S . Miller" , Jens Axboe , Alex Williamson , Kirti Wankhede , Mauro Carvalho Chehab , Paolo Bonzini , "Liu, Changpeng" , "Paul E . McKenney" , Amnon Ilan , John Ferlan Subject: Re: [PATCH v2 00/10] RFC: NVME MDEV Message-ID: <20190506164325.GB2219@localhost.localdomain> References: <20190502114801.23116-1-mlevitsk@redhat.com> <20190503121838.GA21041@lst.de> <20190506125752.GA5288@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190506125752.GA5288@lst.de> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 06, 2019 at 05:57:52AM -0700, Christoph Hellwig wrote: > > However, similar to the (1), when the driver will support the devices with > > hardware based passthrough, it will have to dedicate a bunch of queues to the > > guest, configure them with the appropriate PASID, and then let the guest useA > > these queues directly. > > We will not let you abuse the nvme queues for anything else. We had > that discussion with the mellanox offload and it not only unsafe but > also adds way to much crap to the core nvme code for corner cases. > > Or to put it into another way: unless your paravirt interface requires > zero specific changes to the core nvme code it is not acceptable at all. I agree we shouldn't specialize generic queues for this, but I think it is worth revisiting driver support for assignable hardware resources iff the specification defines it. Until then, you can always steer processes to different queues by assigning them to different CPUs.