Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1392466
| From | Andrea Arcangeli <aarcange@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: GUP guarantees wrt to userspace mappings |
| Date | 2016-05-02 21:10 +0200 |
| Message-ID | <ruroe-Mo-15@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <rujAl-1I4-5@gated-at.bofh.it> <ruk3o-2eU-3@gated-at.bofh.it> <rukZs-3a6-23@gated-at.bofh.it> <rumeS-45v-5@gated-at.bofh.it> <runDY-5IL-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, May 02, 2016 at 06:00:13PM +0300, Kirill A. Shutemov wrote: > Switching to non-fast GUP would help :-P If we had a race in khugepaged or ksmd against gup_fast O_DIRECT we'd get flood of bugreports of data corruption with KVM run with cache=direct. Just wanted to reassure there's no race, explained how the serialization to force a fallback to non-fast GUP works in previous email. This issue we're fixing for the COW is totally unrelated to KVM too, because it uses MADV_DONTFORK, but the other races with O_DIRECT against khugepaged/kksmd would still happen if we didn't already have proper serialization against get_user_pages_fast. > Alternatively, we have mmu_notifiers to track changes in userspace > mappings. This is always the absolute best solution, then no gup pins are used at all and all VM functionality is activated regardless of the secondary MMU, just most IOMMUs can't generate a synchronous page fault, when they fault the I/O is undefined. It'd be like if when you get a page fault in the CPU, when you return from the fault you go to then next instruction and during the fault you've no way to even emulate the faulting instruction.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[BUG] vfio device assignment regression with THP ref counting redesign Alex Williamson <alex.williamson@redhat.com> - 2016-04-28 18:30 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-04-28 20:20 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Alex Williamson <alex.williamson@redhat.com> - 2016-04-28 21:00 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Andrea Arcangeli <aarcange@redhat.com> - 2016-04-29 01:30 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Alex Williamson <alex.williamson@redhat.com> - 2016-04-29 02:50 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-04-29 03:00 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Alex Williamson <alex.williamson@redhat.com> - 2016-04-29 04:50 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-04-29 09:10 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Alex Williamson <alex.williamson@redhat.com> - 2016-04-29 17:20 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Andrea Arcangeli <aarcange@redhat.com> - 2016-04-29 18:40 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Alex Williamson <alex.williamson@redhat.com> - 2016-04-30 00:40 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-02 12:50 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Jerome Glisse <j.glisse@gmail.com> - 2016-05-02 13:20 +0200
GUP guarantees wrt to userspace mappings redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-02 14:20 +0200
Re: GUP guarantees wrt to userspace mappings redesign Jerome Glisse <j.glisse@gmail.com> - 2016-05-02 15:40 +0200
Re: GUP guarantees wrt to userspace mappings "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-02 17:10 +0200
Re: GUP guarantees wrt to userspace mappings Jerome Glisse <j.glisse@gmail.com> - 2016-05-02 17:30 +0200
Re: GUP guarantees wrt to userspace mappings "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-02 18:20 +0200
Re: GUP guarantees wrt to userspace mappings Andrea Arcangeli <aarcange@redhat.com> - 2016-05-02 21:20 +0200
Re: GUP guarantees wrt to userspace mappings Andrea Arcangeli <aarcange@redhat.com> - 2016-05-02 21:20 +0200
Re: GUP guarantees wrt to userspace mappings Andrea Arcangeli <aarcange@redhat.com> - 2016-05-02 21:10 +0200
Re: GUP guarantees wrt to userspace mappings redesign Oleg Nesterov <oleg@redhat.com> - 2016-05-02 17:20 +0200
Re: GUP guarantees wrt to userspace mappings redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-02 18:30 +0200
Re: GUP guarantees wrt to userspace mappings redesign Oleg Nesterov <oleg@redhat.com> - 2016-05-02 19:30 +0200
Re: GUP guarantees wrt to userspace mappings redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-02 20:10 +0200
Re: GUP guarantees wrt to userspace mappings redesign Oleg Nesterov <oleg@redhat.com> - 2016-05-02 20:50 +0200
Re: GUP guarantees wrt to userspace mappings redesign Andrea Arcangeli <aarcange@redhat.com> - 2016-05-02 21:00 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Andrea Arcangeli <aarcange@redhat.com> - 2016-05-02 17:30 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-02 18:10 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Andrea Arcangeli <aarcange@redhat.com> - 2016-05-02 20:10 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Alex Williamson <alex.williamson@redhat.com> - 2016-05-05 03:20 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Andrea Arcangeli <aarcange@redhat.com> - 2016-05-05 16:40 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Andrea Arcangeli <aarcange@redhat.com> - 2016-05-05 17:10 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-05 17:20 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign Andrea Arcangeli <aarcange@redhat.com> - 2016-05-05 17:30 +0200
Re: [BUG] vfio device assignment regression with THP ref counting redesign "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-05-06 09:30 +0200
csiph-web