Lines Matching refs:vector
427 void kvm_exit_unexpected_exception(int vector, uint64_t ec, bool valid_ec) in kvm_exit_unexpected_exception() argument
429 ucall(UCALL_UNHANDLED, 3, vector, ec, valid_ec); in kvm_exit_unexpected_exception()
463 void route_exception(struct ex_regs *regs, int vector) in route_exception() argument
469 switch (vector) { in route_exception()
489 if (handlers && handlers->exception_handlers[vector][ec]) in route_exception()
490 return handlers->exception_handlers[vector][ec](regs); in route_exception()
493 kvm_exit_unexpected_exception(vector, ec, valid_ec); in route_exception()
504 void vm_install_sync_handler(struct kvm_vm *vm, int vector, int ec, in vm_install_sync_handler() argument
509 assert(VECTOR_IS_SYNC(vector)); in vm_install_sync_handler()
510 assert(vector < VECTOR_NUM); in vm_install_sync_handler()
512 handlers->exception_handlers[vector][ec] = handler; in vm_install_sync_handler()
515 void vm_install_exception_handler(struct kvm_vm *vm, int vector, in vm_install_exception_handler() argument
520 assert(!VECTOR_IS_SYNC(vector)); in vm_install_exception_handler()
521 assert(vector < VECTOR_NUM); in vm_install_exception_handler()
522 handlers->exception_handlers[vector][0] = handler; in vm_install_exception_handler()