Received: by 10.192.165.148 with SMTP id m20csp346105imm; Wed, 2 May 2018 01:01:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpiWLiP/hhpwkKa3VbRcUPZgHPxTRxiVvJv+9kmBZ7M3J0vvnIhmpJsJWEd4mrez1Gzl9Ti X-Received: by 2002:a17:902:a603:: with SMTP id u3-v6mr19273197plq.214.1525248103981; Wed, 02 May 2018 01:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525248103; cv=none; d=google.com; s=arc-20160816; b=NItMoKnqjaMRuJlQs/QvEXORtO+IBsKUlPlGnsp19vVrI3IM62i1Z2aorP6A1oYFIU 2EFsC2o9aJkTxgjydw/TCFgGlohfpIdqi27zaMIcE4WFAgnm5TcsLyem4OQLeicQ/iwU ZIKKJjpoNVqE+6LHFw22KdUJ215UwE6IG1sBuvJqmw9SHavFmYSJ+Q3ZbWXgDrrTmEYF L/I3jMZvATQC5eaFDQTrFPTFt+B/797KLby8qAfSQaCiXdqOfwPl1iGPqbw9T/xhBRii Cpg121zR/zX0Y2G5jDAwx+y5Wm6rRZRHcx9+LN0TJQDF4i1jXp6bnnwdlscdim2SdbeI CWDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id:arc-authentication-results; bh=6SLDyWoiSbiQ0rVzrToA9C65ISpldPJ3ugkgU6vr724=; b=VR7/sHopp4G3rpJrhrMN3RaRtOg6IASLM1Y/T+irtmCLJMdtGzgyCCw4iqx2NXA8QM yRZd75Fs+PEDpsbBKyXlNG+hwErGPNX+GkORTod6iuTLMBucbsLUVL7cgCyjvuB0mFWK ZDlEliPipwCDCZSZK5BgUrMF4SUHBgNk7/acO1bGe5hnvQh8Qz9Bz6O+cktsR6rRNCYY llgTrvFvPFPjMVILCN2TgO1UtannxOTWIv6g8d9/8FbnQ1v0kP/2C/LPVLoHBftB27Fy ObK3zqqUvunblQoW8VAFt6C5NvdJlIAaZxzGf0kbeZChcQUX8uaztzTUaPS7KcWrE+BU AoYw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5-v6si10997915pll.449.2018.05.02.01.01.29; Wed, 02 May 2018 01:01:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751326AbeEBIAJ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 2 May 2018 04:00:09 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:48080 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750920AbeEBIAF (ORCPT ); Wed, 2 May 2018 04:00:05 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Wed, 02 May 2018 02:00:04 -0600 Message-Id: <5AE9700002000078001C0064@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.0.0 Date: Wed, 02 May 2018 02:00:00 -0600 From: "Jan Beulich" To: "Boris Ostrovsky" Cc: "xen-devel" , "Juergen Gross" , , Subject: Re: [Xen-devel] [PATCH 1/4] xen/PVH: Replace GDT_ENTRY with explicit constant References: <20180430162339.17143-1-boris.ostrovsky@oracle.com> <20180430162339.17143-2-boris.ostrovsky@oracle.com> In-Reply-To: <20180430162339.17143-2-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 30.04.18 at 18:23, wrote: > Latest binutils release (2.29.1) will no longer allow proper computation > of GDT entries on 32-bits, with warning: > > arch/x86/xen/xen-pvh.S: Assembler messages: > arch/x86/xen/xen-pvh.S:150: Warning: shift count out of range (32 is not between 0 and 31) > arch/x86/xen/xen-pvh.S:150: Warning: shift count out of range (40 is not between 0 and 31) > arch/x86/xen/xen-pvh.S:150: Warning: shift count out of range (32 is not between 0 and 31) > arch/x86/xen/xen-pvh.S:152: Warning: shift count out of range (32 is not between 0 and 31) > arch/x86/xen/xen-pvh.S:152: Warning: shift count out of range (40 is not between 0 and 31) > arch/x86/xen/xen-pvh.S:152: Warning: shift count out of range (32 is not between 0 and 31) I think this is a mis-configured binutils build - even if targeting 32-bit only, it should allow 64-bit arithmetic (i.e. be configured with --enable-64-bit-bfd). Note how, for example, this .long 1 << 32, 0x10000 * 0x10000 .quad 1 << 32, 0x10000 * 0x10000 assembles consistently with a warning on _both_ values on the first line with what I'd call a properly configured binutils build, but errors only on the shift expressions on each line for an (imo) improperly configured one. The only viable alternative would imo be to simply disallow .quad without --enable-64-bit-bfd, but I guess that would break a number of consumers. In any event I'd like to suggest to drop this patch. Jan