I am just a new man in kernel development, there is a question bother me for a time. Is it neccessary to have a virtual machine when developing or debugging kernel? Thanks.
El 27/08/2014 10:14, "Bowen" <wangbowenkernel@163.com> escribió:
I am just a new man in kernel development, there is a question bother me
for a time. Is it neccessary to have a virtual machine when developing or debugging kernel? No, it's not. But it could be convenient if you don't want to hurt your machine.
Thanks.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Wed, Aug 27, 2014 at 1:43 PM, Bowen <wangbowenkernel@163.com> wrote:
I am just a new man in kernel development, there is a question bother me for a time. Is it neccessary to have a virtual machine when developing or debugging kernel?
If you are working on something unrelated to real-hardware then using a virtual machine can help you, like not having frequent reboots of your physical machine maybe you've only one development machine then you can try and attach gdb to the virtual machine from your host machine. If however you've a real hardware then using a real machine would be better.
Thanks.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- ---P.K.S
On Wed, Aug 27, 2014 at 04:13:00PM +0800, Bowen wrote:
I am just a new man in kernel development, there is a question bother me for a time. Is it neccessary to have a virtual machine when developing or debugging kernel?
Being able to access the machine monitor is very useful at times. It lets you look at registers, memory, hardware, etc. I also appreciate being able to quickly boot a kernel with the -kernel option. see: http://en.wikibooks.org/wiki/QEMU/Monitor
participants (4)
-
Bowen -
Fernando Apesteguía -
John de la Garza -
Pranay Srivastava