Received: by 10.213.65.68 with SMTP id h4csp160409imn; Thu, 15 Mar 2018 21:41:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELsU5a9Xc1K0AZWbaYYttaNMeEV3znnvuIrzy6Fdgc9VEH9idGAL7AHlAB3tmIMT/liHg1Uc X-Received: by 10.98.35.68 with SMTP id j65mr385067pfj.5.1521175308409; Thu, 15 Mar 2018 21:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521175308; cv=none; d=google.com; s=arc-20160816; b=t9mjwkht8NdcDM7eoH8Ijsez06SlUUc15IZUSOb7QlCATdIUlwo7JmQsDUvRcEMfyJ fHOlEKARB17cWQCoNTiJf2m66LwF/OxdoyGI1FA9nNsYqjvmG7jSjMsNbijwjUVDsbGd xSmSlwqwdvZdkZ5EUs/jNzQqlgz36PpOPxldoNm30WqSyqeHtESIWElSGLEvIsxztz4X JBwpKB+yjPaVIx5nXJvRj3t4sQs1FTWQNOdMzk/A/EywO5xAtMx0DRvtUbTy9TSv3bap I2+4/HyaCXL7xkI+f3hjXQW4Oat9OJCdtDjKelJZs7BZ7JRFkaxu7rkJ9of2FTlyTedd 93wQ== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=kemWD4DXMFr484jj/yxPsl++cqT8OZ2oZdLwydz/keY=; b=Fin1UWmETdEjyBvxk4SiPSEL4MOm+qcWeZlmbBCqHNzAplDlOq35w80ky/A4938Len rQwLBzbumtqKFAi7RhlrMUmsQTM2tTUMQhOmVch7h5b+GCGyGKM+BCfycrMH5TUg5p3V iedep++NuHurrHoCbIG+5JOfWl26cVFZ+dV7mELUiVu1ZqRWxnK4faBQHY8KR7vTN7PB 2rjKC4Y65Hd/NHWmKVz29DbI26lSer+EKblOdHBIJd2DTx3oh0fayuCkTcoHXDj9Z6/G EOnr9TDjnMVoTrVQ4XExtSK2kMykrX89jaenjtvObMobzeCtt4A1bA2bZPtozjocnd59 NSQQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24-v6si5293173plq.553.2018.03.15.21.41.34; Thu, 15 Mar 2018 21:41:48 -0700 (PDT) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752762AbeCPEk2 (ORCPT + 99 others); Fri, 16 Mar 2018 00:40:28 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37940 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750748AbeCPEk1 (ORCPT ); Fri, 16 Mar 2018 00:40:27 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0467681A8139; Fri, 16 Mar 2018 04:40:27 +0000 (UTC) Received: from xz-mi (ovpn-12-164.pek2.redhat.com [10.72.12.164]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0DD42215CDAF; Fri, 16 Mar 2018 04:40:19 +0000 (UTC) Date: Fri, 16 Mar 2018 12:40:17 +0800 From: Peter Xu To: Alex Williamson Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, eric.auger@redhat.com, aik@ozlabs.ru Subject: Re: [PATCH v2 3/3] vfio/pci: Add ioeventfd support Message-ID: <20180316044017.GC2477@xz-mi> References: <20180315212634.15150.88094.stgit@gimli.home> <20180315213157.15150.86812.stgit@gimli.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180315213157.15150.86812.stgit@gimli.home> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 16 Mar 2018 04:40:27 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Fri, 16 Mar 2018 04:40:27 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'peterx@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 03:31:58PM -0600, Alex Williamson wrote: > The ioeventfd here is actually irqfd handling of an ioeventfd such as > supported in KVM. A user is able to pre-program a device write to > occur when the eventfd triggers. This is yet another instance of > eventfd-irqfd triggering between KVM and vfio. The impetus for this > is high frequency writes to pages which are virtualized in QEMU. > Enabling this near-direct write path for selected registers within > the virtualized page can improve performance and reduce overhead. > Specifically this is initially targeted at NVIDIA graphics cards where > the driver issues a write to an MMIO register within a virtualized > region in order to allow the MSI interrupt to re-trigger. > > Signed-off-by: Alex Williamson Reviewed-by: Peter Xu -- Peter Xu