Re: [PATCH v2 7/8] powerpc/pgtable: remove _PAGE_BIT_SWAP_TYPE for book3s

2022-03-30 Thread David Hildenbrand
On 30.03.22 08:07, Christophe Leroy wrote: > > > Le 29/03/2022 à 18:43, David Hildenbrand a écrit : >> The swap type is simply stored in bits 0x1f of the swap pte. Let's >> simplify by just getting rid of _PAGE_BIT_SWAP_TYPE. It's not like that >> we can simply change it: _PAGE_SWP_SOFT_DIRTY

Re: [PATCH v2 7/8] powerpc/pgtable: remove _PAGE_BIT_SWAP_TYPE for book3s

2022-03-30 Thread Christophe Leroy
Le 29/03/2022 à 18:43, David Hildenbrand a écrit : > The swap type is simply stored in bits 0x1f of the swap pte. Let's > simplify by just getting rid of _PAGE_BIT_SWAP_TYPE. It's not like that > we can simply change it: _PAGE_SWP_SOFT_DIRTY would suddenly fall into > _RPAGE_RSV1, which isn't

[PATCH v2 7/8] powerpc/pgtable: remove _PAGE_BIT_SWAP_TYPE for book3s

2022-03-29 Thread David Hildenbrand
The swap type is simply stored in bits 0x1f of the swap pte. Let's simplify by just getting rid of _PAGE_BIT_SWAP_TYPE. It's not like that we can simply change it: _PAGE_SWP_SOFT_DIRTY would suddenly fall into _RPAGE_RSV1, which isn't possible and would make the BUILD_BUG_ON(_PAGE_HPTEFLAGS &