Need testers for Bochs VMX support

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Need testers for Bochs VMX support

Post by stlw »

Looking for testers for Bochs VMX support.
I have working version of Bochs with VMX support including most of the required functionality.
I hope anybody have something meaningful to play with on this version !

Thanks,
Stanislav
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Need testers for Bochs VMX support

Post by Love4Boobies »

Will VMX become the default for x86?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Need testers for Bochs VMX support

Post by stlw »

Love4Boobies wrote:Will VMX become the default for x86?
If you like it could :)

Stanislav
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Need testers for Bochs VMX support

Post by Love4Boobies »

Well I for one think it's a good idea :) I'd like to test... Do you have precompiled binaries or do I have to build it?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Need testers for Bochs VMX support

Post by Troy Martin »

Is it like something taking advantage AMD-V or Intel VT-x like the way VirtualBox or Hyper-V does? Or is it some kind of set of specialized drivers for a guest OS to take advantage of special features?
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: Need testers for Bochs VMX support

Post by JohnnyTheDon »

If it works on x86_64 I'll test it, otherwise I can't :(
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Need testers for Bochs VMX support

Post by stlw »

Troy Martin wrote:Is it like something taking advantage AMD-V or Intel VT-x like the way VirtualBox or Hyper-V does? Or is it some kind of set of specialized drivers for a guest OS to take advantage of special features?
No, it will help you ONLY if you writing your own Hyper-V engine and have no why it doesn't work.
This is complete emulation of VMX hardware, not getting advantage of host VMX hardware (take Xen if you need it).
If you still need it - I'll post sources + precompiled Windows binaries here in the middle of next week.

Stanislav
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Need testers for Bochs VMX support

Post by Love4Boobies »

Oh, I thought Bochs was taking advantage of VMX not emulating it :oops: That's still nice and I am up for testing; still, why not take advantage of this technology on compatible processors?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Need testers for Bochs VMX support

Post by Combuster »

I see two ways of testing this:
- by running your own VMX code (which in my case, has yet to be written, as well as a buch of other dependencies)
- by installing a VM inside bochs (which everybody can do).

what would be fun is installing virtualPC in bochs in virtualPC in bochs :D
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Need testers for Bochs VMX support

Post by AJ »

Combuster wrote:what would be fun is installing virtualPC in bochs in virtualPC in bochs :D
I don't know about fun - slow would perhaps be a better choice of description :)

Cheers,
Adam
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Need testers for Bochs VMX support

Post by JamesM »

Love4Boobies wrote:Oh, I thought Bochs was taking advantage of VMX not emulating it :oops: That's still nice and I am up for testing; still, why not take advantage of this technology on compatible processors?
If this happened you would lose your all-important Bochs processor state dump. when running native code, it's much harder for an emulator to keep a precise state.
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Need testers for Bochs VMX support

Post by stlw »

If somebody still interested:

Attached VMX emulation patch.
Apply to CVS from 23 Jan 2009.
You are welcome to try to run Xen or kvm inside Bochs, this time I am pretty optimistic and believe it should run !
Waiting for any feedback.

Thanks,
Stanislav

----------------------------------------------------------------------
Patch name: VMX emulation
Date: 23 Jan 2009
Status:
VMX emulation support for Bochs.
Almost complete Core 2 Duo VMX support, not implemented yet:
- dual-monitor treatment of SMIs not implemented
- APIC virtualization not implemented yet
- NMI virtualization not implemented yet
- VMENTER to not-active state not implemented yet
Also I made my own VMCS layout, not compatible with any existing
hardware + VMCS revision id (0xE) not necessary related to
existing Intel hardware.

Instructions:
To patch, apply patch to main bochs directory:
> patch -p1 < vmx-patch
Automatically generated files skipped from this patch to
reduce its absolute size.
To regenerate configure file:
> autoconf configure.in > configure
vmx-patch-bochs.rar
VMX support for Bochs CVS
(34.96 KiB) Downloaded 152 times
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Need testers for Bochs VMX support

Post by Love4Boobies »

Will patch right away. Won't this be included in the CVS?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Need testers for Bochs VMX support

Post by stlw »

Love4Boobies wrote:Will patch right away. Won't this be included in the CVS?
Of course, depends on your inputs here. Hope it works fine and I will merge it into the CVS.

Thanks,
Stanislav
stlw
Member
Member
Posts: 357
Joined: Fri Apr 04, 2008 6:43 am
Contact:

Re: Need testers for Bochs VMX support

Post by stlw »

One major bug fixed - MSR save/restore on VMENTER/VMEXIT was completely broken.
Plus few minor fixes.
New patch:
vmx-patch-25-jan-2009.rar
VMX emulation for Bochs
(35.33 KiB) Downloaded 176 times
Post Reply