Showing posts with label Virtulization. Show all posts
Showing posts with label Virtulization. Show all posts

Thursday, July 25, 2013

Find out if CPU supports hardware vitualization Intel VT-X or AMD-V

grep --color vmx /proc/cpuinfo

or 

# grep --color svm /proc/cpuinfo


http://www.cyberciti.biz/faq/linux-xen-vmware-kvm-intel-vt-amd-v-support/

Tuesday, March 26, 2013

Why do we need IOMMU for virtualization

Short answer: 
translate guest physical address to host physical address for DMA access of guest OS

Long answer from wiki:

When an operating system is running inside a virtual machine, including systems that use paravirtualization, such as Xen, it does not usually know the host-physical addresses of memory that it accesses. This makes providing direct access to the computer hardware difficult, because if the guest OS tried to instruct the hardware to perform a direct memory access (DMA) using guest-physical addresses, it would likely corrupt the memory, as the hardware does not know about the mapping between the guest-physical and host-physical addresses for the given virtual machine. The corruption is avoided because the hypervisor or host OS intervenes in the I/O operation to apply the translations; unfortunately, this delays the I/O operation.
An IOMMU can solve this problem by re-mapping the addresses accessed by the hardware according to the same (or a compatible) translation table that is used to map guest-physical address to host-physical addresses.[9]

[edit]

Friday, February 15, 2013

Difference between emulation and virtualization


http://stackoverflow.com/questions/6044978/full-emulation-vs-full-virtualization


Emulation and virtualization are related but not the same.

Emulation is using software to provide a different execution environment or architecture. For example, you might have an Android emulator run on a Windows box. The Windows box doesn't have the same processor that an Android device does so the emulator actually executes the Android application through software.

Virtualization is more about creating virtual barriers between multiple virtual environments running in the same physical environment. The big difference is that the virtualized environment is the same architecture. A virtualized application may provide virtualized devices that then get translated to physical devices and the virtualization host has control over which virtual machine has access to each device or portion of a device. The actual execution is most often still executed natively though, not through software. Therefore virtualization performance is usually much better than emulation.
There's also a separate concept of a Virtual Machine such as those that run Java, .NET, or Flash code. They can vary from one implementation to the next and may include aspects of either emulation or virtualization or both. For example, the JVM provides a mechanism to execute Java byte codes. However, the JVM spec doesn't dictate that the byte codes must be executed by software or that they must be compiled to native code. Each JVM can do it's own thing and in fact most JVMs do a combination of both using emulation where appropriate and using a JIT where appropriate (the Hotspot JIT I think is what it's called for Sun/Oracle's JVM).

Tuesday, November 20, 2012

Hardware virtualization

Intel Virtualization Technology (VT)
http://software.intel.com/sites/default/files/m/0/2/1/b/b/1024-Virtualization.pdf