Lines Matching refs:vector
332 void kvm_exit_unexpected_exception(int vector, uint64_t ec, bool valid_ec) in kvm_exit_unexpected_exception() argument
334 ucall(UCALL_UNHANDLED, 3, vector, ec, valid_ec); in kvm_exit_unexpected_exception()
368 void route_exception(struct ex_regs *regs, int vector) in route_exception() argument
374 switch (vector) { in route_exception()
394 if (handlers && handlers->exception_handlers[vector][ec]) in route_exception()
395 return handlers->exception_handlers[vector][ec](regs); in route_exception()
398 kvm_exit_unexpected_exception(vector, ec, valid_ec); in route_exception()
409 void vm_install_sync_handler(struct kvm_vm *vm, int vector, int ec, in vm_install_sync_handler() argument
414 assert(VECTOR_IS_SYNC(vector)); in vm_install_sync_handler()
415 assert(vector < VECTOR_NUM); in vm_install_sync_handler()
417 handlers->exception_handlers[vector][ec] = handler; in vm_install_sync_handler()
420 void vm_install_exception_handler(struct kvm_vm *vm, int vector, in vm_install_exception_handler() argument
425 assert(!VECTOR_IS_SYNC(vector)); in vm_install_exception_handler()
426 assert(vector < VECTOR_NUM); in vm_install_exception_handler()
427 handlers->exception_handlers[vector][0] = handler; in vm_install_exception_handler()