From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934086AbcJ2KSS (ORCPT ); Sat, 29 Oct 2016 06:18:18 -0400 Received: from mail.skyhub.de ([78.46.96.112]:48417 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751074AbcJ2KSM (ORCPT ); Sat, 29 Oct 2016 06:18:12 -0400 Date: Sat, 29 Oct 2016 12:18:07 +0200 From: Borislav Petkov To: Thomas Gleixner Cc: Michal Necasek , prarit@redhat.com, ville.syrjala@linux.intel.com, michael.thayer@oracle.com, knut.osmundsen@oracle.com, frank.mehnert@oracle.com, linux-kernel@vger.kernel.org, wbauer@tmo.at Subject: Re: 4.8.2 not booting in 32-bit VM without I/O-APIC Message-ID: <20161029101807.5eqyuka6mjuqd2kw@pd.tnic> References: <6f385a6a-1f22-4be7-8005-28b714ca271a@default> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 28, 2016 at 09:34:53PM +0200, Thomas Gleixner wrote: > Right. That mapping setup is an utter trainwreck as we do it from multiple > places, but there is no reason why we can't move it before the call to > prefill_possible_map(). > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c > index bbfbca5fea0c..b59fdba3cbdf 100644 > --- a/arch/x86/kernel/setup.c > +++ b/arch/x86/kernel/setup.c > @@ -1221,11 +1221,13 @@ void __init setup_arch(char **cmdline_p) > */ > get_smp_config(); > > + /* Make sure apic is mapped before prefill_possible_map() */ > + init_apic_mappings(); > + > prefill_possible_map(); > > init_cpu_to_node(); > > - init_apic_mappings(); > io_apic_init_mappings(); > > kvm_guest_init(); FWIW, I got another user's confirmation that this works with his virtual box: https://bugzilla.suse.com/show_bug.cgi?id=1006417#c32 https://bugzilla.suse.com/show_bug.cgi?id=1006417#c33 Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.