[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support



Hi Ian,

On 02/04/2015 12:18, Ian Campbell wrote:
On Thu, 2015-04-02 at 12:06 +0100, Julien Grall wrote:

Can we just enqueue with the hardware and use the guest vcpu polling
loop to trigger us to check for completion?

Enqueue may be long. I was thinking about suggesting to use a tasklet
for processing ITS command.

We don't need to enqueue everything the guest gives us at once, we could
only do a subset and pickup the rest later as things complete at the
physical ITS.

That would require more tracking. Anyway, I think that would work.

I would expect Xen itself to use the second option at the host level,
which would then drive the completion via the vGITS_CREADR or the
guest's virtualised interrupt.

That means the pCPU is free during the ITS processing, which is surely
what we want.

Right, that would be the best solution for Xen.

Although, the would mean diverging from Linux driver (see discussion on patch #6). But I think it's inevitable we can't have the same driver close to Linux.

A guest would be buggy if it doesn't implement one of this solution. And
therefore may not run on real h/w.

I was more concerned about it wedging the hypervisor somehow with a
large number of completed but not released operations.

We don't have to worry about released operations. Once it acknowledge (via the above completion notification) the command can be discard in the ITS driver.

Regards,

--
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.