Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3892014imu; Mon, 10 Dec 2018 09:24:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/VPwJ6DYIgj/FNLdKQ3VinKebtSvmyJOJyxGS2riIKQtL4rIDN8euSPud7ufjbjbzpU2CGh X-Received: by 2002:a63:504d:: with SMTP id q13mr11760992pgl.319.1544462681033; Mon, 10 Dec 2018 09:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544462681; cv=none; d=google.com; s=arc-20160816; b=I9uTVUW3JeItVMqy0wISJ6WouWephtAi8geKi7Dd9XPBpSoxd43VZ0QViwx0lqsxSI P1KzmSPlTu/j88xqU2GAnbOPWz/6V+w9DGgS89m3tpYWwQfmuz/P1z9/y8NdRBvCrGs9 iMJCPTbtW4U0XvJKezbHf+XVBrZEUitpLuepqzuGHdo2OT4bWz4UC75uS3YVXF0EPlao TXTcaErZKUG7vIr0HQdHmacv0cWQgGbhmSbnD0i9RLKjWmLL2L03wJVw8rKTi/2CB+rN PGaNG1w6aRKmQjyCA+eqab3Uob2QeAj6q7RkSUoN4/28B0rsK69Becm76z2bhtceM6wS kkvQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hbiGOJddI6k1XWdI6hCtkccJP/w/wO+VVNFF8YRMNGY=; b=AAk6xwPgDpBx44WKKfp6wN/s08UEqP1zqokuzFN56KzMt7+mOhdwuiIW8LiY2OMxGu RO0BkUF+X3IyK5m9t3QfCAvxSPHF1xtUGZjzyAjEpzSxU4OH66Hc3sG+enmbgmuK3nI/ kw3QV8pAjVPzJbNywA8qLvePf031EDcFaQ89axd2vuc6x962K1uZm1mRWk6ruqRo7xw6 d79zL8OqtR83QPjMO6NznQwl+JMKH7nOl+NP4MndHYN/GaxNHHdmlzUHMIiDJjbc1AIS 8CaWAe+nevbJ0auYhAoNx+vIFdEJO4KAkZASx2fvEQbKbqhcDxKduye4aAawvIxtG7TB ZOfg== 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 c11si10060410pgj.255.2018.12.10.09.24.24; Mon, 10 Dec 2018 09:24:41 -0800 (PST) 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 S1729216AbeLJRWW (ORCPT + 99 others); Mon, 10 Dec 2018 12:22:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49484 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729199AbeLJRWS (ORCPT ); Mon, 10 Dec 2018 12:22:18 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 179052D7F8; Mon, 10 Dec 2018 17:22:18 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 90A1E53C6B; Mon, 10 Dec 2018 17:22:14 +0000 (UTC) From: Vitaly Kuznetsov To: kvm@vger.kernel.org Cc: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , linux-kernel@vger.kernel.org, Roman Kagan , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , x86@kernel.org, "Michael Kelley (EOSG)" , Eduardo Habkost Subject: [PATCH v2 5/7] x86/kvm/hyper-v: Drop KVM_CAP_HYPERV_STIMER_DIRECT Date: Mon, 10 Dec 2018 18:21:57 +0100 Message-Id: <20181210172159.410-6-vkuznets@redhat.com> In-Reply-To: <20181210172159.410-1-vkuznets@redhat.com> References: <20181210172159.410-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 10 Dec 2018 17:22:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly introduced KVM_GET_SUPPORTED_HV_CPUID covers Direct Mode stimers feature so we can drop KVM_CAP_HYPERV_STIMER_DIRECT and reuse its number. Signed-off-by: Vitaly Kuznetsov --- - This patch only makes sense befor 4.21 merge window, disregard if it doesn't make it in time. --- arch/x86/kvm/x86.c | 1 - include/uapi/linux/kvm.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 142776435166..67ba42929c11 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2997,7 +2997,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_HYPERV_TLBFLUSH: case KVM_CAP_HYPERV_SEND_IPI: case KVM_CAP_HYPERV_ENLIGHTENED_VMCS: - case KVM_CAP_HYPERV_STIMER_DIRECT: case KVM_CAP_HYPERV_CPUID: case KVM_CAP_PCI_SEGMENT: case KVM_CAP_DEBUGREGS: diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 9d0038eae002..a9121c9bada5 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -975,8 +975,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_HYPERV_ENLIGHTENED_VMCS 163 #define KVM_CAP_EXCEPTION_PAYLOAD 164 #define KVM_CAP_ARM_VM_IPA_SIZE 165 -#define KVM_CAP_HYPERV_STIMER_DIRECT 166 -#define KVM_CAP_HYPERV_CPUID 167 +#define KVM_CAP_HYPERV_CPUID 166 #ifdef KVM_CAP_IRQ_ROUTING -- 2.19.2