Skip to contentSkip to conversation

Hi I'm new here

DISCUSSION Bowen 4 participants 4 messages Aug 27, 2014

lore
Share & tools
lore
#1 lore raw

El 27/08/2014 10:14, "Bowen" <[email protected]> escribi?:

Quoted 2 lines

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.

Quoted 9 lines

Thanks.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140827/4cc44164/attachment.html

#2 lore raw
In reply to Bowen
Quoted 3 lines · Bowen

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.

Quoted 9 lines

Thanks.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 1 line
        ---P.K.S
#3 lore raw
In reply to Bowen
Quoted 1 line · Bowen

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