| RayeR CZ, 20.02.2015, 11:03 |
64b long mode and VMX/VT-x tutorial and source examples (Developers) |
Hi, --- |
| georgpotthast Germany, 20.02.2015, 18:25 @ RayeR |
64b long mode and VMX/VT-x tutorial and source examples |
Japheth did a very good example of switching to long mode and back to 16bit mode here: |
| RayeR CZ, 05.03.2015, 20:02 @ georgpotthast |
64b long mode and VMX/VT-x tutorial and source examples |
Yes, I remember, that Japheth did some 64bit mode experiment years ago. I just wanted to share the examples I found. I didn't have time to go through yet. --- |
| RayeR CZ, 06.03.2015, 12:34 @ RayeR |
64b long mode and VMX/VT-x tutorial and source examples |
I read about Execution Control Fields in VMCS structures that set what operations in guest cause VMExit to VMM. If I would set all to be allowed will I get the guest running uninterrupted like without VMM? (of course I would need exit to VMM sometimes but looking for the simplest scenario). --- |
| RayeR CZ, 10.03.2015, 10:51 @ RayeR |
64b long mode and VMX/VT-x tutorial and source examples |
It seems that it also depends on used CPU - if it supports unrestricted guest (can be checked by bitflag in some MSR). I will add display some VTX details to my CPUID utility. And uh oh, VTX needs enable paging and PAE-needs to setup lot of data structures (I hoped that paging will be enabled by guest if it needs it), my head inflates while reading... :) --- |
| georgpotthast Germany, 10.03.2015, 19:06 @ RayeR |
64b long mode and VMX/VT-x tutorial and source examples |
I cannot comment on this since it is quite a while ago that I looked into this a little bit. However, I would take a look at the Nova, Xen or KVM source code and see if this provides some help. |
| RayeR CZ, 10.03.2015, 20:01 @ georgpotthast |
64b long mode and VMX/VT-x tutorial and source examples |
> I cannot comment on this since it is quite a while ago that I looked into --- |
| georgpotthast Germany, 10.03.2015, 21:21 @ RayeR |
64b long mode and VMX/VT-x tutorial and source examples |
If you do not have the time to read that code why do you have the time to write a similar software? To make something useful you will have to program a userland and a fleet of device drivers after you are done with the Hypervisor. |
| RayeR CZ, 10.03.2015, 23:07 @ georgpotthast |
64b long mode and VMX/VT-x tutorial and source examples |
> If you do not have the time to read that code why do you have the time to --- |
| RayeR CZ, 11.03.2015, 13:27 @ RayeR |
xvisor |
BTW did you tried xvisor? http://xhypervisor.org/ --- |
| georgpotthast Germany, 11.03.2015, 18:33 @ RayeR |
xvisor |
> BTW did you tried xvisor? http://xhypervisor.org/ |
| RayeR CZ, 11.03.2015, 22:47 @ georgpotthast |
xvisor |
> IIRC this may be caused by blanks instead of tabs in the makefile. --- |
| georgpotthast Germany, 12.03.2015, 08:36 @ RayeR |
xvisor |
I do not know if this is meant as a question. In the makefiles the lines have to start with a tab and not with blanks. (If not directly at the left border) You find that mentioned in a lot of places on the net. Some editors may replace the tabs with blanks and then the makefile will not work. |
| Rugxulo Usono, 12.03.2015, 09:04 @ georgpotthast |
xvisor |
> I do not know if this is meant as a question. In the makefiles the lines |
| RayeR CZ, 12.03.2015, 19:02 (edited by RayeR, 12.03.2015, 19:37) @ Rugxulo |
xvisor |
I know that makefiles use tabs instead spaces but I had problem with *.dep files that are generated automatically by Makefile. Even I cannot run "make distclean" because it stopped at error on first *.dep file. So I recursively deleted all *.dep run make clean and distclean again that passed. I run make menuconfig and make again and I got much further. Compiling stopped at error: --- |
| RayeR CZ, 13.03.2015, 01:32 @ RayeR |
xvisor |
WTF, xvisor doesn't support intel CPU yet --- |
| georgpotthast Germany, 13.03.2015, 18:07 @ RayeR |
xvisor |
from your previous post it seems that there is code for AMD-V though. |
| RayeR CZ, 13.03.2015, 19:18 (edited by RayeR, 13.03.2015, 20:10) @ georgpotthast |
xvisor |
> from your previous post it seems that there is code for AMD-V though. --- |
| georgpotthast Germany, 13.03.2015, 21:14 @ RayeR |
xvisor |
I thought you were looking for something that does not work yet |
| Rugxulo Usono, 15.03.2015, 05:15 @ georgpotthast |
xvisor |
> I thought you were looking for something that does not work yet |
| georgpotthast Germany, 16.03.2015, 17:15 @ Rugxulo |
xvisor |
> > I thought you were looking for something that does not work yet |
Thread view
![[image]](http://rayer.g6.cz/1tmp/xvisor.png)