Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1810473ybn; Thu, 26 Sep 2019 02:33:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkTfC2VGfYCmLaoBxsA3eRcd9DGR/d3ITKIEL0bWssQyUmqFvclQ0ng7CUR+EoX60zPXos X-Received: by 2002:a17:906:1c03:: with SMTP id k3mr2182188ejg.32.1569490398773; Thu, 26 Sep 2019 02:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569490398; cv=none; d=google.com; s=arc-20160816; b=vgdfcuP6tsISR9sMAKWiuYIkVlI7jIL1b9v9nl6V3yK3GiwyP6dVO5ZGhWLjHctj/g UaT2CHuwh5Xu1TRifDlwZKr9IYr4EvYa6jidCOl3Zei/WktCpqPa46q2Ow7BEJpkJahC 6BC2Ie1kO1jdwPu4S+R3uHoQxxpP++Fxclsry5QR5tsLr2qxkuBgQfald27gEqA1eA1V 1z0AZcNGXADUWQK5ecXCUuHC/PssKVTDS/g+NkjWu0NT8sqg7kewfW1sKFfEcvhnnZVT SigvY+m+pwcqzxYGELfZNx95CFyIf34uFS0RsyYgnDqc6F57JOlRH1lRHRdDz+zC/SLP OwHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=KFMcKSB28vicD7mJB9VGf2zDH2JPjeINiiBxo90LMbQ=; b=KMC0O+sNe0oFVjpdrbSfxYXWIK6q/fIPrNChQQ3/wnE3B0P+Go16Azvw5D3VSNNUBz XH9lqAGh3Bs9DCJAg+5xN9vbESKmp8pdvU6b0y0Ik1ovI/Lq29KXz+80vazl0GDpTFKr qqxO077+a8+N7ybhLxCsOkgtYJ7/p6/vqi7rIoDX8E7G1tNxGApPw2DAHD0pDCtDLAXF cBEaMYwan15GA6he+gnxxs1KL7UqfRrGz6WiGiA890Tk/wrEixqaPGKAMOzUNi4w/sGG Z/EH/MWen5afooKu9H1ScrQ9k1nUvNc/3TKyE5O4ocXXQshRcVM9//j0KzjdS23bPPgt JJWw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si723490ejc.245.2019.09.26.02.32.55; Thu, 26 Sep 2019 02:33:18 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406356AbfIYNRm (ORCPT + 99 others); Wed, 25 Sep 2019 09:17:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33946 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406332AbfIYNRm (ORCPT ); Wed, 25 Sep 2019 09:17:42 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D25689AC6 for ; Wed, 25 Sep 2019 13:17:42 +0000 (UTC) Received: by mail-wr1-f70.google.com with SMTP id v18so2366227wro.16 for ; Wed, 25 Sep 2019 06:17:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=KFMcKSB28vicD7mJB9VGf2zDH2JPjeINiiBxo90LMbQ=; b=OquYN/Fj6UiJB+O6KRkytQ6lem/N4OLBjdIDgSHelOv4gV62Wdd5rzRKf+0n0YUI58 pWv0bpK+dygvGxUgCP1IV6IsiJAXKR1mTI5AvhYbzfTRSrrIDxOLCqgNP9ImGRrIQlXA v5p+n65FZzEjLg21o5wVtHDPnpFVGYYVQs2i+A3BhOFgvOccQBGmMZLwINa9Sg/cRAHl GAxqJj1uNP/aNMEsXlLs9e7IdSSZwO4bIsl7+FTvr9cr8HC0zFWuBmDngERiVlNhrLeW /aszBxu3tXeIsiN37OmZb2PQcWQmYLsrZRh/OGayA7CqW9WEHI8oIiX7LFy6TfNb8KMQ kb4w== X-Gm-Message-State: APjAAAUvTXRcKGs629hAijZxhAJ6o+7gK6g7LQDU9J1ZiMLYa/3XHfsf 6TMlsiS4OyCrItxSOz82Vp1Mquvs7PIGJo4TwDzJ8Kj8fDTh6cuXiUyX7dtVy8+tKATcGkp8htP yZMtKOtttOK1vMUPKYcIDRd7U X-Received: by 2002:a1c:a851:: with SMTP id r78mr7765925wme.166.1569417460905; Wed, 25 Sep 2019 06:17:40 -0700 (PDT) X-Received: by 2002:a1c:a851:: with SMTP id r78mr7765898wme.166.1569417460667; Wed, 25 Sep 2019 06:17:40 -0700 (PDT) Received: from vitty.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id l10sm7860611wrh.20.2019.09.25.06.17.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 06:17:39 -0700 (PDT) From: Vitaly Kuznetsov To: Tianyu Lan , "kvm\@vger.kernel.org" Cc: "linux-kernel\@vger.kernel.org" , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Sean Christopherson , Jim Mattson Subject: RE: [PATCH] KVM: vmx: fix a build warning in hv_enable_direct_tlbflush() on i386 In-Reply-To: References: <20190925085304.24104-1-vkuznets@redhat.com> Date: Wed, 25 Sep 2019 15:17:39 +0200 Message-ID: <87y2yc7bws.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tianyu Lan writes: > There is another warning in the report. > > arch/x86/kvm/vmx/vmx.c: In function 'hv_enable_direct_tlbflush': > arch/x86/kvm/vmx/vmx.c:507:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] > evmcs->hv_vm_id = (u64)vcpu->kvm; > ^ > The following change can fix it. > - evmcs->hv_vm_id = (u64)vcpu->kvm; > + evmcs->hv_vm_id = (unsigned long)vcpu->kvm; > evmcs->hv_enlightenments_control.nested_flush_hypercall = 1; > Missed that one (and I have to admit I haven't compiled my patch on i386 :-). Will send v2 with this included, thanks! -- Vitaly