forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Linux kernel source tree
License
MJinH/linux
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
### Fork the master linux Github repository #### - Configured a linux kernel build (make config) using the cloned tree and built the kernel. #### - Also installed any required initrd/initramfs. ![img](https://github.com/MJinH/linux/blob/6e2e58156f3a3b1ee6273fc043daaabd4580e953/images/1.png) ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/2.png) #### - Encountered “Makefile” error during configuring a linux kernel build. #### - Installed any relevant modules (e.g : libncurses-dev, pkg-config) #### - Configure was successful after installing necessary dependencies and modules. ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/4.png) ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/3.png) ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/6.png) #### - After that, I configured initrd.img using the “mkinitramfs” command. ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/5.png) #### - Updated grub using grub.cfg file before installing the test kernel. ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/7.png) ### Boot into the test kernel and modify the KVM code: #### - After rebooting, ensure the system successfully boots into the newly built kernel. #### - Use the uname -r command to check the current kernel version and verify that it matches the one you installed. #### - Then, locate the __vmx_handle_exit function in the arch/x86/vmx/vmx.c file and implement code to count total_exit and exit type accordingly. ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/8.png) ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/9.png) ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/10.png) #### - After that, rebuild the kernel using make -j$(nproc), then run make_modules and make modules_install to install the KVM module. #### - Finally, reboot the system to test the changes. ![img](https://github.com/MJinH/linux/blob/01cfe956833f609e22aee503b38643419762485b/images/11.png)
About
Linux kernel source tree
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 98.3%
- Assembly 0.7%
- Shell 0.4%
- Python 0.2%
- Makefile 0.2%
- Perl 0.1%
- Other 0.1%