To handle this system reserved exception, should I modify the linux kernel instead of using loadable kernel module? Is there any suggestions?

2016-06-01 11:08 GMT+08:00 Big Strong <fangtuo90@gmail.com>:
Virtualization exception is a fault exception caused by specific type of EPT violations. The vector is 20, which is not defined in linux kernel (traps.h), also no exception handling function is defined (traps.c). So is there any way to implement it as a LKM? As it is needed to set virtualization-exception information area and virtualization exception handler ((for example, by executing the EPTP-switching VM function), it is inflexible to implement it in linux kernel directly.