Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp444470rdb; Thu, 30 Nov 2023 08:42:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbxgakLJbHpXmKkIcoWp6cX48/bKcQx3TIxUhhhLuuFkcOXCVjZDRL2RKraBUebiFprl0b X-Received: by 2002:a17:902:db06:b0:1cf:c376:6d7f with SMTP id m6-20020a170902db0600b001cfc3766d7fmr21793517plx.42.1701362572673; Thu, 30 Nov 2023 08:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701362572; cv=none; d=google.com; s=arc-20160816; b=oafWiamXoINozt9+hDMwxnK6HBhYZ6lRTsm14PNkpmcsr/anHj8K5mIh1R6KmM12IH jxoTyoBqnSoouR6IAwjSFrf9ihY3lqQdlEcq0RZzDnql1k4qSJrsZ2NM7j1DWZloQgs3 F4JXk+OmaBK/eevW/Hqd5/EJRr1T9Dr43F2RcFMdsrzqrjQh/5e3T9imkBHI3nzQW54a wiwWFjGtAK9k/YzXR5XQGgNx5uAtkm9Ga4xnPJ1HQErweJpzEMK9LFdwu5sD1LhUwGkO yvSSZyg6Siad4iMR1G97cSEDJz4R8xNxq6hdzPjEpVZg3agpk+MEKBJOSJZxlioNzwNr SjGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=05Mpj4MHmTw58ZLIMAy0nBU+jdjD9L9+bDSyBxDCGGw=; fh=c6ULuwrEvs81d/SGBbEGkeGvnJaJUssF+sP5VR2Lcag=; b=KkZXw3wCDFNSOq+DDWFpQLXmXZl0NpV9grbQOzWOsuAhrQzsv7ChM/hrOrAF+pbm9D NcrUdqBEtpIktEEwPWgpGb+M+yj3rPbcrSLicSYRy5T9wAQt5bWww5BkPDMPbzIVSSY9 z18YB4o+qCKPAC+QF7o8ilVsnq9fmZdWffqa9R9ZD2A3sitTwsO+QidZkBjndiKa5H5/ EwXxx/h4zeyTzcnNl/JnIgVF4uAjBB73fv6Y6Q5jmww++PNUbdeCrGlKBoGGwnJKhdeG 103e2TaD7SE+R/Dlj8n9stvdQGTZl9Ub5V+UE1mmhqg9B2XcIAyaWQeA/vnKE8MtS4N5 C3/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KZl8bJoQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u17-20020a170903125100b001cfb4a89e6esi1559198plh.145.2023.11.30.08.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:42:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KZl8bJoQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2B57580CCD34; Thu, 30 Nov 2023 08:42:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232182AbjK3Qmf (ORCPT + 99 others); Thu, 30 Nov 2023 11:42:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231919AbjK3Qme (ORCPT ); Thu, 30 Nov 2023 11:42:34 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 028BB1A3 for ; Thu, 30 Nov 2023 08:42:41 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50bbc36f767so1705296e87.1 for ; Thu, 30 Nov 2023 08:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701362559; x=1701967359; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=05Mpj4MHmTw58ZLIMAy0nBU+jdjD9L9+bDSyBxDCGGw=; b=KZl8bJoQLl9H8RqDs35Wmu3tWeZGK1cY4zTkxvE67jMd4cYj95T+HLYPzkwLt24cwJ dZ900XRXVXJBoxWRuZZTGo4MBms6P/gAZ2CdMcTgnxTHBHFnOnwsGL13PkKnQ5jVepwp sBRXTi2VRjzmOTthvsnOM2citTqjl0/UrHCO2PT3c/vC15Ot5MOL0er8wHkWbyrSbeNI ndR+gU95M+FWE2dzds5wAF8OtVnNxdHubpexVKoa1B4TXmj5gZ/R7/5g6Qid25EpnVX3 d2OchEusDaij4m3VrBgux3IAMT5+sle7tcaBL89t+XFIeUuy29mgHCHn88pTs4DbhpwT kZ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701362559; x=1701967359; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=05Mpj4MHmTw58ZLIMAy0nBU+jdjD9L9+bDSyBxDCGGw=; b=BmzF3vV58f2zTUxhf2s7LlkLWoMq1GEhM3GGLi5SHgtNRfLnxx8yeyuRm4bYVtC2Ni djwZmxCXJuatf9q2MTntEgsL+gQ/JHmL29OBtvLvMvYsg578DU6sjfMXKhlb8N3cBPsT ADOycDzIz9tYMDcBvVWXnpDrVAMTOfPKb+uq7BcsohlF5HFPnjI53uWQmsVBtKeylqUJ rjCGo0tEQWBx6pmt55Kx8zX73Km5tQ8oyd7+TWeIDWAVNSdMUNk05SO0U+76OlLvahQb Q/tRqJcVOw4YYMPTSJ1+1mc5E68nI3LZfYRpapCwoKM1J/ic5AR+QFeayfqbJXM2a2se 3gkw== X-Gm-Message-State: AOJu0YxstSHddOmI4JhcTMmCdfQZzMls82Hdun46E16NJo+T6dqpJkrP GLkqePFt7i+77HBdOuFxpBehRt1mwNAv0a4y1RD6Wqc= X-Received: by 2002:a05:6512:15a4:b0:507:ab58:7f7a with SMTP id bp36-20020a05651215a400b00507ab587f7amr2258lfb.10.1701362558781; Thu, 30 Nov 2023 08:42:38 -0800 (PST) MIME-Version: 1.0 References: <20231130155213.1407-1-bp@alien8.de> <20231130160903.GJZWizn+dPaaViFVKN@fat_crate.local> In-Reply-To: <20231130160903.GJZWizn+dPaaViFVKN@fat_crate.local> From: Brian Gerst Date: Thu, 30 Nov 2023 11:42:27 -0500 Message-ID: Subject: Re: [PATCH] x86/ia32: State that IA32 emulation is disabled To: Borislav Petkov Cc: X86 ML , LKML , Nikolay Borisov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 08:42:50 -0800 (PST) On Thu, Nov 30, 2023 at 11:09=E2=80=AFAM Borislav Petkov wro= te: > > On Thu, Nov 30, 2023 at 04:52:13PM +0100, Borislav Petkov wrote: > > +static inline bool ia32_enabled_verbose(void) > > +{ > > +#ifdef CONFIG_IA32_EMULATION > > + pr_notice_once("32-bit emulation disabled. You can reenable with = ia32_emulation=3Don\n"); > > +#endif > > + return ia32_enabled(); > > +} > > As Nik rightfully points out offlist, this should rather be something > like: > > --- > bool enabled =3D ia32_enabled(); > > #ifdef CONFIG_IA32_EMULATION > if (!enabled) > pr_notice_once("32-bit emulation disabled. You can reenab= le with ia32_emulation=3Don\n"); > #endif > > return enabled; The #ifdef isn't necessary, as ia32_enabled() will always return false in that case. Brian Gerst