Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp205856ybi; Tue, 16 Jul 2019 19:12:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMZWWZabjp30RCp2nhVoMgYVNJ0hY4X6a2YdE0aN1l3cQDawSRwIJ/6Bx6QyCt2C6tFxMb X-Received: by 2002:a65:5cca:: with SMTP id b10mr38554540pgt.365.1563329549846; Tue, 16 Jul 2019 19:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563329549; cv=none; d=google.com; s=arc-20160816; b=q6tya9sK9Rtj57h9fosGo/bzax1qlyhZ2DaUXJScdIMK8AQ+Pr+GHssUr+Is6xzp2w 3ncy36KbJa0YxOT7w8plj0voW1iDRtNo3poE6f2l+j3u3ETU7lnLbNKYoBPbB8vNNo6V kA5xtEoKSJ+KTeENch4BeEgxIEMO2RS/Sjv4LJ6tqlLD7VRn8GvFz16qpZ/jtUsUc4Vg 3wCUr1AD3pli25U80H1H1S1dv8rUF2UfLSQxba1m+XnCIJu2xmP6OzST+3zmaV7kJJIA pFC6R8o9UHbC1J9yuTpYjGBa+LicmIOcm/MUCorqu5bc9a9pur31Lgjohzo62GndvmRc uQHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=k6OoYDpDJSEgTlR5RU9Uko7N/wO/kkXQFXDYsd2fX68=; b=ZofolnnYCCYXxAVCQRd6fLXqRdbp7K2+aoGtlcU7oNIf+7dMZn7Hvrddg9evRsmqkd w7T5BJt1TcHq304tr5uWYs9GOBPxXi3uAH7sBaexVdYG4kcUwmOQmTSaoR7Rf62L6z9G vaWgd3JOENKTk2+KaT2GxuHA/8CB+GGNQULENdeINl4RqHIWdZ4IT4labepImsXqEqWD uPQorVcOS2u5xm5+W1P5PYm6EH12hMytxlUb6Z+UIt0s38QilqowgMLv8fTmjTqGBpQL 0/qwBxikAISL5kpGvXDeVmXbzzsPKdfvCbY9BS72pllEBuQI3hQEKj+6Ig261rIir16u 1BMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=vxtR2YjG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l184si21296775pge.286.2019.07.16.19.12.13; Tue, 16 Jul 2019 19:12:29 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=vxtR2YjG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbfGQCKa (ORCPT + 99 others); Tue, 16 Jul 2019 22:10:30 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:48356 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbfGQCKa (ORCPT ); Tue, 16 Jul 2019 22:10:30 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6H28cCW063748; Wed, 17 Jul 2019 02:09:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=k6OoYDpDJSEgTlR5RU9Uko7N/wO/kkXQFXDYsd2fX68=; b=vxtR2YjGDMFfmCHNO5nY20srytuCTUahocLUmfg0L1yyjNBY0OIjy2FX580hfDkE0UC9 ycAkTN7wl7DGD031V374WGZbONFC/8FAaB2QK4vIWIbG5BiElVSMq6W2Ll4sJMciEyNM /bcI1N2eF/nUHR24KNEkmbXsnXMkXOXPKHMCb5XKSLuky/c/s3AhrmYWa5PmOjCIeZOy NnevOXgdkSkYptgJCHAGgljJnLEHyFeE4mAay6fsNiRKQCWz7EQaxiGpGWs37ZBkZ4Qa VXOJi9a5NnxMADX0x/WlUyC0sTtGmXYMiTa2BV4gTxC1F6Ijip0f2Tk3iixaYy2rZUj2 5w== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2tq6qtqtkq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jul 2019 02:09:36 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6H27n7Y037839; Wed, 17 Jul 2019 02:09:35 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 2tsmcc4suj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jul 2019 02:09:35 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6H29Ytv014962; Wed, 17 Jul 2019 02:09:34 GMT Received: from [192.168.0.8] (/116.136.20.190) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 17 Jul 2019 02:09:33 +0000 Subject: Re: [PATCH v7 4/5] x86/paravirt: Remove const mark from x86_hyper_xen_hvm variable To: Juergen Gross , 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> <2433589d-a2d2-6b51-cfbd-c1141014ab93@suse.com> From: Zhenzhong Duan Organization: Oracle Corporation Message-ID: <67261f6e-5dce-2452-a6d6-aa6ca73dfeec@oracle.com> Date: Wed, 17 Jul 2019 10:09:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <2433589d-a2d2-6b51-cfbd-c1141014ab93@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9320 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907170024 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9320 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907170025 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/7/16 18:57, Juergen Gross wrote: > 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. Ok, thanks for your suggestion. I'll choose 2nd opinion as I don't need to change descripton with that. Zhenzhong