Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2141425pxa; Mon, 17 Aug 2020 01:46:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnpKGNlVr/BixnexgVaq3lUbfmvdUJddzEjwrn7fIM8d+qPPzHz10fEY17lJP5sLbBywp7 X-Received: by 2002:a17:906:dbf4:: with SMTP id yd20mr14207440ejb.369.1597653995039; Mon, 17 Aug 2020 01:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597653995; cv=none; d=google.com; s=arc-20160816; b=zaLyYFAc8LIBbiCSP+w4RKxs2O55Mp2oPbc+hZiHPmYrXERNOpczbIt8IMJCv4J05M IDqND7/72SBWjU9izGCdThLZbbWa6JY2Yx/jlU13gU+C8H3v+tdTBVNR18RdW/sPH4Pa Z0PMVe0tR5qCDmDd76sZDLrBIRFdwE/vedhzUHblgq2zrXk/RcQuQSAG+Xn+4t0uHb69 9YQMIEQDcrtiNZz0JLfA0QpIi4WEjZSXW1aYM3VIE/F/AqLBscVkEBQhAu1xdhaLzrbt q3RfAFqn5n6TcVBKqD/Vush490aWAv4mapoayMEj9oOki++an5dDeoK48uIxQ3a8ytmp yvUQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=02Ch4byQkiNabMKiDw56Ounj90wwOENQBgsxyUfkYyE=; b=W7HO7CX4qefv03bzEc996YLXLYJySpO3sJvkrpXZ/O0+SOAVhlop0dhutMElqEuVyh PmTDYD5m9BcODOvVmi8eMkpxJUbftQIjZ6rWRg+v2Olqn2LgizW7vUwnfO7hmmBC79WI gs6UfrReATkeW69UI8XpmTwrj7ZXHz4bpglPoxeGz7s282Rg2FUeEydevOuHqzTvPXGD R74AvkWireiEFwVOzs/4KS55rtmqmCweN9CaSQ3NRTMpYBCZNUu3zfeQ+jk3CARjUERp GaID3so7Jsmgxx6+ooce+o5iDdEJVKWzpdP2C2gBlWs7yaltzThcOLBifqKKFiMDbMAg 3HjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si10308958ejj.109.2020.08.17.01.46.12; Mon, 17 Aug 2020 01:46:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727120AbgHQInY (ORCPT + 99 others); Mon, 17 Aug 2020 04:43:24 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47376 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726544AbgHQInX (ORCPT ); Mon, 17 Aug 2020 04:43:23 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B2129354BE937E759B8A; Mon, 17 Aug 2020 16:43:20 +0800 (CST) Received: from [10.174.187.22] (10.174.187.22) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 17 Aug 2020 16:43:14 +0800 Subject: Re: [PATCH 2/3] KVM: uapi: Remove KVM_DEV_TYPE_ARM_PV_TIME in kvm_device_type To: Marc Zyngier References: <20200817033729.10848-1-zhukeqian1@huawei.com> <20200817033729.10848-3-zhukeqian1@huawei.com> CC: , , , , Catalin Marinas , Will Deacon , James Morse , Suzuki K Poulose , "Steven Price" , From: zhukeqian Message-ID: <4cd543a2-4d5b-882c-38d6-f5055512f0dc@huawei.com> Date: Mon, 17 Aug 2020 16:43:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.187.22] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 2020/8/17 15:39, Marc Zyngier wrote: > On 2020-08-17 04:37, Keqian Zhu wrote: >> ARM64 PV-time ST is configured by userspace through vCPU attribute, >> and KVM_DEV_TYPE_ARM_PV_TIME is unused. >> >> Signed-off-by: Keqian Zhu >> --- >> include/uapi/linux/kvm.h | 2 -- >> tools/include/uapi/linux/kvm.h | 2 -- >> 2 files changed, 4 deletions(-) >> >> diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h >> index 4fdf303..9a6b97e 100644 >> --- a/include/uapi/linux/kvm.h >> +++ b/include/uapi/linux/kvm.h >> @@ -1258,8 +1258,6 @@ enum kvm_device_type { >> #define KVM_DEV_TYPE_ARM_VGIC_ITS KVM_DEV_TYPE_ARM_VGIC_ITS >> KVM_DEV_TYPE_XIVE, >> #define KVM_DEV_TYPE_XIVE KVM_DEV_TYPE_XIVE >> - KVM_DEV_TYPE_ARM_PV_TIME, >> -#define KVM_DEV_TYPE_ARM_PV_TIME KVM_DEV_TYPE_ARM_PV_TIME >> KVM_DEV_TYPE_MAX, >> }; >> >> diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h >> index 4fdf303..9a6b97e 100644 >> --- a/tools/include/uapi/linux/kvm.h >> +++ b/tools/include/uapi/linux/kvm.h >> @@ -1258,8 +1258,6 @@ enum kvm_device_type { >> #define KVM_DEV_TYPE_ARM_VGIC_ITS KVM_DEV_TYPE_ARM_VGIC_ITS >> KVM_DEV_TYPE_XIVE, >> #define KVM_DEV_TYPE_XIVE KVM_DEV_TYPE_XIVE >> - KVM_DEV_TYPE_ARM_PV_TIME, >> -#define KVM_DEV_TYPE_ARM_PV_TIME KVM_DEV_TYPE_ARM_PV_TIME >> KVM_DEV_TYPE_MAX, >> }; > > No. You can't drop anything from UAPI, used or not. Doing so will > break the compilation of any userspace that, for any reason, references > this value. We cannot reuse this value in the future either, as it would > create a we wouldn't know which device to create. > > It is pretty unfortunate that PV time has turned into such a train wreck, > but that's what we have now, and it has to stay. Well, I see. It is a sad thing indeed. Thanks, Keqian