Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936048Ab3DPT61 (ORCPT ); Tue, 16 Apr 2013 15:58:27 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:13401 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935400Ab3DPT60 (ORCPT ); Tue, 16 Apr 2013 15:58:26 -0400 Message-ID: <516DAD59.2020104@parallels.com> Date: Tue, 16 Apr 2013 23:58:17 +0400 From: Pavel Emelyanov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Andrew Morton CC: Linux MM , Linux Kernel Mailing List Subject: Re: [PATCH 5/5] mm: Soft-dirty bits for user memory changes tracking References: <51669E5F.4000801@parallels.com> <51669EB8.2020102@parallels.com> <20130411142417.bb58d519b860d06ab84333c2@linux-foundation.org> <5168089B.7060305@parallels.com> <20130415144619.645394d8ecdb180d7757a735@linux-foundation.org> In-Reply-To: <20130415144619.645394d8ecdb180d7757a735@linux-foundation.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1358 Lines: 30 >>> >From that perspective, the dependency on X86 is awful. What's the >>> problem here and what do other architectures need to do to be able to >>> support the feature? >> >> The problem here is that I don't know what free bits are available on >> page table entries on other architectures. I was about to resolve this >> for ARM very soon, but for the rest of them I need help from other people. > > Well, this is also a thing arch maintainers can do when they feel a > need to support the feature on their architecture. To support them at > that time we should provide them with a) adequate information in an > easy-to-find place (eg, a nice comment at the site of the reference x86 > implementation) and b) a userspace test app. Item a) is presumably covered with two things -- required arch-specific PTE manipulations are all collected in asm-generic/pgtable.h under the !CONFIG_HAVE_ARCH_SOFT_DIRTY and the Documentation/vm/soft-dirty.txt pointed by the API clear_refs_soft_dirty()'s comment. Item b) was recently merged. Item c) from Stephen is already sent. Thank you for your time and help, Pavel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/