From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38A62C2D0DB for ; Fri, 24 Jan 2020 21:30:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 148682071A for ; Fri, 24 Jan 2020 21:30:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbgAXVaa (ORCPT ); Fri, 24 Jan 2020 16:30:30 -0500 Received: from mga12.intel.com ([192.55.52.136]:48886 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgAXVaa (ORCPT ); Fri, 24 Jan 2020 16:30:30 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2020 13:30:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,358,1574150400"; d="scan'208";a="221148350" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.202]) by orsmga008.jf.intel.com with ESMTP; 24 Jan 2020 13:30:28 -0800 Date: Fri, 24 Jan 2020 13:30:28 -0800 From: Sean Christopherson To: Randy Dunlap Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , KVM Subject: Re: linux-next: Tree for Jan 24 (kvm) Message-ID: <20200124213027.GP2109@linux.intel.com> References: <20200124173302.2c3228b2@canb.auug.org.au> <38d53302-b700-b162-e766-2e2a461fc569@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <38d53302-b700-b162-e766-2e2a461fc569@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-next-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On Fri, Jan 24, 2020 at 12:51:31PM -0800, Randy Dunlap wrote: > On 1/23/20 10:33 PM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20200123: > > > > The kvm tree gained a conflict against Linus' tree. > > > > on i386: > > ../arch/x86/kvm/x86.h:363:16: warning: right shift count >= width of type [-Wshift-count-overflow] Jim, This is due to using "unsigned long data" for kvm_dr7_valid() along with "return !(data >> 32);" to check for bits being set in 63:32. Any objection to fixing the issue by making @data a u64? Part of me thinks that's the proper behavior anyways, i.e. the helper is purely a reflection of the architectural requirements, the caller is responsible for dropping bits appropriately based on the current mode. > > > -- > ~Randy > Reported-by: Randy Dunlap