[vbox-dev] Explanation about Ring0 context

Luca Carotenuto luca.carotenuto.91 at gmail.com
Mon Feb 1 11:59:54 GMT 2016


Hi everyone,
I have two questions for you:

1) As I understand, when we talk about Ring-0 context, we refer to kernel
space, while Ring-3 context refers to user space. Am I right?

2) I'm looking inside the E1000 emulation code
(/src/VBox/Devices/Network/DevE1000.cpp).
Assuming that the above is right, for what concerns the registers callbacks,
 I do not understand why those callbacks are compiled to be executed in
Ring-0 context
(When I use logging inside those functions, the thread name i R0).
Infact, looking inside the VboxDD.so file in the "out/bin" directory (using
objdump tool), it seems that this code "belongs" to Ring-3 context,
so why is it running in Ring-0 context?

I'm running Ubuntu 64 bit on Host and InstantContiki 3.0 32-bits linux
distribution as guest.

Kind regards,
Luca Carotenuto

-- 
Luca Carotenuto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20160201/324ecf41/attachment.html>


More information about the vbox-dev mailing list