From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support Date: Tue, 5 May 2015 13:08:36 +0100 Message-ID: <5548B2C4.5060309@citrix.com> References: <1426775889-29442-1-git-send-email-vijay.kilari@gmail.com> <55411D1F.4090308@citrix.com> <5541FF51.6060907@citrix.com> <55423C44.6070702@citrix.com> <55476E72.2010003@citrix.com> <554777CE.6060705@citrix.com> <55477A0F.50003@citrix.com> <5547A5BB.2030802@citrix.com> <5548ADC5.9080000@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vijay Kilari , Julien Grall Cc: Ian Campbell , Stefano Stabellini , Prasun Kapoor , Vijaya Kumar K , Julien Grall , Tim Deegan , "xen-devel@lists.xen.org" , Stefano Stabellini , manish.jaggi@caviumnetworks.com List-Id: xen-devel@lists.xenproject.org On 05/05/15 13:00, Vijay Kilari wrote: > On Tue, May 5, 2015 at 5:17 PM, Julien Grall wrote: >> On 05/05/15 12:06, Vijay Kilari wrote: >>> One MSI per domain is always consumed because each domain during >>> ITS initialization creates Virtual ITS and sends basic initialization >>> commands (MAPC) >> >> AFAICT, MAPC won't be translated to a physical command. So not interrupt >> completion is necessary. >> >> Couldn't we defer the interrupt completion allocation until a PCI device >> is passthrough or a command requiring physical command is sent? > > yes, but MAPC is generally followed by SYNC command and INVALL command > is also received during guest driver init. You could ignore SYNC, INVALL until a PCI device is passthrough to the guest. > On option that I can think of is that avoid posting to physical > queue/completion > interrupt allocation, untill first MAPD command arrives for that domain. I prefer the solution where we ignore any command until a PCI device is passthrough. It's more logical. Regards, -- Julien Grall