Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1211059lqh; Sun, 5 May 2024 23:40:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX96QNY0P9GNrd5DTjptIFVXHuNdi0eZNjie1Va5CpMaWsxviNOeJVqV/kX3dWjv3hISEMU+L39YIMr3ox+nzqxlR7n6krP7gkJXqCc9g== X-Google-Smtp-Source: AGHT+IHShE+z7UGNEef1e72baygDWEpZAhQDdcVP6Nj9qqKqCHdBkKug77BvT6OntS+8YAUTTtzn X-Received: by 2002:a05:6808:2784:b0:3c8:3771:6cdc with SMTP id es4-20020a056808278400b003c837716cdcmr9406419oib.45.1714977646679; Sun, 05 May 2024 23:40:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714977646; cv=pass; d=google.com; s=arc-20160816; b=NeG6JGcE3XeB/vSZprNOAqV4S1j5J1zFCt2i4nNC4B+hokW/Gttio2BjpWStAk7CQY 8DNT3In9nQT988bLiCf9grqEB1S65my85/8j8byo8yOnMO7iLAq4AHFgSOSu6R4S7HJR 6nbCl67CQY5vGbN/FcGNdFq0rNDxFGUaq6l4oPO+Wy6D2sAUnpZkdcvdkbSQhZgG26SH h/rwfDMNDJWs8G0/PDrDp8iDZYDRIvL3YTyftabZjeBDQfz4KB+dvGpDwxzIZ7l9M0WM lEESqXISvrphPB7dsodVyMFFFSn8n4snlE3/j72rCowIgIzt2MJq4dDi9dtSyLZg26oD iPsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=+vIiNGz7/nSUnyUkrfDgHWmF9A2JC2J9lYHADP4TXOk=; fh=GKZIf5DV0W/a0c7raA3mr7IOfrD95zQoObvf/sxDgOQ=; b=jciVxbIhvuADmjYypncdOO7RZQO5Wjilt7rBr8SiGvrJ60A63h30dtrxCcbBwciY5F qrcdmgQYjTH5P4Eyuhh70JxXk2Xs/LyVKOdZm2ZFtQ25HaOcJD9dCRSt03DtwJP5pIO9 TcOJRUEQS6EhBWLQJvER17EyLKaJ6MLfZUs0+vfvdTeUnJmOYOWeRC5/mnmNqUol7Okr sG26zOIhGJZgjQIOGB+kDz3eax1HPLVbb/UXnG7ZzfuWWqQRuBqRqkUXEuPyzzuwz/h6 SbdmVihbNZcAs/w+6NBV/WoifrlhnLpIiYfU7N5lax8qajLxVRHzdlIavmtcx04Vh9Cs mRvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=Eyholpta; arc=pass (i=1 spf=pass spfdomain=antgroup.com dkim=pass dkdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-169369-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x11-20020a656aab000000b0061a1bb517c6si7568073pgu.864.2024.05.05.23.40.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 23:40:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169369-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=Eyholpta; arc=pass (i=1 spf=pass spfdomain=antgroup.com dkim=pass dkdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-169369-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 46C90281389 for ; Mon, 6 May 2024 06:40:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7E2A4D9EC; Mon, 6 May 2024 06:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="Eyholpta" Received: from out0-205.mail.aliyun.com (out0-205.mail.aliyun.com [140.205.0.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0FDC3BBE8; Mon, 6 May 2024 06:40:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714977635; cv=none; b=Ubl06JecTqwV3oEdUHHZhnWzqYfGozv/cRFRuEZDAQq5X6/vpLEx8DmyaKqvlwIuzZvaE/c6rJn1YTos1d3gb5iZjhNxrLVU9FQIcmMe5ywHEIThiEQ+Cjmdyqfqn9y20HWw0ooDmLC6EDnA33OUKAaDYy/S7I83XkgRlmSXpJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714977635; c=relaxed/simple; bh=b4NdyE1ZnxlIwsmiHmeEWfBCM1vM+RJZsgiLZoYAbQw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bHxnIDDTXRLpDsQwQBSDCvvkwk8OVsD4ZVPQPNuxD24IQT/ag4Vngi1uuYyBdMQLKgLVfaIc9Twdh3WpVHPT6DNu/C0dgiNZq0TzY+jeGGKHWGanCfkGvFYTqeatlhJaL2JzwvKpCRdOtQUosEQELxSH8rVLtL8iZ6NEgvsSawQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=Eyholpta; arc=none smtp.client-ip=140.205.0.205 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1714977624; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=+vIiNGz7/nSUnyUkrfDgHWmF9A2JC2J9lYHADP4TXOk=; b=EyholptaJoMYwC+thC3AixeIRt59BN07d6tRSlhLiU0q7Qo2s1K9NsfXNJH9fNLoz1CwmFQOxUb8+HhxsiUM7nm2u1Gaz7X1A0TBdCKZblNll7MWV49ajIgfEzifydtx7EZoL0PfdVHkJqC6niDk/QFNgfSbEvxAduBJm+nBt5s= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R881e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047203;MF=houwenlong.hwl@antgroup.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---.XTE-yLh_1714977303; Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.XTE-yLh_1714977303) by smtp.aliyun-inc.com; Mon, 06 May 2024 14:35:04 +0800 From: "Hou Wenlong" To: kvm@vger.kernel.org Cc: Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: [PATCH] KVM: x86: Drop unused check_apicv_inhibit_reasons() callback definition Date: Mon, 06 May 2024 14:35:02 +0800 Message-Id: <54abd1d0ccaba4d532f81df61259b9c0e021fbde.1714977229.git.houwenlong.hwl@antgroup.com> X-Mailer: git-send-email 2.31.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The check_apicv_inhibit_reasons() callback implementation was dropped in the commit b3f257a84696 ("KVM: x86: Track required APICv inhibits with variable, not callback"), but the definition removal was missed in the final version patch (it was removed in the v4). Therefore, it should be dropped, and the vmx_check_apicv_inhibit_reasons() function declaration should also be removed. Signed-off-by: Hou Wenlong --- arch/x86/include/asm/kvm_host.h | 1 - arch/x86/kvm/vmx/x86_ops.h | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 1d13e3cd1dc5..a10d7f75c126 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1702,7 +1702,6 @@ struct kvm_x86_ops { void (*enable_nmi_window)(struct kvm_vcpu *vcpu); void (*enable_irq_window)(struct kvm_vcpu *vcpu); void (*update_cr8_intercept)(struct kvm_vcpu *vcpu, int tpr, int irr); - bool (*check_apicv_inhibit_reasons)(enum kvm_apicv_inhibit reason); const unsigned long required_apicv_inhibits; bool allow_apicv_in_x2apic_without_x2apic_virtualization; void (*refresh_apicv_exec_ctrl)(struct kvm_vcpu *vcpu); diff --git a/arch/x86/kvm/vmx/x86_ops.h b/arch/x86/kvm/vmx/x86_ops.h index 502704596c83..4cea42bcb11f 100644 --- a/arch/x86/kvm/vmx/x86_ops.h +++ b/arch/x86/kvm/vmx/x86_ops.h @@ -46,7 +46,6 @@ bool vmx_apic_init_signal_blocked(struct kvm_vcpu *vcpu); void vmx_migrate_timers(struct kvm_vcpu *vcpu); void vmx_set_virtual_apic_mode(struct kvm_vcpu *vcpu); void vmx_apicv_pre_state_restore(struct kvm_vcpu *vcpu); -bool vmx_check_apicv_inhibit_reasons(enum kvm_apicv_inhibit reason); void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr); void vmx_hwapic_isr_update(int max_isr); bool vmx_guest_apic_has_interrupt(struct kvm_vcpu *vcpu); -- 2.31.1