Features/KVMNestedVirtualizationTestsuite: Difference between revisions

From QEMU
No edit summary
No edit summary
Line 15: Line 15:


* Repos: https://github.com/xelatex/kvm-unit-tests
* Repos: https://github.com/xelatex/kvm-unit-tests
* Blogs: http://chunqili.blogspot.com/


= Feature =
= Feature =

Revision as of 08:28, 2 July 2013

Notice

This a GSoC 2013 project accepted by QEMU.org, you can also see my proposal.

Summary

Provide a test suite of nested virtualization for KVM in kvm-unit-tests. It provides a test platform for nested virtualization, including a hypervisor and the link script to integrate current test suites.

Owner

Locations

Feature

This module of kvm-unit-tests aims at providing a suite of test cases for nested virtualization. It consists of two parts:

  • A mini hypervisor
  • Some relevant test cases specified for nested virtualization in KVM

Some codes of current kvm-unit-tests can be reused in the two parts above, e.g. link script to generate flat image. Some specific features will be listed here.

Mini hypervisor

A mini hypervisor is the basis of testing nested virtualization. Here is a mini hypervisor written in C++ named NOVA. But the mini hypervisor neeeded in this project doesn't need so many complicated features (e.g. Buddy system). Only CPU management, memory management, interrupt control and simple communication (hypercall) are necessary.

Nested virtualization test cases

On the basis of mini hypervisor, some nested virtualization features should be tested including VMX insructions, MSR, memory access and VM-enter & VM-exit tests. Some of test cases are have implemented in the current kvm-unit-tests and can be imported in some special ways.

Project status

The project is currently in development. Mini hypervisor is now in development.