al
> size of this struct is 40 bytes.
>
> This fills gaps with __resv1/2 fields.
>
> This should not cause any change in behavior.
>
> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Oops, that was a bit sloppy. Oh well.
Acked-by: David Gibson <da...@gibson.dropb
3s_hv_rmhandlers.S
> index b98889e..f43c124 100644
> --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> @@ -147,7 +147,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
> addir1, r1, 112
> ld r7, HSTATE_HOST_MSR(r13)
>
Se
3s_hv_rmhandlers.S
> index b98889e..f43c124 100644
> --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S
> @@ -147,7 +147,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
> addir1, r1, 112
> ld r7, HSTATE_HOST_MSR(r13)
>
Se
t;
> + kvmppc_account_memlimit(kvmppc_stt_npages(stt->window_size), false);
> call_rcu(>rcu, release_spapr_tce_table);
>
> return 0;
> @@ -114,6 +158,11 @@ long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
> }
>
> npages = kvmppc_stt_n
x%lx, tce=0x%lx\n", */
> /* liobn, ioba, tce); */
> @@ -99,13 +170,11 @@ long kvmppc_h_put_tce(struct kvm_vcpu *vcpu, unsigned
> long liobn,
> if (ret)
> return ret;
>
> - idx = ioba >> IOMMU_PAGE_SHIFT_4K;
> - page =
x%lx, tce=0x%lx\n", */
> /* liobn, ioba, tce); */
> @@ -99,13 +170,11 @@ long kvmppc_h_put_tce(struct kvm_vcpu *vcpu, unsigned
> long liobn,
> if (ret)
> return ret;
>
> - idx = ioba >> IOMMU_PAGE_SHIFT_4K;
> - page =
On Tue, Sep 15, 2015 at 08:49:36PM +1000, Alexey Kardashevskiy wrote:
> SPAPR_TCE_SHIFT is used in few places only and since IOMMU_PAGE_SHIFT_4K
> can be easily used instead, remove SPAPR_TCE_SHIFT.
>
> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Reviewed-by
t;
> + kvmppc_account_memlimit(kvmppc_stt_npages(stt->window_size), false);
> call_rcu(>rcu, release_spapr_tce_table);
>
> return 0;
> @@ -114,6 +158,11 @@ long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
> }
>
> npages = kvmppc_stt_n
On Tue, Sep 15, 2015 at 08:49:36PM +1000, Alexey Kardashevskiy wrote:
> SPAPR_TCE_SHIFT is used in few places only and since IOMMU_PAGE_SHIFT_4K
> can be easily used instead, remove SPAPR_TCE_SHIFT.
>
> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Reviewed-by
a...@ozlabs.ru>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.o
unsigned long ioba);
> extern struct page *kvm_alloc_hpt(unsigned long nr_pages);
> diff --git a/arch/powerpc/kvm/book3s_64_vio.c
> b/arch/powerpc/kvm/book3s_64_vio.c
> index e347856..d3fc732 100644
> --- a/arch/powerpc/kvm/book3s_64_vio.c
> +++ b/arch/powerpc/kvm/
unsigned long ioba);
> extern struct page *kvm_alloc_hpt(unsigned long nr_pages);
> diff --git a/arch/powerpc/kvm/book3s_64_vio.c
> b/arch/powerpc/kvm/book3s_64_vio.c
> index e347856..d3fc732 100644
> --- a/arch/powerpc/kvm/book3s_64_vio.c
> +++ b/arch/powerpc/kvm/
RAMETER;
> -
> - page = stt->pages[idx / TCES_PER_PAGE];
> - tbl = (u64 *)page_address(page);
> + struct page *page = stt->pages[idx / TCES_PER_PAGE];
> + u64 *tbl = (u64 *)page_address(page);
>
> vcpu->arch.gpr[4] = tbl[idx % TCES_PER_PAGE];
> - return H_SUCCESS;
> }
> }
>
> - /* Didn't find the liobn, punt it to userspace */
> - return H_TOO_HARD;
> +
> + return ret;
> }
> EXPORT_SYMBOL_GPL(kvmppc_h_get_tce);
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
MU is off).
>
> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
> ---
> include/linux/rculist.h | 38 ++
> 1 file changed, 38 insertions(+)
>
> diff --git a/include
MU is off).
>
> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
> ---
> include/linux/rculist.h | 38 ++
> 1 file changed, 38 insertions(+)
>
> diff --git a/include
RAMETER;
> -
> - page = stt->pages[idx / TCES_PER_PAGE];
> - tbl = (u64 *)page_address(page);
> + struct page *page = stt->pages[idx / TCES_PER_PAGE];
> + u64 *tbl = (u64 *)page_address(page);
>
> vcpu->arch.gpr[4] = tbl[idx % TCES_PER_PAGE];
> - return H_SUCCESS;
> }
> }
>
> - /* Didn't find the liobn, punt it to userspace */
> - return H_TOO_HARD;
> +
> + return ret;
> }
> EXPORT_SYMBOL_GPL(kvmppc_h_get_tce);
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
u_notrace().
>
> This converts release_spapr_tce_table() to a RCU scheduled handler.
>
> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Looks correct on my limited knowledge of RCU
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
--
David Gibson
name is clear enough for a public function.
Second, I'm not sure if mmu-hash64.h is the right place for it. This
is still a function with very specific and limited usage, I wonder if
we should have somewhere else for such special real mode helpers.
Paulus, thoughts?
--
David Gibson
u_notrace().
>
> This converts release_spapr_tce_table() to a RCU scheduled handler.
>
> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru>
Looks correct on my limited knowledge of RCU
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
--
David Gibson
name is clear enough for a public function.
Second, I'm not sure if mmu-hash64.h is the right place for it. This
is still a function with very specific and limited usage, I wonder if
we should have somewhere else for such special real mode helpers.
Paulus, thoughts?
--
David Gibson
into the position of the DAWRX-WT bit, it has to be shifted by
> two, not only by one. This fixes hardware watchpoints in gdb of
> older guests that only use the H_SET_DABR/X interface instead
> of the new H_SET_MODE interface.
>
> Signed-off-by: Thomas Huth <th...@redhat
into the position of the DAWRX-WT bit, it has to be shifted by
> two, not only by one. This fixes hardware watchpoints in gdb of
> older guests that only use the H_SET_DABR/X interface instead
> of the new H_SET_MODE interface.
>
> Signed-off-by: Thomas Huth <th...@redhat
On Thu, Nov 12, 2015 at 11:22:29PM +0530, Aravinda Prasad wrote:
>
>
> On Thursday 12 November 2015 10:13 AM, David Gibson wrote:
> > On Thu, Nov 12, 2015 at 10:02:10AM +0530, Aravinda Prasad wrote:
> >>
> >>
> >> On Thursday 12 November 2015 09:08 AM
On Thu, Nov 12, 2015 at 11:22:29PM +0530, Aravinda Prasad wrote:
>
>
> On Thursday 12 November 2015 10:13 AM, David Gibson wrote:
> > On Thu, Nov 12, 2015 at 10:02:10AM +0530, Aravinda Prasad wrote:
> >>
> >>
> >> On Thursday 12 November 2015 09:08 AM
On Thu, Nov 12, 2015 at 10:02:10AM +0530, Aravinda Prasad wrote:
>
>
> On Thursday 12 November 2015 09:08 AM, David Gibson wrote:
> > On Thu, Nov 12, 2015 at 01:24:19PM +1100, Daniel Axtens wrote:
> >> Aravinda Prasad <aravi...@linux.vnet.ibm.com> writes:
>
. SRR0/1 are already set */
> + b mc_cont
> +2: ld r10, VCPU_PC(r9)
> ld r11, VCPU_MSR(r9)
> - bne 2f /* Continue guest execution. */
> - /* If not, deliver a machine check. SRR0/1 are already set */
> - li r10, B
. SRR0/1 are already set */
> + b mc_cont
> +2: ld r10, VCPU_PC(r9)
> ld r11, VCPU_MSR(r9)
> - bne 2f /* Continue guest execution. */
> - /* If not, deliver a machine check. SRR0/1 are already set */
> - li r10, B
a problem if you have a new kernel with an old
qemu, in that case qemu might not understand the new exit type and
treat it as a fatal error, even though the guest could actually cope
with it.
Aravinda, do we need to change this so that qemu has to explicitly
enable the new NMI behaviour?
a problem if you have a new kernel with an old
qemu, in that case qemu might not understand the new exit type and
treat it as a fatal error, even though the guest could actually cope
with it.
Aravinda, do we need to change this so that qemu has to explicitly
enable the new NMI behaviour?
On Thu, Nov 12, 2015 at 10:02:10AM +0530, Aravinda Prasad wrote:
>
>
> On Thursday 12 November 2015 09:08 AM, David Gibson wrote:
> > On Thu, Nov 12, 2015 at 01:24:19PM +1100, Daniel Axtens wrote:
> >> Aravinda Prasad <aravi...@linux.vnet.ibm.com> writes:
>
appropriate SLB entry next time and be able to handle
> the fault.
>
> Signed-off-by: Paul Mackerras <pau...@samba.org>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
--
David Gibson| I'll have my music baroque, and my code
appropriate SLB entry next time and be able to handle
> the fault.
>
> Signed-off-by: Paul Mackerras <pau...@samba.org>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
--
David Gibson| I'll have my music baroque, and my code
On Mon, Sep 21, 2015 at 10:37:28AM +0200, Greg Kurz wrote:
> On Mon, 21 Sep 2015 10:26:52 +0200
> Thomas Huth <th...@redhat.com> wrote:
>
> > On 21/09/15 10:01, Greg Kurz wrote:
> > > On Mon, 21 Sep 2015 12:10:00 +1000
> > > David Gibson <da...@gibson.d
ed this because the places
kvm_io_bus_{read,write}() are called on x86 are buried about 5 layers
below where the srcu lock is taken :/.
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
> ---
> arch/powerpc/kvm/book3s.c | 6 ++
> 1 file changed, 6 insertions(+)
>
&
ed this because the places
kvm_io_bus_{read,write}() are called on x86 are buried about 5 layers
below where the srcu lock is taken :/.
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
> ---
> arch/powerpc/kvm/book3s.c | 6 ++
> 1 file changed, 6 insertions(+)
>
&
On Sat, Sep 19, 2015 at 04:22:47PM +1000, David Gibson wrote:
> On Fri, Sep 18, 2015 at 09:47:32AM -0600, Alex Williamson wrote:
> > On Fri, 2015-09-18 at 16:24 +1000, Gavin Shan wrote:
> > > This allows to accept IOMMU group (PE) ID from the parameter from userland
>
ne/VirtIORNG for
> other example of specifying RngBackends.
>
> Signed-off-by: Thomas Huth <th...@redhat.com>
Thanks, applied to spapr-next.
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NO
if hwrng is present and not already created.
I have mixed feelings about this. On the one hand, I agree that it
would be nice to allow H_RANDOM support by default. On the other hand
the patch below leaves no way to turn it off for testing purposes. It
also adds another place where the guest hardware
On Sat, Sep 19, 2015 at 04:22:47PM +1000, David Gibson wrote:
> On Fri, Sep 18, 2015 at 09:47:32AM -0600, Alex Williamson wrote:
> > On Fri, 2015-09-18 at 16:24 +1000, Gavin Shan wrote:
> > > This allows to accept IOMMU group (PE) ID from the parameter from userland
>
oup in a very awkward place. Especially since I'm not
sure if there even are any existing users of the single extant union
branch.
Sigh.
> Also, we generally pass group
> file descriptors rather than a group ID because we can prove the
> ownership of the group through the file
oup in a very awkward place. Especially since I'm not
sure if there even are any existing users of the single extant union
branch.
Sigh.
> Also, we generally pass group
> file descriptors rather than a group ID because we can prove the
> ownership of the group through the file
On Mon, Sep 14, 2015 at 08:32:36AM +0200, Thomas Huth wrote:
> On 14/09/15 04:15, David Gibson wrote:
> > On Fri, Sep 11, 2015 at 11:17:01AM +0200, Thomas Huth wrote:
> >> The PAPR interface defines a hypercall to pass high-quality
> >> hardware generated random number
eset_hook(void *opaque);
>
> #define TYPE_SPAPR_RTC "spapr-rtc"
> +#define TYPE_SPAPR_RNG "spapr-rng"
>
> void spapr_rtc_read(DeviceState *dev, struct tm *tm, uint32_t *ns);
> int spapr_rtc_import_offset(DeviceState *dev, int64_t legacy_offset);
>
> +int spapr_rn
flag is set, we unconditionally exit to the host.
>
> Fixes: 66feed61cdf6
> Cc: sta...@vger.kernel.org # v4.1+
> Signed-off-by: Gautham R. Shenoy <e...@linux.vnet.ibm.com>
> Signed-off-by: Paul Mackerras <pau...@samba.org>
Reviewed-by: David Gibson <da...@gibso
flag is set, we unconditionally exit to the host.
>
> Fixes: 66feed61cdf6
> Cc: sta...@vger.kernel.org # v4.1+
> Signed-off-by: Gautham R. Shenoy <e...@linux.vnet.ibm.com>
> Signed-off-by: Paul Mackerras <pau...@samba.org>
Reviewed-by: David Gibson <da...@gibso
Gautham R. Shenoy <e...@linux.vnet.ibm.com>
> Signed-off-by: Paul Mackerras <pau...@samba.org>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank
Gautham R. Shenoy <e...@linux.vnet.ibm.com>
> Signed-off-by: Paul Mackerras <pau...@samba.org>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank
of the arch_*() hooks, but it will make qemu happy and
we can extend it in future if we need to.
Signed-off-by: David Gibson da...@gibson.dropbear.id.au
Reviewed-by: Eric Auger eric.au...@linaro.org
---
arch/powerpc/kvm/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Alex (Graf), sorry
On Tue, Aug 04, 2015 at 09:54:44AM +0200, Andrew Jones wrote:
On Tue, Aug 04, 2015 at 02:11:30PM +1000, David Gibson wrote:
On Mon, Aug 03, 2015 at 04:41:28PM +0200, Andrew Jones wrote:
Add enough RTAS support to support power-off, and apply it to
exit().
Signed-off-by: Andrew
On Tue, Aug 04, 2015 at 09:47:59AM +0200, Andrew Jones wrote:
On Tue, Aug 04, 2015 at 02:09:52PM +1000, David Gibson wrote:
On Mon, Aug 03, 2015 at 07:08:17PM +0200, Paolo Bonzini wrote:
On 03/08/2015 16:41, Andrew Jones wrote:
Add enough RTAS support to support power-off
On Tue, Aug 04, 2015 at 09:47:59AM +0200, Andrew Jones wrote:
On Tue, Aug 04, 2015 at 02:09:52PM +1000, David Gibson wrote:
On Mon, Aug 03, 2015 at 07:08:17PM +0200, Paolo Bonzini wrote:
On 03/08/2015 16:41, Andrew Jones wrote:
Add enough RTAS support to support power-off
On Tue, Aug 04, 2015 at 09:54:44AM +0200, Andrew Jones wrote:
On Tue, Aug 04, 2015 at 02:11:30PM +1000, David Gibson wrote:
On Mon, Aug 03, 2015 at 04:41:28PM +0200, Andrew Jones wrote:
Add enough RTAS support to support power-off, and apply it to
exit().
Signed-off-by: Andrew
*)(r-offset + load_addr);
+ *addr = r-addend + load_addr;
+ }
+ ++r;
+ }
+}
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
@h
+ ori r3, r3, KVMPPC_H_RTAS@l
+ HVSC
+ blr
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
in qemu or SLOF, then bypassing it in the kvm tests
like this means they wouldn't catch that breakage.
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_
*)(r-offset + load_addr);
+ *addr = r-addend + load_addr;
+ }
+ ++r;
+ }
+}
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
:
+ sldir6, r3, 56
+ li r3, H_PUT_TERM_CHAR
+ li r4, 0 /* vty-reg 0 means to use the default vty */
+ li r5, 1 /* sending just 1 byte */
+ HVSC
+ blr
--
David Gibson| I'll have my music baroque, and my code
david
@h
+ ori r3, r3, KVMPPC_H_RTAS@l
+ HVSC
+ blr
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
in qemu or SLOF, then bypassing it in the kvm tests
like this means they wouldn't catch that breakage.
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_
:
+ sldir6, r3, 56
+ li r3, H_PUT_TERM_CHAR
+ li r4, 0 /* vty-reg 0 means to use the default vty */
+ li r5, 1 /* sending just 1 byte */
+ HVSC
+ blr
--
David Gibson| I'll have my music baroque, and my code
david
.
There are hypercalls to sidestep this (H_LOGICAL_CI_LOAD and
H_LOGICAL_CI_STORE), but having a hypercall and KVM exit for every IO
access may be hideously slow.
In early development we did have a hypercall mediated virtio model,
but it was abandoned once we got PCI working.
--
David Gibson
.
There are hypercalls to sidestep this (H_LOGICAL_CI_LOAD and
H_LOGICAL_CI_STORE), but having a hypercall and KVM exit for every IO
access may be hideously slow.
In early development we did have a hypercall mediated virtio model,
but it was abandoned once we got PCI working.
--
David Gibson
on these? These appear to fix a really nasty host crash in
current upstream. I'd really like to see them merged ASAP.
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
on these? These appear to fix a really nasty host crash in
current upstream. I'd really like to see them merged ASAP.
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
of the arch_*() hooks, but it will make qemu happy and
we can extend it in future if we need to.
Signed-off-by: David Gibson da...@gibson.dropbear.id.au
---
arch/powerpc/kvm/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kvm/Makefile b/arch/powerpc/kvm
On Wed, Jun 03, 2015 at 09:40:49PM +1000, Alexey Kardashevskiy wrote:
On 06/02/2015 02:17 PM, David Gibson wrote:
On Fri, May 29, 2015 at 06:44:57PM +1000, Alexey Kardashevskiy wrote:
The existing implementation accounts the whole DMA window in
the locked_vm counter. This is going to be worse
On Wed, Jun 03, 2015 at 09:27:10PM +1000, Alexey Kardashevskiy wrote:
On 06/02/2015 09:50 AM, David Gibson wrote:
On Fri, May 29, 2015 at 06:44:51PM +1000, Alexey Kardashevskiy wrote:
TCE tables might get too big in case of 4K IOMMU pages and DDW enabled
on huge guests (hundreds of GB of RAM
On Wed, Jun 03, 2015 at 09:11:09PM +1000, Alexey Kardashevskiy wrote:
On 06/01/2015 02:28 PM, David Gibson wrote:
On Fri, May 29, 2015 at 06:44:33PM +1000, Alexey Kardashevskiy wrote:
There moves locked pages accounting to helpers.
Later they will be reused for Dynamic DMA windows (DDW
rather than the vcpu pointer to
trigger them.
Signed-off-by: Paul Mackerras pau...@samba.org
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_
rather than the vcpu pointer to
trigger them.
Signed-off-by: Paul Mackerras pau...@samba.org
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_
that in a new field in struct vcpu_arch, called thread_cpu.
Signed-off-by: Paul Mackerras pau...@samba.org
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_
that in a new field in struct vcpu_arch, called thread_cpu.
Signed-off-by: Paul Mackerras pau...@samba.org
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_
no table so no cache was used) but this is going
to change with Dynamic DMA windows (DDW).
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david
alex.william...@redhat.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
Reviewed-by: Gavin Shan gws...@linux.vnet.ibm.com
It looks like this commit message doesn't match the code - it seems
like an older or newer version of the message from the previous patch.
This patch seems instead
to pnv_pci_ioda2_setup_dma_pe.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
[aw: for the vfio related changes]
Acked-by: Alex Williamson alex.william...@redhat.com
Reviewed-by: Gavin Shan gws...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson
to be invalidated so does the patch.
This does not change pnv_pci_ioda1_tce_invalidate() as there is no plan
to enable TCE table sharing on PHBs older than IODA2.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson
available later).
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
[aw: for the vfio related changes]
Acked-by: Alex Williamson alex.william...@redhat.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david
...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
]);
+
+ tmp = __va(tce ~(TCE_PCI_READ | TCE_PCI_WRITE));
+ idx = ~mask;
+ mask = shift;
+ --level;
+ }
return tmp + idx;
}
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au
.
This should cause no behavioural change.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
Reviewed-by: Gavin Shan gws...@linux.vnet.ibm.com
---
Changes:
v11:
* replaced some 1it_page_shift with IOMMU_PAGE_SIZE() macro
v9:
* initialize pe
with
+ * VFIO_IOMMU_SPAPR_REGISTER_MEMORY.
+ * Uses vfio_iommu_spapr_register_memory for parameters.
+ */
+#define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY _IO(VFIO_TYPE, VFIO_BASE + 18)
+
/* * */
#endif /* _UAPIVFIO_H */
--
David Gibson
[aw: for the vfio related changes]
Acked-by: Alex Williamson alex.william...@redhat.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
update.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
()
helper. In-kernel acceleration patchset will move it from KVM to MMU code.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
There's a bunch of ways this could be cleaned up, but those can be
done later. So,
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson
-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
pgptc8o5ntY8T.pgp
not
advertise pagemasks to the userspace.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Acked-by: Alex Williamson alex.william...@redhat.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david
the locked_vm counter can be updated correctly when a table is
being disposed.
This defines an iommu_table_group_ops callback to let VFIO know
how much memory will be locked if a table is created.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Reviewed-by: David Gibson da
Reviewed-by: Gavin Shan gws...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_
here, remove the workaround
from pnv_pci_ioda2_set_bypass(); also remove the @add_to_iommu_group
parameter from pnv_ioda_setup_bus_dma().
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Acked-by: Gavin Shan gws...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
TCE table sharing.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Reviewed-by: Gavin Shan gws...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au
will need to be able to release
iommu_table even if it was used for VFIO in which case it_map is NULL
so does the patch.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque
in tce_iommu_bus_notifier.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
Reviewed-by: Gavin Shan gws...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au
because those lines had to be changed anyway.
This should cause no behavioural change.
Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru
[aw: for the vfio related changes]
Acked-by: Alex Williamson alex.william...@redhat.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson
Williamson alex.william...@redhat.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
Reviewed-by: Gavin Shan gws...@linux.vnet.ibm.com
---
Changes:
v4:
* new helpers do nothing if @npages == 0
* tce_iommu_disable() now can decrement the counter if the group was
detached (not possible
On Fri, Apr 24, 2015 at 02:24:48PM +0200, Greg Kurz wrote:
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank
.
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_
overhead.
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
On Fri, Apr 24, 2015 at 02:24:27PM +0200, Greg Kurz wrote:
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank
On Fri, Apr 24, 2015 at 02:24:38PM +0200, Greg Kurz wrote:
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank
On Fri, Apr 24, 2015 at 02:25:12PM +0200, Greg Kurz wrote:
Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com
Reviewed-by: David Gibson da...@gibson.dropbear.id.au
--
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank
1 - 100 of 241 matches
Mail list logo