Linus Torvalds <[EMAIL PROTECTED]> wrote on 08/01/2005 09:48:40 PM: > > Attractive, I very much wanted to do that rather than change all the > > arches, but I think s390 rules it out: its pte_mkdirty does nothing, > > its pte_dirty just says no. > > How does s390 work at all?
The big difference between s390 and your standard architecture is that s390 keeps the dirty and reference bits in the storage key. That is per physical page and not per mapping. The primitive pte_dirty() just doesn't make any sense for s390. A pte never contains any information about dirty/reference state of a page. The "page" itself contains it, you access the information with some instructions (sske, iske & rrbe) which get the page frame address as parameter. > > Or should we change s390 to set a flag in the pte just for this purpose? > > If the choice is between a broken and ugly implementation for everybody > else, then hell yes. Even if it's a purely sw bit that nothing else > actually cares about.. I hope they have an extra bit around somewhere. Urg, depending on the pte type there are no bits available. For valid ptes there are some bits we could use but it wouldn't be nice. blue skies, Martin Martin Schwidefsky Linux for zSeries Development & Services IBM Deutschland Entwicklung GmbH - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/