Lines Matching refs:vector
435 void kvm_exit_unexpected_exception(int vector, uint64_t ec, bool valid_ec) in kvm_exit_unexpected_exception() argument
437 ucall(UCALL_UNHANDLED, 3, vector, ec, valid_ec); in kvm_exit_unexpected_exception()
471 void route_exception(struct ex_regs *regs, int vector) in route_exception() argument
477 switch (vector) { in route_exception()
497 if (handlers && handlers->exception_handlers[vector][ec]) in route_exception()
498 return handlers->exception_handlers[vector][ec](regs); in route_exception()
501 kvm_exit_unexpected_exception(vector, ec, valid_ec); in route_exception()
512 void vm_install_sync_handler(struct kvm_vm *vm, int vector, int ec, in vm_install_sync_handler() argument
517 assert(VECTOR_IS_SYNC(vector)); in vm_install_sync_handler()
518 assert(vector < VECTOR_NUM); in vm_install_sync_handler()
520 handlers->exception_handlers[vector][ec] = handler; in vm_install_sync_handler()
523 void vm_install_exception_handler(struct kvm_vm *vm, int vector, in vm_install_exception_handler() argument
528 assert(!VECTOR_IS_SYNC(vector)); in vm_install_exception_handler()
529 assert(vector < VECTOR_NUM); in vm_install_exception_handler()
530 handlers->exception_handlers[vector][0] = handler; in vm_install_exception_handler()