mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] svm: Add warning message for AVIC IPI invalid target
@ 2019-01-22 10:24 Suthikulpanit, Suravee
  2019-01-25 17:51 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Suthikulpanit, Suravee @ 2019-01-22 10:24 UTC (permalink / raw)
  To: linux-kernel, kvm, x86
  Cc: joro, rkrcmar, pbonzini, tglx, mingo, bp, hpa, Suthikulpanit, Suravee

From: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>

Print warning message when IPI target ID is invalid due to one of
the following reasons:
  * In logical mode: cluster > max_cluster (64)
  * In physical mode: target > max_physical (512)
  * Address is not present in the physical or logical ID tables

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
---
 arch/x86/kvm/svm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index a157ca5b6869..2aff835a65ed 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -4526,6 +4526,8 @@ static int avic_incomplete_ipi_interception(struct vcpu_svm *svm)
 		break;
 	}
 	case AVIC_IPI_FAILURE_INVALID_TARGET:
+		WARN_ONCE(1, "Invalid IPI target: index=%u, vcpu=%d, icr=%#0x:%#0x\n",
+			  index, svm->vcpu.vcpu_id, icrh, icrl);
 		break;
 	case AVIC_IPI_FAILURE_INVALID_BACKING_PAGE:
 		WARN_ONCE(1, "Invalid backing page\n");
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-25 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 10:24 [PATCH] svm: Add warning message for AVIC IPI invalid target Suthikulpanit, Suravee
2019-01-25 17:51 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®