From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 722E3C55178 for ; Thu, 29 Oct 2020 12:16:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F551207BC for ; Thu, 29 Oct 2020 12:16:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VebtIo/7"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="s1tkuIrz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbgJ2MQW (ORCPT ); Thu, 29 Oct 2020 08:16:22 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33326 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726556AbgJ2MPw (ORCPT ); Thu, 29 Oct 2020 08:15:52 -0400 Date: Thu, 29 Oct 2020 12:15:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1603973750; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xKs1HzOoAjuYgKYm19j8099Mxc4VD9MsDSxYYXBQhfA=; b=VebtIo/7foG+E/TKdxrqWTwwRwqw1s3nvol6ko5LxYvtz1pp78/JkoSW5uuqzCrM3V6ngc 44R6AecQ4XNQzEu1mPN3ukc789rVNMSZXr1gBc93Ruv03mgNqozAwQOzoFV943UtDy4t7V qd8KlohkV2HAW2xUIEpfebbGNsjiAfgUxwNsN6VAldWd29/LmXnBsvtw7QRXGhr/IWpCn7 TuPpCVduIH3cGRVW0NeF2Mtt4kmO2pyUYyR77RhobY9DSLrr4vnFBKu276nSbtVUtj6fmY 9oWFXGhKAIoCitCAGTWbtk16fuKvA2a5ahVErHTodcEyvgnYY12JTI/d2Ir5ug== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1603973750; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xKs1HzOoAjuYgKYm19j8099Mxc4VD9MsDSxYYXBQhfA=; b=s1tkuIrz+EgUhX4XM4cCDQDBuWpy7pD/qEE+YF8yLjPZIpjxPwWUUMV6yq2sbL+KawK4gp X9xaPWhyTJi+crCw== From: "tip-bot2 for David Woodhouse" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/kvm: Reserve KVM_FEATURE_MSI_EXT_DEST_ID Cc: David Woodhouse , Paolo Bonzini , x86 , LKML MIME-Version: 1.0 Message-ID: <160397375001.397.5780307875241946260.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/apic branch of tip: Commit-ID: 5a169bf04cd2bfdbac967d12eb5b70915b29d7ee Gitweb: https://git.kernel.org/tip/5a169bf04cd2bfdbac967d12eb5b70915b29d7ee Author: David Woodhouse AuthorDate: Mon, 19 Oct 2020 15:55:56 +01:00 Committer: Paolo Bonzini CommitterDate: Wed, 28 Oct 2020 13:52:05 -04:00 x86/kvm: Reserve KVM_FEATURE_MSI_EXT_DEST_ID No functional change; just reserve the feature bit for now so that VMMs can start to implement it. This will allow the host to indicate that MSI emulation supports 15-bit destination IDs, allowing up to 32768 CPUs without interrupt remapping. cf. https://patchwork.kernel.org/patch/11816693/ for qemu Signed-off-by: David Woodhouse Acked-by: Paolo Bonzini Message-Id: <4cd59bed05f4b7410d3d1ffd1e997ab53683874d.camel@infradead.org> Signed-off-by: Paolo Bonzini --- Documentation/virt/kvm/cpuid.rst | 4 ++++ arch/x86/include/uapi/asm/kvm_para.h | 1 + 2 files changed, 5 insertions(+) diff --git a/Documentation/virt/kvm/cpuid.rst b/Documentation/virt/kvm/cpuid.rst index 7d81c0a..cf62162 100644 --- a/Documentation/virt/kvm/cpuid.rst +++ b/Documentation/virt/kvm/cpuid.rst @@ -92,6 +92,10 @@ KVM_FEATURE_ASYNC_PF_INT 14 guest checks this feature bit async pf acknowledgment msr 0x4b564d07. +KVM_FEATURE_MSI_EXT_DEST_ID 15 guest checks this feature bit + before using extended destination + ID bits in MSI address bits 11-5. + KVM_FEATURE_CLOCKSOURCE_STABLE_BIT 24 host will warn if no guest-side per-cpu warps are expected in kvmclock diff --git a/arch/x86/include/uapi/asm/kvm_para.h b/arch/x86/include/uapi/asm/kvm_para.h index 812e9b4..950afeb 100644 --- a/arch/x86/include/uapi/asm/kvm_para.h +++ b/arch/x86/include/uapi/asm/kvm_para.h @@ -32,6 +32,7 @@ #define KVM_FEATURE_POLL_CONTROL 12 #define KVM_FEATURE_PV_SCHED_YIELD 13 #define KVM_FEATURE_ASYNC_PF_INT 14 +#define KVM_FEATURE_MSI_EXT_DEST_ID 15 #define KVM_HINTS_REALTIME 0