Re: [PATCHv16 11/17] x86/mm/iommu/sva: Make LAM and SVA mutually exclusive

From: Kirill A. Shutemov
Date: Mon Apr 03 2023 - 06:27:56 EST


On Mon, Apr 03, 2023 at 12:22:01PM +0200, Dmitry Vyukov wrote:
> Then I misunderstood what it means. Ignore.
>
> While we are here:
>
> if (mm_valid_pasid(mm) &&
> !test_bit(MM_CONTEXT_FORCE_TAGGED_SVA, &mm->context.flags))
> return -EINTR;
>
> should be EINVAL?

Yes. My bad. Will fix.

--
Kiryl Shutsemau / Kirill A. Shutemov