Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2245754imm; Thu, 7 Jun 2018 07:38:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJCchvTOJQJcNYyic+LHosQ6uTcMPVvfAQk8fElfDR4hzHQ1MZrUA6FI+fNMeClz9Pu8Fqy X-Received: by 2002:a17:902:854a:: with SMTP id d10-v6mr2437325plo.106.1528382313535; Thu, 07 Jun 2018 07:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528382313; cv=none; d=google.com; s=arc-20160816; b=Oiduk4Z69zkuBoFLHrbbcDzmT+8PZz+gCkj5IqvCbxkqeUbCT04Zej+jrglDb2pHR3 89ZYTHO8b1jfloxPV2oiHzKgG7ZMG3LIB5cJLpiReR9y1nfOWeoNIX/R/JHBqTx0IJUl NcQy4BfxJ5TD+913oOOVSAwaEMopm2TItRFqCinKMjw6MIX7w12+IMKYYApkYF2atAYs LBlBEwAolSU58vL88xabVwkl+ZPfEqp1qIL23tGSQdxs5n94Ycsnx8EY7PzJS7Np3Ov1 2EZHCJXKIvXDL4UKmO6p5wFbdw2CYkb38Q3HhPSxVKWHPY8d4T75eHzdWK41oFTLKxCI ujlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=777LC8VAZQkoQj8PA04HuQu48X9xDia0j2FFyYcVpeM=; b=PT+q8OcfHPN2DYC+z4wxZ4oriora4E8lK+3HqhBs8nnEtoiwwQpdGbADRUu2491Rh1 p1Xb5C7rPBQ4J8eKzLe83SE0skIB45iEqrxjipArbQjC96ARosqMMKA7TRZUb6wS3ARs ziteZO3A/W4iloUycSkLsFbpJLeenbxU6DB6s15GtsHe+dFBnTEtw19Itv/XnxFxm+Mr BrMOMV7jtX6GtrHUN8WDHYuWXxE9xeE9GNIT2t/bYB6FNGo0RPuh2CEfDTilujxK41ay h1lD30/hiD19kC/+dOAB9OAoK8MjKtaAItKf7Q59Bt70UjjOiZ13TcaYKHxnJKA7mWb1 ZATQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si54097247plz.364.2018.06.07.07.38.19; Thu, 07 Jun 2018 07:38:33 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933873AbeFGOhM (ORCPT + 99 others); Thu, 7 Jun 2018 10:37:12 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40420 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933688AbeFGOgm (ORCPT ); Thu, 7 Jun 2018 10:36:42 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbz-0005Zw-UF; Thu, 07 Jun 2018 15:10:00 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvay-0002j6-D9; Thu, 07 Jun 2018 15:08:56 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Paolo Bonzini" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 037/410] KVM: x86: rename update_db_bp_intercept to update_bp_intercept In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Paolo Bonzini commit a96036b8ef7df9f10cd575c0d78359bd33188e8e upstream. Because #DB is now intercepted unconditionally, this callback only operates on #BP for both VMX and SVM. Signed-off-by: Paolo Bonzini [carnil: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/svm.c | 2 +- arch/x86/kvm/vmx.c | 2 +- arch/x86/kvm/x86.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -682,7 +682,7 @@ struct kvm_x86_ops { void (*vcpu_load)(struct kvm_vcpu *vcpu, int cpu); void (*vcpu_put)(struct kvm_vcpu *vcpu); - void (*update_db_bp_intercept)(struct kvm_vcpu *vcpu); + void (*update_bp_intercept)(struct kvm_vcpu *vcpu); int (*get_msr)(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata); int (*set_msr)(struct kvm_vcpu *vcpu, struct msr_data *msr); u64 (*get_segment_base)(struct kvm_vcpu *vcpu, int seg); --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -4353,7 +4353,7 @@ static struct kvm_x86_ops svm_x86_ops = .vcpu_load = svm_vcpu_load, .vcpu_put = svm_vcpu_put, - .update_db_bp_intercept = update_bp_intercept, + .update_bp_intercept = update_bp_intercept, .get_msr = svm_get_msr, .set_msr = svm_set_msr, .get_segment_base = svm_get_segment_base, --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -8932,7 +8932,7 @@ static struct kvm_x86_ops vmx_x86_ops = .vcpu_load = vmx_vcpu_load, .vcpu_put = vmx_vcpu_put, - .update_db_bp_intercept = update_exception_bitmap, + .update_bp_intercept = update_exception_bitmap, .get_msr = vmx_get_msr, .set_msr = vmx_set_msr, .get_segment_base = vmx_get_segment_base, --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -6732,7 +6732,7 @@ int kvm_arch_vcpu_ioctl_set_guest_debug( */ kvm_set_rflags(vcpu, rflags); - kvm_x86_ops->update_db_bp_intercept(vcpu); + kvm_x86_ops->update_bp_intercept(vcpu); r = 0;