diff options
author | Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> | 2019-01-22 05:24:19 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-01-25 13:11:34 -0500 |
commit | 37ef0c4414c9743ba7f1af4392f0a27a99649f2a (patch) | |
tree | 07a6419fadb8f6bfa7746c2bf6797aa9a55601bf | |
parent | de81c2f912ef57917bdc6d63b410c534c3e07982 (diff) |
svm: Add warning message for AVIC IPI invalid target
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>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/x86/kvm/svm.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
4526 | break; | 4526 | break; |
4527 | } | 4527 | } |
4528 | case AVIC_IPI_FAILURE_INVALID_TARGET: | 4528 | case AVIC_IPI_FAILURE_INVALID_TARGET: |
4529 | WARN_ONCE(1, "Invalid IPI target: index=%u, vcpu=%d, icr=%#0x:%#0x\n", | ||
4530 | index, svm->vcpu.vcpu_id, icrh, icrl); | ||
4529 | break; | 4531 | break; |
4530 | case AVIC_IPI_FAILURE_INVALID_BACKING_PAGE: | 4532 | case AVIC_IPI_FAILURE_INVALID_BACKING_PAGE: |
4531 | WARN_ONCE(1, "Invalid backing page\n"); | 4533 | WARN_ONCE(1, "Invalid backing page\n"); |