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=-14.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PULL_REQUEST, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 C357FC2BB1D for ; Mon, 6 Apr 2020 21:11:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95062206B8 for ; Mon, 6 Apr 2020 21:11:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VW4lNOXy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726407AbgDFVLe (ORCPT ); Mon, 6 Apr 2020 17:11:34 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:43941 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725933AbgDFVLe (ORCPT ); Mon, 6 Apr 2020 17:11:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586207493; 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; bh=xw2IXbDc6erg5HETD8kiXgNsbIOvz2N8DW0E+Bc8mD0=; b=VW4lNOXyG/ighOtPSnlZRReDBuLaaflD9bHkhz+zxJ8KHgmJlaaA8KuKTsscE57eX5lMHC 8nepM1AaEqAKc1SSq6yl9gxBPNfrraFWHpOZjWmxh9/IhIoKW6U34kljzGmXmS9fnaz74N v0PntISYUZVdWMdIXBx4gz0I/fu0leg= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-481-fpX9mtgAO5GWIiyDA0TiDQ-1; Mon, 06 Apr 2020 17:11:29 -0400 X-MC-Unique: fpX9mtgAO5GWIiyDA0TiDQ-1 Received: by mail-wm1-f72.google.com with SMTP id o26so390454wmh.1 for ; Mon, 06 Apr 2020 14:11:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=xw2IXbDc6erg5HETD8kiXgNsbIOvz2N8DW0E+Bc8mD0=; b=inAmaW+n7/Ddj6i7ra9tlOqnWAQ7KZDU7lHQN8dbLX4/TB2KLs39FsYgAZ0WnTobLI ZxHuw7E1LORLJqEA898t+O8W7APcPyzvfV9xa4ouMrsU5XWt0ow4YXsIXpatQSU7VdE/ v/CmgpP+JR5JVcxw57/OfNkcRRKwGBPwO61jDJ+2wp2Jpo/8BpveLTZR1IrtqXPsZvCp k9b8xH52upMQbZHMEX8Bir1e396Gv6Jv9vKG7IgXdKD1dnZWGGPYnp7hJOS/atUohxY3 TalX+i/j+E48+mc2rvDzrN/YIzgcRSDeRM2PHWKIehG9ApelAJFIhgg7+vgRbF0bOw0D /VTg== X-Gm-Message-State: AGi0PuZgT3zgPqU/JryPBmhRqDsId65kvCW/+wLTUszlbHtsWFitrUs5 JmZzCuY2cHsQS4vx7B4dtmbPL60SriAhJecal/ZmsGAQOcIWAtl9WNsqrrj/8DRAhLhfPNVIZaJ dAKJnObm4dYt0NTLt X-Received: by 2002:a05:600c:2a52:: with SMTP id x18mr932499wme.37.1586207488356; Mon, 06 Apr 2020 14:11:28 -0700 (PDT) X-Google-Smtp-Source: APiQypIuopl4ajbdC3ug75t4KceTRePheaHXToSHTTSi41utVfsJr0uYqtKb8e7/TbxvYzk23Hg23w== X-Received: by 2002:a05:600c:2a52:: with SMTP id x18mr932473wme.37.1586207488125; Mon, 06 Apr 2020 14:11:28 -0700 (PDT) Received: from redhat.com (bzq-79-176-51-222.red.bezeqint.net. [79.176.51.222]) by smtp.gmail.com with ESMTPSA id d7sm27508603wrr.77.2020.04.06.14.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2020 14:11:27 -0700 (PDT) Date: Mon, 6 Apr 2020 17:11:24 -0400 From: "Michael S. Tsirkin" To: Linus Torvalds Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexander.h.duyck@linux.intel.com, david@redhat.com, eperezma@redhat.com, jasowang@redhat.com, lingshan.zhu@intel.com, mhocko@kernel.org, mst@redhat.com, namit@vmware.com, rdunlap@infradead.org, rientjes@google.com, tiwei.bie@intel.com, tysand@google.com, wei.w.wang@intel.com, xiao.w.wang@intel.com, yuri.benditovich@daynix.com Subject: [GIT PULL] vhost: fixes, vdpa Message-ID: <20200406171124-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mutt-Fcc: =sent Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Now that many more architectures build vhost, a couple of these (um, and arm with deprecated oabi) have reported build failures with randconfig, however fixes for that need a bit more discussion/testing and will be merged separately. Not a regression - these previously simply didn't have vhost at all. Also, there's some DMA API code in the vdpa simulator is hacky - if no solution surfaces soon we can always disable it before release: it's not a big deal either way as it's just test code. The following changes since commit 16fbf79b0f83bc752cee8589279f1ebfe57b3b6e: Linux 5.6-rc7 (2020-03-22 18:31:56 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to c9b9f5f8c0f3cdb893cb86c168cdaa3aa5ed7278: vdpa: move to drivers/vdpa (2020-04-02 10:41:40 -0400) ---------------------------------------------------------------- virtio: fixes, vdpa Some bug fixes. Balloon reverted to use the OOM handler again. The new vdpa subsystem with two first drivers. Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- David Hildenbrand (1): virtio-balloon: Switch back to OOM handler for VIRTIO_BALLOON_F_DEFLATE_ON_OOM Jason Wang (7): vhost: refine vhost and vringh kconfig vhost: allow per device message handler vhost: factor out IOTLB vringh: IOTLB support vDPA: introduce vDPA bus virtio: introduce a vDPA based transport vdpasim: vDPA device simulator Michael S. Tsirkin (2): tools/virtio: option to build an out of tree module vdpa: move to drivers/vdpa Tiwei Bie (1): vhost: introduce vDPA-based backend Yuri Benditovich (3): virtio-net: Introduce extended RSC feature virtio-net: Introduce RSS receive steering feature virtio-net: Introduce hash report feature Zhu Lingshan (1): virtio: Intel IFC VF driver for VDPA MAINTAINERS | 3 + arch/arm/kvm/Kconfig | 2 - arch/arm64/kvm/Kconfig | 2 - arch/mips/kvm/Kconfig | 2 - arch/powerpc/kvm/Kconfig | 2 - arch/s390/kvm/Kconfig | 4 - arch/x86/kvm/Kconfig | 4 - drivers/Kconfig | 4 + drivers/Makefile | 1 + drivers/misc/mic/Kconfig | 4 - drivers/net/caif/Kconfig | 4 - drivers/vdpa/Kconfig | 37 ++ drivers/vdpa/Makefile | 4 + drivers/vdpa/ifcvf/Makefile | 3 + drivers/vdpa/ifcvf/ifcvf_base.c | 389 +++++++++++++++++ drivers/vdpa/ifcvf/ifcvf_base.h | 118 ++++++ drivers/vdpa/ifcvf/ifcvf_main.c | 435 +++++++++++++++++++ drivers/vdpa/vdpa.c | 180 ++++++++ drivers/vdpa/vdpa_sim/Makefile | 2 + drivers/vdpa/vdpa_sim/vdpa_sim.c | 629 ++++++++++++++++++++++++++++ drivers/vhost/Kconfig | 45 +- drivers/vhost/Kconfig.vringh | 6 - drivers/vhost/Makefile | 6 + drivers/vhost/iotlb.c | 177 ++++++++ drivers/vhost/net.c | 5 +- drivers/vhost/scsi.c | 2 +- drivers/vhost/vdpa.c | 883 +++++++++++++++++++++++++++++++++++++++ drivers/vhost/vhost.c | 233 ++++------- drivers/vhost/vhost.h | 45 +- drivers/vhost/vringh.c | 421 ++++++++++++++++++- drivers/vhost/vsock.c | 2 +- drivers/virtio/Kconfig | 13 + drivers/virtio/Makefile | 1 + drivers/virtio/virtio_balloon.c | 107 ++--- drivers/virtio/virtio_vdpa.c | 396 ++++++++++++++++++ include/linux/vdpa.h | 253 +++++++++++ include/linux/vhost_iotlb.h | 47 +++ include/linux/vringh.h | 36 ++ include/uapi/linux/vhost.h | 24 ++ include/uapi/linux/vhost_types.h | 8 + include/uapi/linux/virtio_net.h | 102 ++++- tools/virtio/Makefile | 27 +- 42 files changed, 4354 insertions(+), 314 deletions(-) create mode 100644 drivers/vdpa/Kconfig create mode 100644 drivers/vdpa/Makefile create mode 100644 drivers/vdpa/ifcvf/Makefile create mode 100644 drivers/vdpa/ifcvf/ifcvf_base.c create mode 100644 drivers/vdpa/ifcvf/ifcvf_base.h create mode 100644 drivers/vdpa/ifcvf/ifcvf_main.c create mode 100644 drivers/vdpa/vdpa.c create mode 100644 drivers/vdpa/vdpa_sim/Makefile create mode 100644 drivers/vdpa/vdpa_sim/vdpa_sim.c delete mode 100644 drivers/vhost/Kconfig.vringh create mode 100644 drivers/vhost/iotlb.c create mode 100644 drivers/vhost/vdpa.c create mode 100644 drivers/virtio/virtio_vdpa.c create mode 100644 include/linux/vdpa.h create mode 100644 include/linux/vhost_iotlb.h