[Xen-devel] [PATCH] mm, frontswap: convert frontswap_enabled to static key

2016-05-13 Thread Vlastimil Babka
but without a backend. After the patch, we can expect that some functions in frontswap.c are called only when frontswap_ops is non-NULL. Change the checks there to VM_BUG_ONs. While at it, convert other BUG_ONs to VM_BUG_ONs as frontswap has been stable for some time. Signed-off-by: Vlastimil Bab

Re: [Xen-devel] [PATCH] mm: Fix missing #include in

2016-01-04 Thread Vlastimil Babka
: implicit declaration of function 'BUILD_BUG_ON_INVALID' [-Werror=implicit-function-declaration] VM_WARN_ONCE(!pte_young(pte), Signed-off-by: Ben Hutchings <b...@decadent.org.uk> Acked-by: Vlastimil Babka <vba...@suse.cz> --- include/linux/mmdebug.h | 1 + 1 file changed,

Re: [Xen-devel] [Patch V6 12/16] mm: provide early_memremap_ro to establish read-only mapping

2015-08-06 Thread Vlastimil Babka
On 08/06/2015 03:02 PM, Juergen Gross wrote: On 08/06/2015 02:46 PM, Vlastimil Babka wrote: On 07/17/2015 06:51 AM, Juergen Gross wrote: ... and here for !CONFIG_MMU. So, what about CONFIG_MMU !FIXMAP_PAGE_RO combinations? Which translates to CONFIG_MMU !PAGE_KERNEL_RO. Maybe they don't

Re: [Xen-devel] [Patch V6 12/16] mm: provide early_memremap_ro to establish read-only mapping

2015-08-06 Thread Vlastimil Babka
On 07/17/2015 06:51 AM, Juergen Gross wrote: During early boot as Xen pv domain the kernel needs to map some page tables supplied by the hypervisor read only. This is needed to be able to relocate some data structures conflicting with the physical memory map especially on systems with huge RAM