From: "Raj, Ashok" <ashok.raj@intel.com>
To: Bob Liu <liubo95@huawei.com>
Cc: Lu Baolu <baolu.lu@linux.intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H . Peter Anvin" <hpa@zytor.com>,
Alex Williamson <alex.williamson@redhat.com>,
Joerg Roedel <joro@8bytes.org>,
David Woodhouse <dwmw2@infradead.org>,
Rik van Riel <riel@redhat.com>, Michal Hocko <mhocko@suse.com>,
Dave Jiang <dave.jiang@intel.com>,
Kees Cook <keescook@chromium.org>,
linux-mm@kvack.org, x86@kernel.org, linux-kernel@vger.kernel.org,
Dave Hansen <dave.hansen@intel.com>,
iommu@lists.linux-foundation.org,
Vegard Nossum <vegard.nossum@oracle.com>,
Andy Lutomirski <luto@kernel.org>,
Huang Ying <ying.huang@intel.com>,
Matthew Wilcox <willy@linux.intel.com>,
Andrew Morton <akpm@linux-foundation.org>,
"Paul E . McKenney" <paulmck@linux.vnet.ibm.com>,
"Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>,
Ashok Raj <ashok.raj@intel.com>
Subject: Re: [PATCH 1/2] mm: Add kernel MMU notifier to manage IOTLB/DEVTLB
Date: Thu, 14 Dec 2017 19:08:54 -0800 [thread overview]
Message-ID: <20171215030854.GA69597@otc-nc-03> (raw)
In-Reply-To: <e7462b54-9d3a-abfd-8df2-2db3780de78d@huawei.com>
Hi Bob
On Thu, Dec 14, 2017 at 02:07:38PM +0800, Bob Liu wrote:
> On 2017/12/14 11:38, Lu Baolu wrote:
> >>>> We already have an existing MMU notifiers for userspace updates,
> >>>> however we lack the same thing for kernel page table updates. To
> >> Sorry, I didn't get which situation need this notification.
> >> Could you please describe the full scenario?
> >
> > Okay.
> >
> > 1. When an SVM capable driver calls intel_svm_bind_mm() with
> > SVM_FLAG_SUPERVISOR_MODE set in the @flags, the kernel
> > memory page mappings will be shared between CPUs and
> > the DMA remapping agent (a.k.a. IOMMU). The page table
> > entries will also be cached in both IOTLB (located in IOMMU)
> > and the DEVTLB (located in device).
> >
>
> But who/what kind of real device has the requirement to access a kernel VA?
> Looks like SVM_FLAG_SUPERVISOR_MODE is used by nobody?
That's right, there is no inkernel user at the moment, but we certainly see
them coming.
Maybe not the best example :-), but I'm told Lustre and some of the
modern NIC's also can benefit from SVM in kernel use.
Not a hypothetical use case certainly!
Cheers,
Ashok
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2017-12-14 20:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-14 1:02 [PATCH 0/2] Kernel MMU notifier for IOTLB/DEVTLB management Lu Baolu
2017-12-14 1:02 ` [PATCH 1/2] mm: Add kernel MMU notifier to manage IOTLB/DEVTLB Lu Baolu
2017-12-14 3:10 ` Bob Liu
2017-12-14 3:38 ` Lu Baolu
2017-12-14 6:07 ` Bob Liu
2017-12-15 3:08 ` Raj, Ashok [this message]
2017-12-14 6:28 ` Dave Hansen
2017-12-14 6:43 ` Huang, Ying
2017-12-14 1:02 ` [PATCH 2/2] iommu/vt-d: Register " Lu Baolu
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=20171215030854.GA69597@otc-nc-03 \
--to=ashok.raj@intel.com \
--cc=akpm@linux-foundation.org \
--cc=alex.williamson@redhat.com \
--cc=baolu.lu@linux.intel.com \
--cc=dave.hansen@intel.com \
--cc=dave.jiang@intel.com \
--cc=dwmw2@infradead.org \
--cc=hpa@zytor.com \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--cc=keescook@chromium.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=liubo95@huawei.com \
--cc=luto@kernel.org \
--cc=mhocko@suse.com \
--cc=mingo@redhat.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=riel@redhat.com \
--cc=tglx@linutronix.de \
--cc=vegard.nossum@oracle.com \
--cc=willy@linux.intel.com \
--cc=x86@kernel.org \
--cc=ying.huang@intel.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