Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3617233ybl; Sun, 8 Dec 2019 19:28:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwwY6m3J8tBjv5pM1pIF8Poz+BmFAxQvMVasnbdWXpkl+vJqIHy6k+acYAtXCl8qYETFCXT X-Received: by 2002:a9d:4543:: with SMTP id p3mr20348618oti.350.1575862082569; Sun, 08 Dec 2019 19:28:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575862082; cv=none; d=google.com; s=arc-20160816; b=HL1jYd8y0g2P080w7sy/SJT9z4QsYxgnW+CwFE0KteqBgAnJOaZR7onoMWRXqYj166 T88VsQ38yURkkRMGlmJZwtMkjHjtHSrXXZUsM1q9HKF1BqDv0QjE3ylHzgFeHuuXAzu5 RVYtUtWRTsjJs8hod791rq3AJTO1v/932CcTZCWPeUR007Cbx99x9deuhjPf/irHs32M uEVUteZXaTLvEjdJmFc/0+gAG8lGSN1e0hHyLfAaRMMMjJoKlznDHGYadHUQGPdBSNYL wwTAOVBHxXQOE9+ltuupXskpFP+8PH3js7BlSwxe/ta0rshMqNSRmrfF8c8O9LC6/Ozv szUg== 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:reply-to:message-id :subject:cc:to:from:date; bh=0zV2It754iPpjVlLzj+v6oXJKWrScdphEZt27aMYEjA=; b=FWPPGpmLcnBIt2EJeLpSxYd618yQWEA9uDEJ2bbNF1umx/N4ndl96MKRshqNjMq5BW 0rePLrjcNXcE+SQgOPuUmM86WWEiwGMMsOxedNXJUjHkbSxj4Hz/kCgk4/w927lj+NPZ pySgTAAYmd7Pg/c9C4joNMpBtMA8OzIk1OCSdNurpA94bzUQXHyTbcrvoIrSRmwUWYTM 91Z89cUIFE92A6EJi06jMeMYybigp6Z/MkY1rJOWva2gfRIAPEiVQqmTvUWZraM5yD7K GI70gUy/a1knSXK0X9skkQcKDNoGS9PtBuFYGRzh5rlb44M28zctIgR9H73/keaZjXlN rsWA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si4513799otn.74.2019.12.08.19.27.51; Sun, 08 Dec 2019 19:28:02 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbfLIDZz (ORCPT + 99 others); Sun, 8 Dec 2019 22:25:55 -0500 Received: from mga05.intel.com ([192.55.52.43]:54662 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfLIDZz (ORCPT ); Sun, 8 Dec 2019 22:25:55 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Dec 2019 19:25:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,294,1571727600"; d="scan'208";a="244303960" Received: from joy-optiplex-7040.sh.intel.com (HELO joy-OptiPlex-7040) ([10.239.13.9]) by fmsmga002.fm.intel.com with ESMTP; 08 Dec 2019 19:25:52 -0800 Date: Sun, 8 Dec 2019 22:17:42 -0500 From: Yan Zhao To: Eric Blake Cc: "alex.williamson@redhat.com" , "Tian, Kevin" , "kvm@vger.kernel.org" , "libvir-list@redhat.com" , "cohuck@redhat.com" , "linux-kernel@vger.kernel.org" , "zhenyuw@linux.intel.com" , "qemu-devel@nongnu.org" , "He, Shaopeng" , "Wang, Zhi A" Subject: Re: [RFC PATCH 1/9] vfio/pci: introduce mediate ops to intercept vfio-pci ops Message-ID: <20191209031742.GJ31791@joy-OptiPlex-7040> Reply-To: Yan Zhao References: <20191205032419.29606-1-yan.y.zhao@intel.com> <20191205032536.29653-1-yan.y.zhao@intel.com> <9461f821-73fd-a66f-e142-c1a55e38e7a0@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9461f821-73fd-a66f-e142-c1a55e38e7a0@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry about that. I'll pay attention to them next time and thank you for pointing them out :) On Sat, Dec 07, 2019 at 07:13:30AM +0800, Eric Blake wrote: > On 12/4/19 9:25 PM, Yan Zhao wrote: > > when vfio-pci is bound to a physical device, almost all the hardware > > resources are passthroughed. > > The intent is obvious, but it sounds awkward to a native speaker. > s/passthroughed/passed through/ > > > Sometimes, vendor driver of this physcial device may want to mediate some > > physical > > > hardware resource access for a short period of time, e.g. dirty page > > tracking during live migration. > > > > Here we introduce mediate ops in vfio-pci for this purpose. > > > > Vendor driver can register a mediate ops to vfio-pci. > > But rather than directly bind to the passthroughed device, the > > passed-through > > -- > Eric Blake, Principal Software Engineer > Red Hat, Inc. +1-919-301-3226 > Virtualization: qemu.org | libvirt.org >