Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4545183ybp; Mon, 7 Oct 2019 10:00:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGFQT3DNexXmJF/Yz5tQpiBvxOSbAkRSNy5ZISHEe4Zt7Y1hDprV65Vy6mZHAcpmqzzlNh X-Received: by 2002:a50:d089:: with SMTP id v9mr30446168edd.54.1570467647527; Mon, 07 Oct 2019 10:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570467647; cv=none; d=google.com; s=arc-20160816; b=PZHFqioT2v3Mf/j/DlS6m9tsFDPrRb6C9uDHbGIe22VR4XKpBIqKeSiLh06qCA26+j G2pL8wX9bFefAIlKRY7/4RkLHn0lcaEv0EHIGeRLHRNxFKJvPYjzyRM64UOErCnpJxWQ L1zb3zuWVmXpUYUI/DGtmH6MxHijIUcxEJYl6afJMJZQ/0Ul+dp/RxrXIJ5rKiY0Hzol 4tqcSYyx7n8Oi4n+jve3N7dfyn5nlOj6hspfpmlPzpQqANyBAMI99jAnxbmvNOdDO+Bo v3gu5b4/N2OgouoGH8daMvz6ogn2fQJyPZY3FNTMPP+snRD/CqQr6i19KaLQKThcUsAM 6pAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZvNLEWaQDcZ6eL061D1WLQ0GhGCmCN49SVaTp9ErjJ4=; b=YDc9XM3t1Pf+Giax8r5vRwNY7u8EQldvOczz0iX/pW3DPC3iSGFvh/fnbDaSpXCqUx fiyvo/OICVr2R3Atg3fYscS7ydaSq0jg1YsHZC7JawvGo7zkHr+fbVmoYDp0XaPsuB1s qmsi7H4yGQkTyFniUyREAiYSmriom3gCcC37v5eG77B7YEbRVja3pQ+pnx9J0vspywA/ HzaIl01XWiEwdhckh9GOgKXjq1egrY1W2hLcmV5LVZsb8UUHv1DXrKv/PNeCaIfHkG/+ /oE7uQeQyvxHGz+KJ+H5iFiRlSOY1c3E+KqmyWxz5zQfGNdfJfu6p6TIkNL+Zf/NljkD shRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qlD40uM6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si10034286edl.192.2019.10.07.10.00.22; Mon, 07 Oct 2019 10:00:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qlD40uM6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728490AbfJGRAG (ORCPT + 99 others); Mon, 7 Oct 2019 13:00:06 -0400 Received: from mail.skyhub.de ([5.9.137.197]:60938 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727801AbfJGRAG (ORCPT ); Mon, 7 Oct 2019 13:00:06 -0400 Received: from zn.tnic (p200300EC2F06420085D86D94306C6599.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:4200:85d8:6d94:306c:6599]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 507C01EC02C1; Mon, 7 Oct 2019 19:00:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1570467604; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=ZvNLEWaQDcZ6eL061D1WLQ0GhGCmCN49SVaTp9ErjJ4=; b=qlD40uM6egLVWxGPYM9QUvus7VL5DNAFIg4gaxaXV3+/Dia/8P57RvcZ73xuZ9z8PjT00i zoqbuaxC/71qMqdwhbguwQ3r3w4O7eJbuqhT+qbwkBhmuXh6pAq6G+GFa8Nkv2B2siskPZ SiQujw8xlIbTLBuN4E3TWRoMFa06uDk= Date: Mon, 7 Oct 2019 18:59:58 +0200 From: Borislav Petkov To: Ralf Ramsauer Cc: Jan Kiszka , x86@kernel.org, jailhouse-dev@googlegroups.com, linux-kernel@vger.kernel.org, Ingo Molnar , "H . Peter Anvin" Subject: Re: [PATCH v5 2/2] x86/jailhouse: Only enable platform UARTs if available Message-ID: <20191007165958.GE24289@zn.tnic> References: <20191007123819.161432-1-ralf.ramsauer@oth-regensburg.de> <20191007123819.161432-3-ralf.ramsauer@oth-regensburg.de> <20191007162636.GD24289@zn.tnic> <85502467-d13b-084e-cdb8-d891178e97d8@oth-regensburg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <85502467-d13b-084e-cdb8-d891178e97d8@oth-regensburg.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 07, 2019 at 06:44:39PM +0200, Ralf Ramsauer wrote: > Yep, jailhouse_serial_fixup can become __init, I didn't see that, but > you're right, thanks. I'm curious, how did you find that? CONFIG_SECTION_MISMATCH_WARN_ONLY=y If that it off, it fails the build even: WARNING: vmlinux.o(.text+0x4fdb0): Section mismatch in reference from the function jailhouse_serial_fixup() to the variable .init.data:can_use_brk_pgt The function jailhouse_serial_fixup() references the variable __initdata can_use_brk_pgt. This is often because jailhouse_serial_fixup lacks a __initdata annotation or the annotation of can_use_brk_pgt is wrong. FATAL: modpost: Section mismatches detected. Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them. make[1]: *** [scripts/Makefile.modpost:66: __modpost] Error 1 make: *** [Makefile:1074: vmlinux] Error 2 Apparently we did that with: 47490ec141b9 ("modpost: Add flag -E for making section mismatches fatal") > "We" didn't notice yet. :-) LOL. > BTW, we refers to the Jailhouse folks, but I will rewrite that. Thanks. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette