Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2171467pxa; Mon, 17 Aug 2020 02:52:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl3Pe0MAo+rHSS+h3oqPr2OLPo0IlHr4CjjiF+VaItUACNAW0Rj8vpVU4L0JifOtRyQXfM X-Received: by 2002:aa7:da46:: with SMTP id w6mr14304270eds.7.1597657939331; Mon, 17 Aug 2020 02:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597657939; cv=none; d=google.com; s=arc-20160816; b=npEPDG1APo7zKp7GHdczlQOnce94GPk/pEW/911aL9VQ8hSzolswqkBbrYSHtScIbW EyGK/zTlpixY4b/rZruMsH2G6chfLtk7h+rxI00KIIQWDO6dZAGm1pOGb4tYUUxJRkZT enNPsCwY5L4NeH2qftqnsbabKlfejiAaLjEjSO/5NnLAQ6OsFLjW1qyfPO46IsseBKOc oZsIy7daTio6AeebhhIkJBJ0FaG93f4ZbfX5g4y7ae/9dxrVsOJkp6vcZoht641kZtFC ZKSxO2DnyNSPsPXUduB2ncG0iG1sQfNsMLpLUBqJ/wN544fJKDO7O0Vq17zr+BAPARHC Uu8w== 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=f6BBEJT3YvjRYcoIOeIChakabV8ssbw+7qxduIDb8r8=; b=xmqOObwJKi/UEtLPUiBhpCLsW9QzT6nfF6xL56ZEsK3ahO1aL4Fas8vR94Vl8gYNN3 ACESgcd7MOpyNeO8TLRY4BPcZwCfl/5cJJUYSKghu+bGzli4B0TJ6DLN3lI0Xd7Vl79B JaubhlsI+SRjuLdwEfhKD21Jk2Yu410fMGd9qt++65YGMHLrqpVnabjSThX7c9URDfry wo9qegjIwrwLHJ4HEEMmEiO7XZXTjTBMtQqUdfU2/I/ILHC9x5cC+FRFBE+thYnc2gZy eKG6SxzEYCTIC77zHQWX3yGu3N5rl10ZZ/NRIDj5UmyXpRMvfIdELb6tpKfdOACN7fZa +rGA== 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 h14si10465181eds.339.2020.08.17.02.51.55; Mon, 17 Aug 2020 02:52:19 -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 S1726752AbgHQJtR (ORCPT + 99 others); Mon, 17 Aug 2020 05:49:17 -0400 Received: from foss.arm.com ([217.140.110.172]:52262 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgHQJtP (ORCPT ); Mon, 17 Aug 2020 05:49:15 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ECBB631B; Mon, 17 Aug 2020 02:49:14 -0700 (PDT) Received: from [192.168.1.179] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 84E493F66B; Mon, 17 Aug 2020 02:49:13 -0700 (PDT) Subject: Re: [PATCH 2/3] KVM: uapi: Remove KVM_DEV_TYPE_ARM_PV_TIME in kvm_device_type To: zhukeqian , Marc Zyngier Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Catalin Marinas , Will Deacon , James Morse , Suzuki K Poulose , wanghaibin.wang@huawei.com References: <20200817033729.10848-1-zhukeqian1@huawei.com> <20200817033729.10848-3-zhukeqian1@huawei.com> <4cd543a2-4d5b-882c-38d6-f5055512f0dc@huawei.com> From: Steven Price Message-ID: <72e34f84-5bea-8f69-6699-29e2970c80b4@arm.com> Date: Mon, 17 Aug 2020 10:49:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <4cd543a2-4d5b-882c-38d6-f5055512f0dc@huawei.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/08/2020 09:43, zhukeqian wrote: > 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. Sorry about that, this got refactored so many times I guess I lost track of what was actually needed and this hunk remained when it should have been removed. I would hope that I'm the only one who has any userspace code which uses this, but I guess we should still be cautious since this has been in several releases now. Steve