AMD-V EPT Intel VTX SVM tutorials

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
lopidas
Member
Member
Posts: 65
Joined: Sun May 26, 2013 10:12 am

AMD-V EPT Intel VTX SVM tutorials

Post by lopidas »

Where can I find some with full examples and instruction parameters?

Disclaimer: Yes, I tried to search it.
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: AMD-V EPT Intel VTX SVM tutorials

Post by Combuster »

You didn't read enough, apparently. Beginner_Mistakes maybe?
"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 ]
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: AMD-V EPT Intel VTX SVM tutorials

Post by Nable »

to lopidas
You can read Intel/AMD cpu docs and instruction set reference manuals (note: AMD docs are much better written). If you are looking for examples, you can read source code of:
+ KVM - tenths of thousands lines, very hard to start understanding this but it seems that small important details can be found only here
+ Palacios - pile of ####, to be honest; it was written for study/research purpose but it's also a good side: it's rather easy to start studying those source files
+ http://xhypervisor.org/ - it's description seems to be good but I didn't test this soft myself
+ http://www.codeproject.com/Articles/215 ... rogrammers - really simple tutorial for beginners (I mean "for beginners in VT", you still should be an advanced osdever to start this things), I like it very much.
+ http://code.google.com/p/vmxos/ - google suggested me this thing and it seems to be nice but i didn't test it myself.

But, please, study manuals carefully before trying to do smth, especially before asking questions. Good luck.
feryno
Member
Member
Posts: 73
Joined: Thu Feb 09, 2012 6:53 am
Location: Czechoslovakia
Contact:

Re: AMD-V EPT Intel VTX SVM tutorials

Post by feryno »

Hi, I believe that lopidas tried to search it.

I suggest to start from official manuals. Then look into tutorials/projects. Manuals are pain because are huge (especially Intel).

Required manual for Intel is hidden here:
http://download.intel.com/products/proc ... 326019.pdf
All CPU manuals here:
http://www.intel.com/content/www/us/en/ ... nuals.html

Required manual for AMD is hidden here:
http://support.amd.com/us/Processor_Tec ... APM_v2.pdf
All CPU manuals here:
http://support.amd.com/us/psearch/Pages ... =&items=20

Maybe the first (spring 2007) publicly available tutorials with source codes here:
http://www.cs.usfca.edu/~cruse/cs686s07/
lesson20, lesson21

I know about 1 project not yet mentioned in this thread - which is not too huge to study:
http://code.google.com/p/hyperdbg/

If you have problems/bugs in your project let me know - no matter Intel / AMD, UEFI / BIOS / OS driver.
E.g. you may have almost working hypervisor and be stuck for month or even more trying to fix a problem.

Cheers, Feryno
hypervisor-based solutions developer (Intel, AMD)
Post Reply