flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Tiny Hypervisor. Hardware-virtualization support.

Author
Thread Post new topic Reply to topic
booter



Joined: 08 Dec 2006
Posts: 67
booter
Recently, both AMD and Intel added hardware virtualization to their CPUs. Now it's possible to write a Tiny Hypervisor that would trap whatever is necessary to distribute hardware resources to several OS, each running on its own VM. With some support from hypervisor, user-mode application under one OS can provide virtual device to another OS. What it means to development of a new OS is that it can rely on device support provided by another OS (Windows, Linux, or both): Device<-->OS#1<-->App<-->Hypervisor<-->OS#2.
In terms of general construction it's like microkernel OS, though logically it 's more like some kind of networking environment.
Currently, I'm working on hypervisor specifications.
Please e-mail me, if you're willing to participate in Hypervisor development _alexei@sbcglobal.net (yes, first character is underscore Smile )
I would also appreciate your posts on my Tiny Hypervisor idea.

Thanks,
Alexei
Post 18 Feb 2007, 11:01
View user's profile Send private message Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi
Oh, another hypervisor coder in fasm board, welcome Smile
Is your hypervisor going to be 100% fasm project?
Post 18 Feb 2007, 16:42
View user's profile Send private message MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
such capable hypervisor would by no means be "tiny".
Post 18 Feb 2007, 17:50
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
booter



Joined: 08 Dec 2006
Posts: 67
booter
okasvi wrote:
Oh, another hypervisor coder in fasm board, welcome Smile
Is your hypervisor going to be 100% fasm project?

Yes Exclamation
BTW, who's another one?

vid wrote:
such capable hypervisor would by no means be "tiny".

I expect it to be very small because of following reasons:
- It completely relies on CPU virtualization support.
- It will not include any hardware emulation code.
- No hardware (but CPU and memory) is shared.

Alexei
Post 18 Feb 2007, 23:41
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
name "Hypervista" reveals the background Wink
and welcome - I would gladly test this on my Cores!
Post 19 Feb 2007, 09:00
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
tantrikwizard



Joined: 13 Dec 2006
Posts: 142
tantrikwizard
booter wrote:
okasvi wrote:
Oh, another hypervisor coder in fasm board, welcome Smile
Is your hypervisor going to be 100% fasm project?

Yes Exclamation
BTW, who's another one?

This is one of the goals on my kernel, though its not entirely in FASM.

1)Object oriented kernel design supports multiple compile modes:
a) traditional end user GUI with applications and psudo c# compiler
b) server specific kernel with no overhead to perform server roles:
i) virtualization server kernel
ii) sql server kernel
iii) web server kernel
iv) any other server role can be compiled and built to run in stand alone mode with no overhead

I really dislike modern systems that require a gig+ of OS and applications to perform a single role (web server, sql server) and the machine sits in the closet and the gig+ of overhead is never utilized. Microsoft has some great server products (SQL server, IIS) but just by nature of having windows installed the stability and performance are compromised.
Post 19 Feb 2007, 12:37
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
HyperVista



Joined: 18 Apr 2005
Posts: 691
Location: Virginia, USA
HyperVista
Greetings booter! I'm very happy to see another fasm board member interested in building a hypervisor. I'll be happy to help you out as much as I can.

I'm developing my fasm hypervisor as a Windows device driver specific to the Intel VMX instruction set. I'll get on AMD later. See this topic in the Windows section of the fasm board: http://board.flatassembler.net/topic.php?t=6504

vid (moderator) has stubbed out a fasm version of the VMCS (see the post near the bottom of this topic thread) http://www.board.flatassembler.net/topic.php?t=5748

I'm to the point where I'm building the VMCS and after that, I begin launching VMXON. Once that's done, I'll be including hypervisor based functionality and that's where the real fun begins. When I get to that point, I'm going to make an official Project announcment in the Projects and Ideas section of the board. I also want to seek to get some articles published and perhaps get on the agenda of some conferences to showcase the hypervisor and fasm.

You will find this board and the fasm community most helpful. In fact, Tomasz added VMX capability into fasm well before VMX capable processors hit the markets.

Best Regards.

Welcome to the fasm community.
Post 21 Feb 2007, 19:08
View user's profile Send private message Visit poster's website Reply with quote
booter



Joined: 08 Dec 2006
Posts: 67
booter
Hi HyperVista!
Sorry for delayed reply (somehow, I missed reply notification).
My project (it's just an idea for now) takes different route:
- AMD64 X2 ("Pacifica" virtualization)
- "Bare metal" Hypervisor (boots before any OS)
- All providers of virtual hardware are user-mode applications on different VMs.
My main goals are:
- make development as simple as possible (no drivers Smile )
- make the resulted system very flexible (no Host OS - any application can provide virtual hardware resource).
I hope to begin development later this year.
Thanks for your offer, now I know whom to ask for help! Smile
Cheers,
Alexei
Post 06 Mar 2007, 04:40
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
tantrikwizard wrote:

Microsoft has some great server products (SQL server, IIS) but just by nature of having windows installed the stability and performance are compromised.

Actually the main security flaws are in IIS and SQL server, rather than the NT kernel Smile

But sure, a more LEAN_AND_MEAN operating system would be nice when you don't need all the GUI and fluff for your server role. Perhaps one day tinykrnl and reactos will be suitable for that...

_________________
Image - carpe noctem
Post 06 Mar 2007, 10:22
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.