Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp696718ybi; Tue, 16 Jul 2019 03:58:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxctQFFZoH8OzJPyJMosbwDgkzZ+DRlS3s3dYzVEDrMFB1qN4RWkbEGc/5/91tRtD6rxOc+ X-Received: by 2002:a63:3805:: with SMTP id f5mr402459pga.272.1563274735259; Tue, 16 Jul 2019 03:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563274735; cv=none; d=google.com; s=arc-20160816; b=qtoswd+I9cRuy0gddcpwfEBWqDbMsyFUIpfokIq7oI66MaWTHxNND0IDyk+mH7+A+x 7FDAKFpD1Ap/mzkZwWCPFCUiYVzSonGfRD//DHupQRrZ2LD/iYjRBfGBcWf8JmNK+djU IUVlTrtMZW+xBpCg0bcOQfYzGU5sy8ehfNvt8nGkFre5sBSRfUaxdtl4aJKl/pNdZjWy PoGgxncwoeEQLhtlrWdKQ4xzX68VcLLB6laMBta9Ay7kYuXGTVbvA1cns2TKeL4L9uqc DH+mzLN1kXFxsK5vS0qHcWGJC+eDQPmaPqaGotz0DFpebZMr9XcdnSKGU8wx02CqIfWl HHYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=zq42CeWjJqNgcR1cG2fuRv1axUyXGq+3Ou0xPcWv6Oc=; b=rlL2hEz60BF82wXOHAcxQ/atvQnVyXm+tTpw169fpIJxrc1k2/3Gh5cdITuYDhPRS2 BnEyn/dx+B4hfsUXpZ4IxliNudzanufdpKyFSOngEU+cI6JtHsNP94lAd65qRiW6cLCy Ke29WOfXiFKdBY7/lk4m+TDVcUMNubvtujBDjwcBnR5Do3u6wnopeCITh1nL/KvhcCKT pkOA5wzoZhHrYGTFKbkPewGO9mNCFuVcYRws7X/P1xh/jWlpda20YkoN7EQU093QMqhR PyeTi/00xjScUREpPGNAw2XbbF43wc0hD1eTxUtkO0lyiCDTc/mFjsBQ7dDwJEHMOlZ/ j2rg== 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 q25si20759883pfn.280.2019.07.16.03.58.38; Tue, 16 Jul 2019 03:58:55 -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 S2387452AbfGPK5P (ORCPT + 99 others); Tue, 16 Jul 2019 06:57:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:36028 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733037AbfGPK5P (ORCPT ); Tue, 16 Jul 2019 06:57:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 47441AF46; Tue, 16 Jul 2019 10:57:14 +0000 (UTC) Subject: Re: [PATCH v7 4/5] x86/paravirt: Remove const mark from x86_hyper_xen_hvm variable To: Zhenzhong Duan , linux-kernel@vger.kernel.org Cc: bp@alien8.de, sstabellini@kernel.org, tglx@linutronix.de, xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, mingo@redhat.com References: <1562846532-32152-1-git-send-email-zhenzhong.duan@oracle.com> <1562846532-32152-5-git-send-email-zhenzhong.duan@oracle.com> From: Juergen Gross Message-ID: <2433589d-a2d2-6b51-cfbd-c1141014ab93@suse.com> Date: Tue, 16 Jul 2019 12:57:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1562846532-32152-5-git-send-email-zhenzhong.duan@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.07.19 14:02, Zhenzhong Duan wrote: > .. as "nopv" support needs it to be changeable at boot up stage. > > Checkpatch report warning, so move variable declarations from > hypervisor.c to hypervisor.h > > Signed-off-by: Zhenzhong Duan > Cc: Boris Ostrovsky > Cc: Juergen Gross > Cc: Stefano Stabellini > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > --- > arch/x86/include/asm/hypervisor.h | 8 ++++++++ > arch/x86/kernel/cpu/hypervisor.c | 8 -------- > 2 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/arch/x86/include/asm/hypervisor.h b/arch/x86/include/asm/hypervisor.h > index f7b4c53..e41cbf2 100644 > --- a/arch/x86/include/asm/hypervisor.h > +++ b/arch/x86/include/asm/hypervisor.h > @@ -58,6 +58,14 @@ struct hypervisor_x86 { > bool ignore_nopv; > }; > > +extern const struct hypervisor_x86 x86_hyper_vmware; > +extern const struct hypervisor_x86 x86_hyper_ms_hyperv; > +extern const struct hypervisor_x86 x86_hyper_xen_pv; > +extern const struct hypervisor_x86 x86_hyper_kvm; > +extern const struct hypervisor_x86 x86_hyper_jailhouse; > +extern const struct hypervisor_x86 x86_hyper_acrn; > +extern struct hypervisor_x86 x86_hyper_xen_hvm; This should either stay const and be changed in patch 5, or you should adapt its definition in arch/x86/xen/enlighten_hvm.c in this patch. Juergen