Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1906969pxj; Wed, 19 May 2021 17:20:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZlYOlZstygvz+j216HSsAu/DXX5/5dCRkw1WlOW+cYFAuuUfL3YNf/wHVm2uiMDMssnbQ X-Received: by 2002:a05:6e02:b4b:: with SMTP id f11mr2122814ilu.253.1621470052198; Wed, 19 May 2021 17:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621470052; cv=none; d=google.com; s=arc-20160816; b=dtnVdteudZ3Vdlss2P/bQ0x1HzIeqsEquR0lZ75rgJuffurnSbv1A9IDYqy4HPqmp4 D2+7VIMADTUvL0lufqHeDdS5pPMrN8UrA5ptXdSY2hmRSE3ZqSyNjI4duwIscAc3Ldda jBq3AXpddlTHC6vrXltZCqnl7xD9KJDt79IvQmbisnUZ9XLEERDksy+4WgqUF4qOHW86 6kI0hYR+qRbB4CnJkgysGN1YHQrMGLHizmbLVe4LA/3zIfgg+JelFTZdR6Lz1n/QfxJ9 +9ovQSlxwP1RPO9mGUir2lQAFEAYQhdfuLJItfWkqn7cpqLT/Ii0pQCpx/jwYy8yBDCX luoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=OcYjqpV37sNm6G2Dw3oEkBMZmRyPXE67whdzCrQmeGw=; b=xHliSTsc4/rB0Hqe3Ds6h/gUdp2CDIyvK0LOjaSH/+uOdwHd4lAvCpyGtTGBetTmhn YNUwPft0vVMCk12YVjsj7veWYGAtRPZjiIROagB6gHlPFWXeb05qyc/uzWCpCl7/iIpu YOh1zqjRTApw3UfnIHvIY7qqpeWQtmCtn6rA70eLTJgO0IRf6uhMviWRrIiOYC6hQanh o3t+ukI/YJkZc6pbXkudc+QH7l1upwO0jVnHb2yth4V2qFJ58sdXoIGEZU0HAJHrusml qR1bcqdE15erB5XbBUnrYm3VUabEBfyw1vvjeLh4H9dkU1zAl4CQMRXQkg33wW+f0bOB FH9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si936692jaw.8.2021.05.19.17.20.38; Wed, 19 May 2021 17:20:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230049AbhETAUR (ORCPT + 99 others); Wed, 19 May 2021 20:20:17 -0400 Received: from mga03.intel.com ([134.134.136.65]:46428 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbhETAUQ (ORCPT ); Wed, 19 May 2021 20:20:16 -0400 IronPort-SDR: 2kY2YYEwc6Atwmluj8vIhbh5MjvhwCRUg3lPlnkhVyTEqv/zas1mFOT2GigGU6WPs6TPR/DDXC 0mTyrZyQ7lag== X-IronPort-AV: E=McAfee;i="6200,9189,9989"; a="201165398" X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="201165398" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2021 17:18:56 -0700 IronPort-SDR: qj58NiAbcEmWTXcMXiYlqnmWgBe2IyOSLo3brLbpWiHwJzDbexLYODcDCUZ05v8EeaF5//FeSe LFciUtsU1x0A== X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="411959002" Received: from ccheung-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.212.97.108]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2021 17:18:54 -0700 Subject: Re: [RFC v2-fix 1/1] x86/boot: Add a trampoline for APs booting in 64-bit mode To: Dan Williams Cc: Peter Zijlstra , Andy Lutomirski , Dave Hansen , Tony Luck , Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , Linux Kernel Mailing List , Sean Christopherson , Kai Huang References: <20210518005404.258660-1-sathyanarayanan.kuppuswamy@linux.intel.com> <861a316c-09f6-5969-6238-e402fca917db@linux.intel.com> From: "Kuppuswamy, Sathyanarayanan" Message-ID: Date: Wed, 19 May 2021 17:18:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, On 5/17/21 9:08 PM, Dan Williams wrote: >> SYM_DATA_START_LOCAL(tr_idt) >> .short 0 >> .quad 0 >> SYM_DATA_END(tr_idt) > This format implies that tr_idt is reserving space for 2 distinct data > structure attributes of those sizes, can you just put those names here > as comments? Otherwise the .fill format is more compact. Initially its 6 bytes (2 bytes for IDT limit, 4 bytes for 32 bit linear start address). This patch extends it by another 4 bytes for supporting 64 bit mode. 2 bytes IDT limit (.short) 8 bytes for 64 bit IDT start address (.quad) This info is included in commit log. But I will add comment here as you have mentioned. Will following comment log do ? /* Use 10 bytes for IDT (in 64 bit mode), 8 bytes for IDT start address 2 bytes for IDT limit size */ -- Sathyanarayanan Kuppuswamy Linux Kernel Developer