[PATCH 12/13] kvm/powerpc: Accelerate H_PUT_TCE by implementing it in real mode

2011-05-11 Thread Paul Mackerras
From: David Gibson This improves I/O performance for guests using the PAPR paravirtualization interface by making the H_PUT_TCE hcall faster, by implementing it in real mode. H_PUT_TCE is used for updating virtual IOMMU tables, and is used both for virtual I/O and for real I/O in the PAPR interf

Re: [PATCH 12/13] kvm/powerpc: Accelerate H_PUT_TCE by implementing it in real mode

2011-05-17 Thread Alexander Graf
On 11.05.2011, at 12:46, Paul Mackerras wrote: > From: David Gibson > > This improves I/O performance for guests using the PAPR paravirtualization > interface by making the H_PUT_TCE hcall faster, by implementing it in > real mode. H_PUT_TCE is used for updating virtual IOMMU tables, and is >

Re: [PATCH 12/13] kvm/powerpc: Accelerate H_PUT_TCE by implementing it in real mode

2011-05-17 Thread Benjamin Herrenschmidt
On Tue, 2011-05-17 at 10:01 +0200, Alexander Graf wrote: > I'm not sure I fully understand how this is supposed to work. If the > tables are kept inside the kernel, how does userspace get to know > where to DMA to? The guest gets a dma range from the device-tree which is the range of device-side d

Re: [PATCH 12/13] kvm/powerpc: Accelerate H_PUT_TCE by implementing it in real mode

2011-05-17 Thread Alexander Graf
On 17.05.2011, at 11:11, Benjamin Herrenschmidt wrote: > On Tue, 2011-05-17 at 10:01 +0200, Alexander Graf wrote: >> I'm not sure I fully understand how this is supposed to work. If the >> tables are kept inside the kernel, how does userspace get to know >> where to DMA to? > > The guest gets a

Re: [PATCH 12/13] kvm/powerpc: Accelerate H_PUT_TCE by implementing it in real mode

2011-05-17 Thread Benjamin Herrenschmidt
On Tue, 2011-05-17 at 11:31 +0200, Alexander Graf wrote: > On 17.05.2011, at 11:11, Benjamin Herrenschmidt wrote: > > > On Tue, 2011-05-17 at 10:01 +0200, Alexander Graf wrote: > >> I'm not sure I fully understand how this is supposed to work. If the > >> tables are kept inside the kernel, how doe

Re: [PATCH 12/13] kvm/powerpc: Accelerate H_PUT_TCE by implementing it in real mode

2011-05-17 Thread Alexander Graf
On 17.05.2011, at 11:35, Benjamin Herrenschmidt wrote: > On Tue, 2011-05-17 at 11:31 +0200, Alexander Graf wrote: >> On 17.05.2011, at 11:11, Benjamin Herrenschmidt wrote: >> >>> On Tue, 2011-05-17 at 10:01 +0200, Alexander Graf wrote: I'm not sure I fully understand how this is supposed to