Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3741331imm; Mon, 18 Jun 2018 03:20:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKKt+yE8ehAXms2kM85X7Z+S2h52XUeEMpMKSXaUo7OmcMPwG576x7zM5llZmsTcwVKINs2 X-Received: by 2002:a65:4985:: with SMTP id r5-v6mr10466503pgs.110.1529317205207; Mon, 18 Jun 2018 03:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529317205; cv=none; d=google.com; s=arc-20160816; b=nRW4MhlE1KZfXddtK/1uz4EzJkddGWP0ujm791Kn3SIwCZkBLGFbzVFUcipGXdlulF 3hxVyBzTNnB7d7/Nn5RgE5TS3dM4JO5fnRdACtHfVfHtPkFlWcc9UAS5vb4MPMzmhhj7 Tgfriw4yVYiIzYAMxqRzsinC9J1ym0rtup2R9o4/kLSgrVhgbmB+o6EQWZBySeqOEFcH wYClpIwNWU/UmZjwsV+zOtMTXZUZzruXwsudv8kareW0aoeH0dvgjonoUfNttQwrAJ44 I4FerZrJl/DSgGLs2ihGq53FheEem9Vi7Iit38uuEvEcWOPTNdc7p96hoIIVf2X5OOis 0E3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lMn2aOhE0vl5qiisEwIeYNOQZMy563kAqD3XwdWTL7g=; b=bEUe115kKcHKU8KvWb16fEpgG1sTRwYQ1KVu3d4rCTgS1eOcLshcrVO1tJw84qSgmF FJwSgNpJyBxp/UX87TbAiyazHVb3S8n+lU1DL39mc3EHPzFm9ooO3SCqLn7zVt/CNrqD bjjN9vXywsDfAD8OIw9VhnuDML0YhRkv4I6oWXCqV0hUuaLA1tplVVmHP5NivgmXgzoV H9twuEAF/BOPeqelDXXf1KqudSKwXXpQWZ4pd0mx1DusrC9U1jllDbYPIk5d75dPmvsm ne3ByBaOi8GmBhZV7aU+gPDnr5Zi3mf6VNVJ4NvQjI3AGKJ2A/+sOt3jcvA4xsMcIqfH KOHQ== 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 q17-v6si13854464pff.173.2018.06.18.03.19.51; Mon, 18 Jun 2018 03:20:05 -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 S933830AbeFRIPd (ORCPT + 99 others); Mon, 18 Jun 2018 04:15:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52798 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933763AbeFRIPb (ORCPT ); Mon, 18 Jun 2018 04:15:31 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 529EDC75; Mon, 18 Jun 2018 08:15:30 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, hu huajun , Paolo Bonzini , Sasha Levin Subject: [PATCH 4.16 003/279] KVM: X86: fix incorrect reference of trace_kvm_pi_irte_update Date: Mon, 18 Jun 2018 10:09:48 +0200 Message-Id: <20180618080608.984910542@linuxfoundation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618080608.851973560@linuxfoundation.org> References: <20180618080608.851973560@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: hu huajun [ Upstream commit 2698d82e519413c6ad287e6f14b29e0373ed37f8 ] In arch/x86/kvm/trace.h, this function is declared as host_irq the first input, and vcpu_id the second, instead of otherwise. Signed-off-by: hu huajun Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/kvm/svm.c | 5 ++--- arch/x86/kvm/vmx.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -5142,9 +5142,8 @@ static int svm_update_pi_irte(struct kvm } if (!ret && svm) { - trace_kvm_pi_irte_update(svm->vcpu.vcpu_id, - host_irq, e->gsi, - vcpu_info.vector, + trace_kvm_pi_irte_update(host_irq, svm->vcpu.vcpu_id, + e->gsi, vcpu_info.vector, vcpu_info.pi_desc_addr, set); } --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -12237,7 +12237,7 @@ static int vmx_update_pi_irte(struct kvm vcpu_info.pi_desc_addr = __pa(vcpu_to_pi_desc(vcpu)); vcpu_info.vector = irq.vector; - trace_kvm_pi_irte_update(vcpu->vcpu_id, host_irq, e->gsi, + trace_kvm_pi_irte_update(host_irq, vcpu->vcpu_id, e->gsi, vcpu_info.vector, vcpu_info.pi_desc_addr, set); if (set)