Message ID | 20221111103247.22275-1-yan.y.zhao@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp670080wru; Fri, 11 Nov 2022 02:56:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf69q9FH/Wi1c6YHKHDXoXYLTNAF9ItbJa6UK1mPoI4CknE7eUfJHOBSI9UK3v1Offld/Tuo X-Received: by 2002:a17:902:e395:b0:17f:809b:7f85 with SMTP id g21-20020a170902e39500b0017f809b7f85mr2055117ple.21.1668164218583; Fri, 11 Nov 2022 02:56:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668164218; cv=none; d=google.com; s=arc-20160816; b=V7Mv85gezF5na5tH0QpaJkVXw7eWtDfePybZOCVqmJZGvJx8mTS9mlzpoeARba1iS2 WNGlRs28X37GiL1pdL8OvdIkQOHbiqEL0hFhsW6vTez6ZTtlxU3JHSQDRyM3BR2T9jg4 74/BkGDQm00KMkVBDlR7H5EIGt9OkuKhbEHgpMTL9R5LuHn9YhXBeKuW5I+vobFUL7wi O33jWUX7TiUgvqf0YpEgfcGzVJxq8i494T6okt5Px7Wxd+orvUvPClnV9Rj0Ti2NMneu sZKNN069t9JyITc3Trfdd8Pg8XJDB60kdCs4rR7+96mGR3WSH3tJSM2XE2Wc8IN3HZlk PAOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=TZPCIEsC2V/2tUr5xWyz6X/mmJkYLBr6TOQ3p3mjo1Y=; b=HU105fBSoN9C6DyaTgdGrMzdkyhPRg5vhLkesLnAF/s/5c0z/AzC/Sb9NGVrZlXMDi cUZZXDKZrq8yDxXQoMYUoxdxDIsLULqXmwwoEmEpWl5vqPbTR6JocppTfoAGXYi+dEEu O4F+R5w0DP2+0vgG6JnVo7AWVdZGlquz5M6jWTf3GGY57XkzE7qAf45k56RxaZv4tcMT sTw8s2TnjaOUyA109zt+ryzzltolZtityb+wZzHvfAOqAaWnj402YC+vg8nOJ02lMRVY FjNLc5GFzpxESiKyBIAozuXN0LMtdZ9i7OHbyVHe7Qe3PNSP+HkcISi81XPzQsmeenrf Dtag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ykm04UUT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020aa78dc9000000b00565a581ecc0si1912325pfr.11.2022.11.11.02.56.44; Fri, 11 Nov 2022 02:56:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ykm04UUT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233267AbiKKKzx (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 05:55:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233195AbiKKKzv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 05:55:51 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34957A1B8; Fri, 11 Nov 2022 02:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668164149; x=1699700149; h=from:to:cc:subject:date:message-id; bh=O2g9ozphUY908mOhpsa+b7OyhsmdMF5WwXwnWaF1F/o=; b=Ykm04UUT+XHMJNapWJWasUgXTrlj+tUUWHgI4w8U1VjBpZYf4sxOCiQ0 /S9fDsxZHc7mHSJIVHCypksTk2YcFu9HwzSsT1vMKZsVb3IGh4EPnlrEc RwCz5iQK55WJ74ZzgYIX7iU7kmHcaSAzQ3weN4oc7+/RFLwkCxQXwgNsR cqRZnSvEyf0duzQr/XDz7ht7imjJoNhTfIFKi4JKF5895wCI2RDAiiGKM 9X6jPZfakdGGv6EfDY8HPINxCq2aWD0Y5Z7fCIijs/pxh/Jt27QOIOEpb DOFuBtmq2gl8UtLcSqVMb/CCo89P2ZurnfdkbWsleHx0dxGzFf6JEsoAb A==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="373707862" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="373707862" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2022 02:55:48 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="668779140" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="668779140" Received: from yzhao56-desk.sh.intel.com ([10.238.200.254]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2022 02:55:46 -0800 From: Yan Zhao <yan.y.zhao@intel.com> To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: pbonzini@redhat.com, seanjc@google.com, intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, zhenyuw@linux.intel.com, Yan Zhao <yan.y.zhao@intel.com> Subject: [PATCH v2 0/3] add track_remove_slot and remove track_flush_slot Date: Fri, 11 Nov 2022 18:32:47 +0800 Message-Id: <20221111103247.22275-1-yan.y.zhao@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749193413564775755?= X-GMAIL-MSGID: =?utf-8?q?1749196963644879792?= |
Series |
add track_remove_slot and remove track_flush_slot
|
|
Message
Yan Zhao
Nov. 11, 2022, 10:32 a.m. UTC
This series is based on Sean's series https://lore.kernel.org/all/20221110014821.1548347-1-seanjc@google.com/, which allows KVM internal user of page track not to rely on the page track hook .track_flush_slot. Page track hook track_flush_slot is for notification of slot flush and is called when a slot DELETE/MOVE is on-going. Page track hook track_remove_slot is for notification of slot removal and is called when the slot DELETE/MOVE has been committed. As KVMGT, the only external user of page track, actually only cares about when slot removal indeed happens, this series switches KVMGT to use the new hook .track_remove_slot. And as there are no users to .track_flush_slot any more, this hook is removed. v2: Corrected wrong email address of Sean. sorry. Yan Zhao (3): KVM: x86: add a new page track hook track_remove_slot drm/i915/gvt: switch from track_flush_slot to track_remove_slot KVM: x86: Remove the unused page track hook track_flush_slot arch/x86/include/asm/kvm_page_track.h | 8 ++++---- arch/x86/kvm/mmu/page_track.c | 8 ++++---- arch/x86/kvm/x86.c | 5 +++-- drivers/gpu/drm/i915/gvt/kvmgt.c | 6 +++--- 4 files changed, 14 insertions(+), 13 deletions(-)