Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752552AbaKUUlq (ORCPT ); Fri, 21 Nov 2014 15:41:46 -0500 Received: from mail-qg0-f45.google.com ([209.85.192.45]:49195 "EHLO mail-qg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752494AbaKUUlp (ORCPT ); Fri, 21 Nov 2014 15:41:45 -0500 MIME-Version: 1.0 In-Reply-To: References: <20141120221122.GA25393@htj.dyndns.org> <20141120230514.GB25393@htj.dyndns.org> <20141120233920.GC25393@htj.dyndns.org> <20141121162742.GB15461@htj.dyndns.org> <20141121170805.GD30603@home.goodmis.org> Date: Fri, 21 Nov 2014 12:41:44 -0800 X-Google-Sender-Auth: HGaEzycGmV44x04EukQyXl8tbhc Message-ID: Subject: Re: frequent lockups in 3.18rc4 From: Linus Torvalds To: Thomas Gleixner Cc: Andy Lutomirski , Steven Rostedt , Tejun Heo , "linux-kernel@vger.kernel.org" , Arnaldo Carvalho de Melo , Peter Zijlstra , Frederic Weisbecker , Don Zickus , Dave Jones , "the arch/x86 maintainers" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 21, 2014 at 12:16 PM, Thomas Gleixner wrote: > > I don't think that works on 32bit. See the magic in > vmalloc_sync_one(). Heh. I guess we could just add a wrapper around this crap, and make it very clear that the paravirt case is a horrible horrible hack. Something like #define set_one_pgd_entry(entry,pgdp) (pgdp)->pgd = (entry) for the regular case, and then for paravirt we do something very explicitly horrid, like #ifdef CONFIG_PARAVIRT #ifdef CONFIG_X86_32 // The pmd is the top-level page directory on non-PAE x86, nested inside pgd/pud #define set_one_pgd_entry(entry,pgdp) set_pmd((pmd_t *)(pgdp), (pmd_t) { entry } ) #else #define set_one_pgd_entry(entry, pgdp) do { set_pgd(pgdp, (pgd_t) { entry }); arch_flush_lazy_mmu_mode(); } while (0) #endif because on x86-64, there seems to be that whole lazy_mode pv_ops craziness (which I'm not at all convinced is needed here, but that's what the current code does). Linus -- 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/