Lines Matching full:kvm
1 LTP KVM Test API
4 Testing KVM is more complex than other Linux features. Some KVM bugs allow
7 system. The worst types of KVM bugs may even allow the guest code to crash or
8 compromise the physical host. KVM tests therefore need to be split into two
9 components – a KVM controller program running on the physical host and a guest
18 1. Basic KVM test structure
21 KVM tests are simple C source files containing both the KVM controller code
24 once to compile the KVM controller part and embed the payload binary inside.
26 payload inside a KVM virtual machine and print results in the same format as
29 A KVM test source should start with `#include "kvm_test.h"` instead of the
34 LTP headers are not available in the payload compilation pass, only the KVM
37 .Example KVM test
53 /* KVM controller code */
64 The KVM controller code is a normal LTP test and needs to define an instance
66 functions. Basic implementation of all three functions is provided by the KVM
71 library functions, etc. except for the small subset provided by the KVM guest
75 2. KVM host library
78 The KVM host library provides helper functions for creating and running
79 a minimal KVM virtual machine.
96 of a single KVM virtual machine:
122 between the KVM guest and the controller program. Most often, it is used
138 The KVM host library provides default implementation of the setup, cleanup
157 uint64_t addr)` – Converts pointer value (virtual address) from KVM virtual
164 uint64_t paddr)` – Returns index of the memory slot in KVM virtual machine
169 uint64_t addr)` – Returns index of the memory slot in KVM virtual machine
175 uint64_t addr)` – Converts pointer value (virtual address) from KVM virtual
181 of the KVM virtual machine `inst` at base address `baseaddr`. The buffer
190 The argument must be an open file descriptor returned by `open("/dev/kvm")`.
193 size_t ram_size)` – Creates and fully initializes a new KVM virtual machine
198 Executes the program installed in KVM virtual machine `inst`. Any result
205 the KVM virtual machine `inst`. Note that the guarded buffers assigned
209 The KVM host library does not provide any way to reset a VM instance back
215 3. KVM guest library
218 The KVM guest library provides a minimal implementation of both the LTP
241 The KVM guest library currently provides the LTP functions for reporting test
266 Memory management in KVM guest library currently uses only primitive linear
403 The KVM guest library provides basic helper functions for creating and running
469 4. KVM guest environment
472 KVM guest payload execution begins with bootstrap code which will perform