Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Open Source

Microkernels and Virtualization: Inside a Mobile Phone


Today we're talking with Dr. Gernot Heiser, founder and CTO of Open Kernel Labs, a company that specializes in operating systems and virtualization technology. The company's OKL4 microkernel, for instance, is used in Toshiba's W47T mobile phone.

DDJ: Gernot, from what I hear, Microsoft Vista weighs in about 600 MB. How does OKL4 measure up, in size and function?

GH: The comparison isn't quite fair. Vista is a complete operating system aimed as desktops and servers, where much functionality is needed, and memory is much less of an issue. OKL4 is a minimal OS environment aimed at a wide range of embedded systems, from smartcards via cell phones to network routers.

As such, OKL4 is designed to provide minimal functionality in order to run on very small systems, in as little as 100 KB. On the other hand it allows to run more fully-featured operating systems, such as Linux or Windows embedded, in a virtual machine.

DDJ: You say that the licensing of OKL4 by Toshiba for its W47T mobile phones is "the first end-user deployment of modern virtualization technology on mobile-phone handsets." What does virtualization have to do with mobile phones?

GH: High-end mobile phones these days are pretty powerful computers in their own right, running a wealth of media applications, productivity tools, games, and the like. Programmers writing such applications are typically not embedded-systems experts, and need a familiar, high-level OS API to work with. Furthermore, you want to run a lot of the same applications on the phone than on a laptop, such as e-mail, word processors, and so on. This need is served by operating systems such as Linux and Windows, but they are not suitable for supporting the low-level communication functionality, which needs a real-time OS. Virtualization allows running different operating systems concurrently on the same device processor.

DDJ: You also say that "OKL4's open platform protects communications firmware from interference through fault containment." Can you elaborate on this?

GH: The application stack of a high-end phone is huge, maybe 4-5 MLOC, and inherently buggy. Even the OS that supports it has bugs that can be exploited. In the past, exploits have used carefully-crafted multimedia messages to leverage a buffer overflow in the OS. With phones becoming more open, allowing users to download programs and run them on the phone, the probability of such exploits is increasing. But you don't want the cracker to subvert the communications stack and turn the handset into a jammer, that disables a complete cell for all users. By running the application stack in a virtual machine, the rest of the system can be protected against it misbehaving.

DDJ: Is there a web site that readers can go to for more information?

GH: Yes they can go to the Open Kernel Labs web site which provides more information about microkernels.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.