[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC PATCH v2 11/13] spapr_pci_vfio: Enable DDW
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [RFC PATCH v2 11/13] spapr_pci_vfio: Enable DDW |
Date: |
Wed, 27 Aug 2014 18:25:26 +1000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Aug 26, 2014 at 06:16:51PM +1000, Alexey Kardashevskiy wrote:
> On 08/26/2014 05:19 PM, David Gibson wrote:
> > On Fri, Aug 15, 2014 at 08:12:33PM +1000, Alexey Kardashevskiy wrote:
> >> This implements DDW for VFIO. Host kernel support is required for this.
> >>
> >> Signed-off-by: Alexey Kardashevskiy <address@hidden>
> >> ---
> >> Changes:
> >> v2:
> >> * remove()/reset() callbacks use spapr_pci's ones
> >> ---
> >> hw/ppc/spapr_pci_vfio.c | 86
> >> +++++++++++++++++++++++++++++++++++++++++++++++++
> >> 1 file changed, 86 insertions(+)
> >>
> >> diff --git a/hw/ppc/spapr_pci_vfio.c b/hw/ppc/spapr_pci_vfio.c
> >> index 11b4272..79df716 100644
> >> --- a/hw/ppc/spapr_pci_vfio.c
> >> +++ b/hw/ppc/spapr_pci_vfio.c
> >> @@ -71,6 +71,88 @@ static void spapr_phb_vfio_finish_realize(sPAPRPHBState
> >> *sphb, Error **errp)
> >> spapr_tce_get_iommu(tcet));
> >>
> >> object_unref(OBJECT(tcet));
> >> +
> >> + if (sphb->ddw_enabled) {
> >> + sphb->ddw_enabled = !!(info.flags &
> >> VFIO_IOMMU_SPAPR_TCE_FLAG_DDW);
> >
> > This overrides an explicit ddw= set by the user, which is a bit
> > counter-intuitive.
>
>
> For the user it is rather "try ddw when available" than "do ddw". This was
> suggested by Alex Graf or I misunderstood his suggestion :)
Uh.. never mind. I misread this, not spotting the "if" :).
--
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
pgp4S_6aWd3dW.pgp
Description: PGP signature
- Re: [Qemu-ppc] [RFC PATCH v2 10/13] linux headers update for DDW, (continued)
[Qemu-ppc] [RFC PATCH v2 05/13] spapr_pci: Introduce a liobn number generating macros, Alexey Kardashevskiy, 2014/08/15
[Qemu-ppc] [RFC PATCH v2 11/13] spapr_pci_vfio: Enable DDW, Alexey Kardashevskiy, 2014/08/15
[Qemu-ppc] [RFC PATCH v2 08/13] spapr_pci: Enable DDW, Alexey Kardashevskiy, 2014/08/15
[Qemu-ppc] [RFC PATCH v2 01/13] qom: Make object_child_foreach safe for objects removal, Alexey Kardashevskiy, 2014/08/15
[Qemu-ppc] [RFC PATCH v2 02/13] spapr_iommu: Disable in-kernel IOMMU tables for >4GB windows, Alexey Kardashevskiy, 2014/08/15
[Qemu-ppc] [RFC PATCH v2 07/13] spapr_rtas: Add Dynamic DMA windows (DDW) RTAS calls support, Alexey Kardashevskiy, 2014/08/15