Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp679321lqb; Wed, 17 Apr 2024 07:56:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZ+tYma+9SWgEIL4Sn3T0Isf7X7jFNFWk0BN5dfQojLbYsgxaJWNpATIQp2xB/m+B9oYEdnKxUUMlxDM+PHjJs9n6vuYNQnpsJ4aHbig== X-Google-Smtp-Source: AGHT+IG+HYyv8Hktv/1n3N88of+cpFvmNH7CJGhzi+soPkjBpGmnDklSm6BTQAA4NhAQlR+SbYHT X-Received: by 2002:a17:90a:ac17:b0:2a2:a10a:77b8 with SMTP id o23-20020a17090aac1700b002a2a10a77b8mr15667713pjq.2.1713365765344; Wed, 17 Apr 2024 07:56:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713365765; cv=pass; d=google.com; s=arc-20160816; b=IDiueUlMEevBlV7VvC8p0/U1SMKT4tyoJ9cVrkbi369Q3bLFvcgpDKDSDoTwTiLXWT q1mHHIt3symqLf68WGUc8e1sZ4SCn8PLSRislZQRtDnqSjQkGMLG2wNaeWdWq3nzux3e YL3vm1LD6nzpylr7QA/VtJkxtytspsbFUnLIGAJtHwgOoHxmh93dRwsmHRNBaJuW+F7f eaN8MLT25Umn6lXqBFrUQUF6NJxbDlSNhzR2ZesaZEjdYAyHCjhDMfm9Mrmdds3v1nh/ knkLHqXUkQm7Q98p0eYHcMELo7GcfUWelf/DRw/0eWlP4qUQjStlF0mv+Rao6fFMM4fr 6s8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=1n2JLWaMFMpENGY3SOmi0Nh+uvRkprxqAwP0s/x8l/A=; fh=I3bDDdTAgeEj5YoWENtKM6j3clteKWahyTs0loeIgI4=; b=fvPS13e7ZBuJLO3KCCfgpKyNpXOPbUFf+u0G0HqgMdm20gUIz2/xxJyESSJ1v8k21k ppzOPTyP01BM2hC8qasxUmi16obfM4remjtmpskgHDTyYUzioVjycAh4Gb9A3KZ8Plxt lJJE47TRUMnGVboofcpmqX49X3+KBa8Ee2Ci/JcMD5xfIgf152KovFPV0250tQV71h67 hVsOlRsxHJp4Ux9qOWR/4V4tjV2rrFfLCmGXAD9Q9H+/P4YtzPlORJOIwtMCU/yEE4CZ EHW3q7ksOMQgJ4KtlgwChxzB6bA2BLIhGxXrjHQZoxjNtebm0Xl9ekSREAtAlSnWFJ2+ Beng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jHhDO2eb; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-crypto+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o17-20020a170902d4d100b001e444a6cd8bsi11593853plg.145.2024.04.17.07.56.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 07:56:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jHhDO2eb; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-crypto+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BABBAB24C39 for ; Wed, 17 Apr 2024 14:43:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A38A91442EA; Wed, 17 Apr 2024 14:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jHhDO2eb" X-Original-To: linux-crypto@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 631BC1420D3; Wed, 17 Apr 2024 14:41:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713364875; cv=none; b=QL0D/g5Np1sGgMGM6c+ia+s0Bieefn9ivrMKpbYW24f8pcKsei/h+JwG6Q/bGVCXVX3SkCYB/WrK2Aw8E+zp4xoetG6dd7R98WvbRzXs7lSJkUYo7tcwQI5hbkakzohMNTlOIWaYl4z7TXH0yJ7v30hMekG/kphzEaFJdFhB9vY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713364875; c=relaxed/simple; bh=MkgtIhHVieQ7WcBMlGREAvGkJY99UfJXwbpRb44RjMg=; h=From:To:Cc:Subject:Date:Message-Id; b=BJa3NUd4c0ospwufbCsYLnjKs6zDmVV022mnDFudzuBSnkkqj4ccgbLVMho0wcqTQF5XkWzlDQUWhduknhVHzVpYB5bLjwFaq4HNWPuTNkgUpqE5h56fVblb3RfJ7vxGXwEiyxdgh7e55u7htuWlsQMCzWKibvpfxsZ3xCKEGQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=jHhDO2eb; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713364873; x=1744900873; h=from:to:cc:subject:date:message-id; bh=MkgtIhHVieQ7WcBMlGREAvGkJY99UfJXwbpRb44RjMg=; b=jHhDO2ebWjfaPp9AoTvjEzQQ2irS/9QQnszFgocExNw67kxif9CJUSDA MUlrAdGMN+Scasr6p6VBsb5Its9Pq+Pr4j9b3b9NetjCqZYyHO48z49IY QFiuXSXbkEPAUJsUjVybsowXp877QxiZ/FR8uOh7k74A5Tvy6zt6FIbxH +7Hn3Uqk14/ULVdRK1gusryvABED7IhwJU5fSCjQA2qyrzD3M+N5qxiyD GHsAOVm1KWtPgoMelhWsPdEHRi1hyEfGX7yVCLxmvHJGDvWKTu/e8edmx wM3sxsCEYxvBU6FWhxr8Yf0VjfkxrCz+7P+DCNbfhDp0wrlGRs88QzOGz A==; X-CSE-ConnectionGUID: 6bUpG95ASxykiHV/KzMVHw== X-CSE-MsgGUID: RyqlVIfqQ0SvPaVXUv4Qmw== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="8720125" X-IronPort-AV: E=Sophos;i="6.07,209,1708416000"; d="scan'208";a="8720125" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 07:41:13 -0700 X-CSE-ConnectionGUID: 00l+2GDMQWKZ3Vz8pvv4/w== X-CSE-MsgGUID: C3h4XHyXTdWHG6ETW08QfA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,209,1708416000"; d="scan'208";a="22651788" Received: from qat-server-archercity1.sh.intel.com ([10.67.111.115]) by orviesa009.jf.intel.com with ESMTP; 17 Apr 2024 07:41:10 -0700 From: Xin Zeng To: herbert@gondor.apana.org.au, alex.williamson@redhat.com, jgg@nvidia.com, yishaih@nvidia.com, shameerali.kolothum.thodi@huawei.com, kevin.tian@intel.com Cc: linux-crypto@vger.kernel.org, kvm@vger.kernel.org, qat-linux@intel.com, Xin Zeng Subject: [PATCH v6 0/1] vfio/qat: Add vfio_pci driver for Intel QAT SR-IOV VF device Date: Wed, 17 Apr 2024 22:31:40 +0800 Message-Id: <20240417143141.1909824-1-xin.zeng@intel.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: This patch is the last one of set "crypto: qat - enable QAT GEN4 SR-IOV VF live migration" [1]. The first 1~9 patches of this set introduce the helpers in QAT PF driver to support the live migration of Intel QAT SR-IOV VF device and have been merged into Herbert's tree [2]. This one adds a vfio pci extension specific for QAT which intercepts the vfio device operations for a QAT VF to allow live migration. Changes in v6 since v5 [1]: - Introduce more QAT device specific information around migration in the commit message and comments in driver (Alex) [1]: https://lore.kernel.org/kvm/20240306135855.4123535-1-xin.zeng@intel.com/ [2]: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=f0bbfc391aa7eaa796f09ee40dd1cd78c6c81960 Xin Zeng (1): vfio/qat: Add vfio_pci driver for Intel QAT SR-IOV VF devices MAINTAINERS | 8 + drivers/vfio/pci/Kconfig | 2 + drivers/vfio/pci/Makefile | 2 + drivers/vfio/pci/qat/Kconfig | 12 + drivers/vfio/pci/qat/Makefile | 3 + drivers/vfio/pci/qat/main.c | 679 ++++++++++++++++++++++++++++++++++ 6 files changed, 706 insertions(+) create mode 100644 drivers/vfio/pci/qat/Kconfig create mode 100644 drivers/vfio/pci/qat/Makefile create mode 100644 drivers/vfio/pci/qat/main.c base-commit: f0bbfc391aa7eaa796f09ee40dd1cd78c6c81960 -- 2.18.2