From: Paul Mackerras <paulus@ozlabs.org>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: David Gibson <david@gibson.dropbear.id.au>,
linuxppc-dev@lists.ozlabs.org,
Alex Williamson <alex.williamson@redhat.com>,
Nicholas Piggin <npiggin@gmail.com>
Subject: Re: [PATCH kernel v4 4/4] powerpc/mm/iommu, vfio/spapr: Put pages on VFIO container shutdown
Date: Thu, 3 Nov 2016 12:02:28 +1100 [thread overview]
Message-ID: <20161103010228.GD4764@fergus.ozlabs.ibm.com> (raw)
In-Reply-To: <d03177f8-231e-cef7-d518-e33bea5a1cfb@ozlabs.ru>
On Wed, Nov 02, 2016 at 01:44:03PM +1100, Alexey Kardashevskiy wrote:
> On 31/10/16 15:23, David Gibson wrote:
[...]
> >
> > Um.. yeah.. that's not really ok. Prohibiting overlapping
> > registrations on the same container is reasonable enough. Having a
> > container not be able to register memory because some completely
> > different container has registered something overlapping is getting
> > very ugly.
>
> I am lost here. Does this mean the patches cannot go upstream?
>
> Also how would I implement overlapping if we are not teaching KVM about
> VFIO containers? The mm list has a counter of how many times each memory
> region was mapped via TCE (and this prevents unregistration), and if we
> want overlapping regions - a "mapped" counter of which one would I update
> in real mode (where I only have a user address and a LIOBN)?
The patches fix a real bug, where we run out of memory to run VMs.
The patches don't change the interface, and don't introduce the
constraint that is being discussed here (that the regions being
registered may not overlap unless they are identical to a previously
registered region). That constraint is already present in the
upstream code.
They do change the behaviour when you use a container fd from a
different process from the one which opened the fd, but that is not
something that worked in any meaningful way before anyway.
So David, do you still see any reason why the patches should not be
accepted?
Regards,
Paul.
next prev parent reply other threads:[~2016-11-03 1:02 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-24 6:53 [PATCH kernel v4 0/4] powerpc/spapr/vfio: Put pages on VFIO container shutdown Alexey Kardashevskiy
2016-10-24 6:53 ` [PATCH kernel v4 1/4] powerpc/iommu: Pass mm_struct to init/cleanup helpers Alexey Kardashevskiy
2016-10-24 6:53 ` [PATCH kernel v4 2/4] powerpc/iommu: Stop using @current in mm_iommu_xxx Alexey Kardashevskiy
2016-10-24 6:53 ` [PATCH kernel v4 3/4] vfio/spapr: Reference mm in tce_container Alexey Kardashevskiy
2016-10-24 7:14 ` Nicholas Piggin
2016-11-08 3:33 ` David Gibson
2016-11-08 22:25 ` Alex Williamson
2016-11-09 0:46 ` David Gibson
2016-10-24 6:53 ` [PATCH kernel v4 4/4] powerpc/mm/iommu, vfio/spapr: Put pages on VFIO container shutdown Alexey Kardashevskiy
2016-10-25 4:44 ` David Gibson
2016-10-25 4:55 ` Alexey Kardashevskiy
2016-10-31 3:13 ` David Gibson
2016-10-31 4:13 ` Alexey Kardashevskiy
2016-10-31 4:23 ` David Gibson
2016-11-02 2:44 ` Alexey Kardashevskiy
2016-11-03 1:02 ` Paul Mackerras [this message]
2016-11-08 3:33 ` David Gibson
2016-11-08 3:35 ` David Gibson
2016-11-08 7:54 ` [PATCH kernel v4 0/4] powerpc/spapr/vfio: " Michael Ellerman
2016-11-08 23:06 ` Alex Williamson
2016-11-10 1:37 ` Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161103010228.GD4764@fergus.ozlabs.ibm.com \
--to=paulus@ozlabs.org \
--cc=aik@ozlabs.ru \
--cc=alex.williamson@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=npiggin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).