Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965587AbbENBEk (ORCPT ); Wed, 13 May 2015 21:04:40 -0400 Received: from mga02.intel.com ([134.134.136.20]:11471 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754673AbbENBEi convert rfc822-to-8bit (ORCPT ); Wed, 13 May 2015 21:04:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,424,1427785200"; d="scan'208";a="571059172" From: "Wu, Feng" To: Thomas Gleixner , Jiang Liu CC: "mingo@redhat.com" , "hpa@zytor.com" , "linux-kernel@vger.kernel.org" , "Wu, Feng" Subject: RE: [v4 1/3] genirq: Introduce irq_set_vcpu_affinity() to target an interrupt to a VCPU Thread-Topic: [v4 1/3] genirq: Introduce irq_set_vcpu_affinity() to target an interrupt to a VCPU Thread-Index: AQHQjcBLa8xrYeCl2UeCb/wKyDt6R516qDAA Date: Thu, 14 May 2015 01:04:33 +0000 Message-ID: References: <1430377608-10490-1-git-send-email-feng.wu@intel.com> <1430377608-10490-2-git-send-email-feng.wu@intel.com> <555306C9.6040405@linux.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1919 Lines: 50 > -----Original Message----- > From: Thomas Gleixner [mailto:tglx@linutronix.de] > Sent: Thursday, May 14, 2015 5:04 AM > To: Jiang Liu > Cc: Wu, Feng; mingo@redhat.com; hpa@zytor.com; > linux-kernel@vger.kernel.org > Subject: Re: [v4 1/3] genirq: Introduce irq_set_vcpu_affinity() to target an > interrupt to a VCPU > > > On Wed, 13 May 2015, Jiang Liu wrote: > > > On 2015/4/30 15:06, Feng Wu wrote: > > > With Posted-Interrupts support in Intel CPU and IOMMU, an external > > > interrupt from assigned-devices could be directly delivered to a > > > virtual CPU in a virtual machine. Instead of hacking KVM and Intel > > > IOMMU drivers, we propose a platform independent interface to target > > > an interrupt to a specific virtual CPU in a virtual machine, or set > > > virtual CPU affinity for an interrupt. > > > > > > By adopting this new interface and the hierarchy irqdomain, we could > > > easily support posted-interrupts on Intel platforms, and also provide > > > flexible enough interfaces for other platforms to support similar > > > features. > > > > > > Here is the usage scenario for this interface: > > > Guest update MSI/MSI-X interrupt configuration > > > -->QEMU and KVM handle this > > > -->KVM call this interface (passing posted interrupts descriptor > > > and guest vector) > > > -->irq core will transfer the control to IOMMU > > > -->IOMMU will do the real work of updating IRTE (IRTE has new > > > format for VT-d Posted-Interrupts) > > > > Hi Thomas, > > Any comments or suggestions about this abstraction interface? > > It's on my review list... Thanks a lot, Thomas! Thanks, Feng -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/