All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: selftests: Rename vm_handle_exception in evmcs test
@ 2021-06-04 18:18 ` Ricardo Koller
  0 siblings, 0 replies; 20+ messages in thread
From: Ricardo Koller @ 2021-06-04 18:18 UTC (permalink / raw)
  To: kvmarm, kvm
  Cc: maz, pbonzini, drjones, eric.auger, Ricardo Koller, kernel test robot

Kernel test robot reports this:

> /usr/bin/ld: tools/testing/selftests/kvm/x86_64/evmcs_test.c:157: undefined reference to `vm_handle_exception'
> /usr/bin/ld: tools/testing/selftests/kvm/x86_64/evmcs_test.c:158: undefined reference to `vm_handle_exception'
> collect2: error: ld returned 1 exit status

Fix it by renaming vm_handle_exception to vm_install_vector_handler in
evmcs_test.c.

Fixes: a2bad6a990a4 ("KVM: selftests: Rename vm_handle_exception")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
---
 tools/testing/selftests/kvm/x86_64/evmcs_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/kvm/x86_64/evmcs_test.c b/tools/testing/selftests/kvm/x86_64/evmcs_test.c
index 63096cea26c6..278711723f4b 100644
--- a/tools/testing/selftests/kvm/x86_64/evmcs_test.c
+++ b/tools/testing/selftests/kvm/x86_64/evmcs_test.c
@@ -154,8 +154,8 @@ int main(int argc, char *argv[])
 
 	vm_init_descriptor_tables(vm);
 	vcpu_init_descriptor_tables(vm, VCPU_ID);
-	vm_handle_exception(vm, UD_VECTOR, guest_ud_handler);
-	vm_handle_exception(vm, NMI_VECTOR, guest_nmi_handler);
+	vm_install_vector_handler(vm, UD_VECTOR, guest_ud_handler);
+	vm_install_vector_handler(vm, NMI_VECTOR, guest_nmi_handler);
 
 	pr_info("Running L1 which uses EVMCS to run L2\n");
 
-- 
2.32.0.rc1.229.g3e70b5a671-goog


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

end of thread, other threads:[~2021-06-09 16:39 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 18:18 [PATCH] KVM: selftests: Rename vm_handle_exception in evmcs test Ricardo Koller
2021-06-04 18:18 ` Ricardo Koller
2021-06-04 21:26 ` Sean Christopherson
2021-06-04 21:26   ` Sean Christopherson
2021-06-04 23:11   ` Ricardo Koller
2021-06-04 23:11     ` Ricardo Koller
2021-06-06 10:10     ` Marc Zyngier
2021-06-06 10:10       ` Marc Zyngier
2021-06-07 16:07       ` Sean Christopherson
2021-06-07 16:07         ` Sean Christopherson
2021-06-07 16:19         ` Marc Zyngier
2021-06-07 16:19           ` Marc Zyngier
2021-06-07 16:56           ` Ricardo Koller
2021-06-07 16:56             ` Ricardo Koller
2021-06-07 17:18             ` Marc Zyngier
2021-06-07 17:18               ` Marc Zyngier
2021-06-08 22:11   ` Ricardo Koller
2021-06-08 22:11     ` Ricardo Koller
2021-06-09 16:34     ` Sean Christopherson
2021-06-09 16:34       ` Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.