Linux Unified Kernel Aims to Combine Linux, NT Kernel

There are several ways to run Windows programs on Linux (virtualisation, WINE) and vice versa really isn’t a problem either with Cygwin, or better yet, native ports thanks to the Windows variants of Gtk+ and Qt. Still, what if Windows support was built straight into the Linux kernel? Is something like that even possible? Sure it is, and the Chinese figured it’d be an interesting challenge, and called it the Linux Unified Kernel.

I must admit I hadn’t heard of this project just yet, but I was intrigued right away. It’s called the Linux Unified Kernel, and aims to combine the Linux kernel and the Windows NT kernel to effectively create a new kernel that supports both Linux and Windows binaries natively. They do this by implementing Windows NT kernel mechanisms into the Linux kernel using kernel modules, such as NT’s process management, thread management, object management, virtual memory management, synchronisation, system calls, Windows registry (worms? Can? Of?), WDM (device driver framework), Windows DPC mechanism, and so on. Even Windows drivers would work using this new hybrid kernel (a little kernel geek humour, there).

The new kernel actually supports two sets of system calls, one for Windows, and one for Linux. Since I’m not a programmer (let alone a kernel programmer), I have to resort to Wikipedia to explain how this all works. If I understand it all correctly, Windows binaries call the syscal table via a different interrupt than Linux binaries do (int 0x2e vs. int 0x80). I’m sure some of you will be able to provide more insight into what, exactly, this all means. When it comes to the userland, the LUK project does not write its own material; instead, it relies on the GNU project for the Linux side of things, and on Wine and ReactOS for the Windows side.

The people behind LUK hope that eventually, their code will be merged into mainline. There’s still a lot of work to do before every Windows application will just work out of the box, but progress is steadily made, and the Chinese Linux distribution MagicLinux even has a special version built on top of LUK. Currently, it’s x86-only, but work is underway to port it to the Loongson architecture. The Loongson 3 processor includes 200 additional instructions to speed up x86 translation, in case you’re wondering how MIPS would run Windows.

In any case, version 0.2.4 of LUK was released recently, so if you’re adventurous, you can get it from their download page.

68 Comments

  1. 2009-05-28 12:16 pm
    • 2009-05-28 12:31 pm
      • 2009-05-28 12:39 pm
        • 2009-05-28 12:43 pm
          • 2009-05-28 1:18 pm
          • 2009-05-28 2:14 pm
          • 2009-05-28 3:04 pm
          • 2009-05-28 4:55 pm
          • 2009-05-28 5:10 pm
          • 2009-05-29 2:03 pm
          • 2009-05-29 2:59 pm
          • 2009-05-30 11:43 pm
          • 2009-05-31 4:58 pm
          • 2009-05-29 1:45 pm
        • 2009-05-28 12:55 pm
      • 2009-05-28 1:37 pm
      • 2009-05-29 9:31 pm
    • 2009-05-28 4:51 pm
  2. 2009-05-28 12:36 pm
    • 2009-05-28 12:41 pm
    • 2009-05-28 12:46 pm
    • 2009-05-28 12:55 pm
      • 2009-05-28 2:42 pm
    • 2009-05-28 12:58 pm
      • 2009-05-28 1:57 pm
        • 2009-05-28 2:08 pm
        • 2009-05-28 2:20 pm
        • 2009-05-28 4:59 pm
          • 2009-05-28 7:33 pm
    • 2009-05-28 1:05 pm
    • 2009-05-28 1:48 pm
    • 2009-05-28 1:48 pm
      • 2009-05-28 3:54 pm
    • 2009-05-28 1:55 pm
      • 2009-05-28 9:47 pm
    • 2009-05-28 3:46 pm
    • 2009-05-28 5:11 pm
  3. 2009-05-28 12:44 pm
    • 2009-05-28 1:58 pm
      • 2009-05-28 3:43 pm
  4. 2009-05-28 1:20 pm
  5. 2009-05-28 1:32 pm
    • 2009-05-28 11:17 pm
      • 2009-05-29 3:14 am
  6. 2009-05-28 1:35 pm
  7. 2009-05-28 1:54 pm
    • 2009-05-28 6:17 pm
      • 2009-05-28 7:36 pm
  8. 2009-05-28 2:03 pm
    • 2009-05-28 2:19 pm
      • 2009-05-28 11:20 pm
  9. 2009-05-28 2:14 pm
  10. 2009-05-28 2:36 pm
  11. 2009-05-28 2:43 pm
  12. 2009-05-28 3:54 pm
    • 2009-05-29 12:26 pm
  13. 2009-05-28 5:34 pm
  14. 2009-05-28 5:38 pm
  15. 2009-05-29 6:47 am
    • 2009-05-31 12:16 pm
  16. 2009-05-29 9:16 am
  17. 2009-05-29 9:39 am
  18. 2009-05-29 1:42 pm
  19. 2009-05-29 5:37 pm
    • 2009-05-30 1:22 am
      • 2009-05-30 5:22 am
  20. 2009-05-30 2:05 am
  21. 2009-05-30 5:55 am