Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6578088ybi; Wed, 5 Jun 2019 03:12:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNgkaiPBjw7qfoQx1rZG+RakH/F0alS4Kao8sdabGPn+XVSJ3I5kTZhNnTWYLBvBoBn7aJ X-Received: by 2002:a62:648d:: with SMTP id y135mr36353786pfb.98.1559729521138; Wed, 05 Jun 2019 03:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559729521; cv=none; d=google.com; s=arc-20160816; b=PqFNSh77xbhpDC1qMP1JE+aVv+EPCJs1gHld0pksyCw2o9F00XbAw5C+PsTjq2o2Fw eqAVhO713PcdBDHUxTPNqIClMKebtkaoRo9r+WNQWLvw4S2oNEPIicHhVp7OjgiUU2cA 44utV55GUMG9nvPqFWsFEJJ3McFfeV8HwfdGfYY7Mc/BO/UgE7SRWG0NOYArRMtpJNWl PvT4XWQMKJrFs6ZeLH8bjb9IQwHsFEKGQZTlyZd5vGDL7wZ2k0Sfbmd0qlvBWCvfs0C5 s5KZSxwbKCHilFfIa19XVUCkV9riEMVC4jpxopt8DvK8r9jnDHT/711OUH7jyAWdjmco aOLA== 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; bh=TJhyHNjYa7FBvqQ0KnjFdqWw2Mnwpl2oZdlbgcVSW7k=; b=VzHPd+TgtiuRYbFSZqauRqchLUYTQ683/UJbxFhh4aG5NXXQP0jQcO+DqoPxlcBzIq S419t5CvNCoK+vtVSqq7uy5mxeB/XfjjKd2+he++JkLT7ow8iDGOCsuhhg8g2VRsNSLy K+Bc6gOLABEWKWqBWIOiXQbx8y4/VmxurTRydFaiRKARJghJmMTa9uis8xONAfxt2Zat 95Wrz8xafN3hJ2sUaA52pV04UufASiXaWxxhV6GzjtJS5KxdyuDui4D8Yv5iqEzoHVnV YrUcj4z5TvFT1ZP+poYhgoiZnhVdNENWwdXZa1i9/rKCescAFxO4jQ7wOY6IK1BQTohk onqA== 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 a11si24686374plm.331.2019.06.05.03.11.44; Wed, 05 Jun 2019 03:12:01 -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 S1727354AbfFEKJr (ORCPT + 99 others); Wed, 5 Jun 2019 06:09:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48506 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727348AbfFEKJp (ORCPT ); Wed, 5 Jun 2019 06:09:45 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B95A53001463; Wed, 5 Jun 2019 10:09:45 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-117-131.ams2.redhat.com [10.36.117.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E8BE1001DD2; Wed, 5 Jun 2019 10:09:43 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 8B2FC17523; Wed, 5 Jun 2019 12:09:42 +0200 (CEST) Date: Wed, 5 Jun 2019 12:09:42 +0200 From: "kraxel@redhat.com" To: "Zhang, Tina" Cc: Zhenyu Wang , "intel-gvt-dev@lists.freedesktop.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Lv, Zhiyuan" , "Wang, Zhi A" , "Tian, Kevin" , "Yuan, Hang" , "alex.williamson@redhat.com" Subject: Re: [RFC PATCH v2 1/3] vfio: Use capability chains to handle device specific irq Message-ID: <20190605100942.bceke6yqjynuwk3z@sirius.home.kraxel.org> References: <20190604095534.10337-1-tina.zhang@intel.com> <20190604095534.10337-2-tina.zhang@intel.com> <20190605040446.GW9684@zhen-hp.sh.intel.com> <237F54289DF84E4997F34151298ABEBC87646B5C@SHSMSX101.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <237F54289DF84E4997F34151298ABEBC87646B5C@SHSMSX101.ccr.corp.intel.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 05 Jun 2019 10:09:45 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > Really need to split for different planes? I'd like a > > VFIO_IRQ_SUBTYPE_GFX_DISPLAY_EVENT > > so user space can probe change for all. > User space can choose to user different handlers according to the > specific event. For example, user space might not want to handle every > cursor event due to performance consideration. Besides, it can reduce > the probe times, as we don't need to probe twice to make sure if both > cursor plane and primary plane have been updated. I'd suggest to use the value passed via eventfd for that, i.e. instead of sending "1" unconditionally send a mask of changed planes. cheers, Gerd