Re: [PATCH v4 09/10] swiotlb-xen: support autotranslate guests

2013-08-30 Thread Konrad Rzeszutek Wilk
> > Did you run any performance tests to see if adding the extra > > spinlock (as the native SWIOTLB already has its own lock) and handling > > of the tree is affecting it? .. bla bla.. > I haven't done any measurements but consider that the spin_lock is > already only used to access the red-blac

Re: [PATCH v4 09/10] swiotlb-xen: support autotranslate guests

2013-08-29 Thread Stefano Stabellini
On Thu, 15 Aug 2013, Konrad Rzeszutek Wilk wrote: > On Thu, Aug 15, 2013 at 12:10:53PM +0100, Stefano Stabellini wrote: > > Support autotranslate guests in swiotlb-xen by keeping track of the > > phys-to-bus and bus-to-phys mappings of the swiotlb buffer > > (xen_io_tlb_start-xen_io_tlb_end). > >

Re: [PATCH v4 09/10] swiotlb-xen: support autotranslate guests

2013-08-15 Thread Konrad Rzeszutek Wilk
On Thu, Aug 15, 2013 at 12:10:53PM +0100, Stefano Stabellini wrote: > Support autotranslate guests in swiotlb-xen by keeping track of the > phys-to-bus and bus-to-phys mappings of the swiotlb buffer > (xen_io_tlb_start-xen_io_tlb_end). > > Use a simple direct access on a pre-allocated array for ph