From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF74BC433DF for ; Tue, 18 Aug 2020 17:06:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D303207DA for ; Tue, 18 Aug 2020 17:06:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="N7CkjNRt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728476AbgHRRGH (ORCPT ); Tue, 18 Aug 2020 13:06:07 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34947 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728375AbgHRRFY (ORCPT ); Tue, 18 Aug 2020 13:05:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597770321; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4KjP4tLJ3k//LfnATZoQR9lS9r+FC1/WEhYpN5z380g=; b=N7CkjNRtevWJeyx4S0Ri2o0DfYAKBbyDsZPbVJCtqLTwr2nv/Kdbod1mQb8qAUFiIkkYbA TNBkaNNW1Q0D6UPNFv4h0wzaaBhro2+IwpbCE+Lj+gvWpuDNfb9rJJPv1i36NLqspb3jqH PZs25MzOijeF2Qy5Zm0UAJFUx5jsRoU= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-391-XrxOPQkPObKxhBhceqnXgw-1; Tue, 18 Aug 2020 13:05:19 -0400 X-MC-Unique: XrxOPQkPObKxhBhceqnXgw-1 Received: by mail-wr1-f71.google.com with SMTP id 89so8449446wrr.15 for ; Tue, 18 Aug 2020 10:05:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4KjP4tLJ3k//LfnATZoQR9lS9r+FC1/WEhYpN5z380g=; b=b7mxt/Wzs0BpDYTdfV77Dd5am7SEjLmJTwc1PKbvrkM1hJMmfiq81DKwdVKzwUNsjG Ktm4SPw5LjZBBgGuHQZ48xCu2e84NUiMlDWZmiUOkfq9iwiE6ePgddBqYMKObN/l0uN2 OBhcDelJrkCCkyYGISc64ktKTC+uzvlux34WqKRRJmppjAMsUn0SscWtngUpfSXPUyWX QfXXb/zNWdiQ2Fb7MUbuMO/OSiHtlidw2bcICkR7gLb/n/kfTbVVSNYjvhZbgPfxzHjT ASg/thRE/qaOuyEAZkddqn5eosgMpDFVB4+ieT+R5TV1uQPuGnUf67+qwLqP5cZRJFJa mWKA== X-Gm-Message-State: AOAM531fHohMNbmhvJosp8gaErgjqTwIrWnksfQGZ0sCNeczMTd3nOda QLb2U89xavI+gDNkBPEJ4pLw0gdPpTTAJ047Wbu9XT6D8tooD0nFF4qnYbI835pnFaa3y/ttU4g d/fVgIT4BZaUo7+jFhOYX X-Received: by 2002:a1c:9952:: with SMTP id b79mr857679wme.68.1597770318666; Tue, 18 Aug 2020 10:05:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJU6TWMw/VYVpnpZqdnTB8Di51Urdb66TwCceH6QwuuehUW2mW7IXuxEigHeEneYQy0GJBaw== X-Received: by 2002:a1c:9952:: with SMTP id b79mr857644wme.68.1597770318432; Tue, 18 Aug 2020 10:05:18 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:38e0:ccf8:ca85:3d9b? ([2001:b07:6468:f312:38e0:ccf8:ca85:3d9b]) by smtp.gmail.com with ESMTPSA id t25sm719265wmj.18.2020.08.18.10.05.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Aug 2020 10:05:17 -0700 (PDT) Subject: Re: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver To: Jason Gunthorpe Cc: "Tian, Kevin" , Alex Williamson , "Jiang, Dave" , "vkoul@kernel.org" , "Dey, Megha" , "maz@kernel.org" , "bhelgaas@google.com" , "rafael@kernel.org" , "gregkh@linuxfoundation.org" , "tglx@linutronix.de" , "hpa@zytor.com" , "Pan, Jacob jun" , "Raj, Ashok" , "Liu, Yi L" , "Lu, Baolu" , "Kumar, Sanjay K" , "Luck, Tony" , "Lin, Jing" , "Williams, Dan J" , "kwankhede@nvidia.com" , "eric.auger@redhat.com" , "parav@mellanox.com" , "Hansen, Dave" , "netanelg@mellanox.com" , "shahafs@mellanox.com" , "yan.y.zhao@linux.intel.com" , "Ortiz, Samuel" , "Hossain, Mona" , "dmaengine@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "linux-pci@vger.kernel.org" , "kvm@vger.kernel.org" References: <20200724001930.GS2021248@mellanox.com> <20200805192258.5ee7a05b@x1.home> <20200807121955.GS16789@nvidia.com> <20200814133522.GE1152540@nvidia.com> <20200818004343.GG1152540@nvidia.com> <20200818115003.GM1152540@nvidia.com> <0711a4ce-1e64-a0cb-3e6d-f6653284e2e3@redhat.com> <20200818164903.GA1152540@nvidia.com> From: Paolo Bonzini Message-ID: <07fca197-3587-a45e-640b-bab0858067e2@redhat.com> Date: Tue, 18 Aug 2020 19:05:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200818164903.GA1152540@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On 18/08/20 18:49, Jason Gunthorpe wrote: > On Tue, Aug 18, 2020 at 06:27:21PM +0200, Paolo Bonzini wrote: >> On 18/08/20 13:50, Jason Gunthorpe wrote: >>> For instance, what about suspend/resume of containers using idxd? >>> Wouldn't you want to have the same basic approach of controlling the >>> wq from userspace that virtualization uses? >> >> The difference is that VFIO more or less standardizes the approach you >> use for live migration. With another interface you'd have to come up >> with something for every driver, and add support in CRIU for every >> driver as well. > > VFIO is very unsuitable for use as some general userspace. It only 1:1 > with a single process and just can't absorb what the existing idxd > userspace is doing. The point of mdev is that it's not 1:1 anymore. Paolo > So VFIO is already not a solution for normal userspace idxd where CRIU > becomes interesting. Not sure what you are trying to say? > > My point was the opposite, if you want to enable CRIU for idxd then > you probably need all the same stuff as for qemu/VFIO except in the > normal idxd user API. > > Jason >