- 22 Dec, 2010 14 commits
-
-
Avi Kivity authored
This checks the failure that was fixed by kernel commit edde99ce0529 ("KVM: Write protect memory after slot swap"). Two threads are used; a guest thread continuously updates a shared variable, which is also sampled by a host thread that also checks if dirty logging marked it as dirty. It detects about 5 million failures with the fix reverted, and 0 failures with the fix applied. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
The hole may be used for mmio or dirty logging. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Add a class to manage the memory map and a class to represent a memory slot. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Call a function setting a global variable. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
This patch provides a way to establish an "identity" guest which has a 1:1 gva->hva translation. This allows the host to switch to guest mode, call a function in the same address space, and return. Because long mode virtual addresses are 47 bits long, and some hosts have smaller physical addresses, we target 32-bit mode only. On x86_64 the code needs to be run with 'setarch i386 -3' to limit the address space to 3GB, so the address space occupied by the local APIC is left unused. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Introduce exception-safe objects for calling system, vm, and vcpu ioctls. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Instead of listing all directories explicitly, include all autodepend files. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 14 Dec, 2010 1 commit
-
-
Gleb Natapov authored
Commit 750bbdb5 forgot to convert i386 arch to .elf. Signed-off-by:
Avi Kivity <avi@redhat.com>
-
- 05 Dec, 2010 1 commit
-
-
Avi Kivity authored
Recent qemus no longer load 64-bit elf kernels. Fix by converting to 32-bit elf. Signed-off-by:
Avi Kivity <avi@redhat.com>
-
- 03 Nov, 2010 2 commits
-
-
Avi Kivity authored
While not required by the spec, some guests (Linux) rely on nmi being blocked by an IF-enabling sti. Add a unit test for this condition. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Avi Kivity authored
This allows the smp support, which uses the boot idt, to work. Signed-off-by:
Avi Kivity <avi@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 20 Sep, 2010 2 commits
-
-
Roedel, Joerg authored
Just figured out that it makes a lot of sens to measure the latency of stgi and clgi too in this test. Here is an updated one. >From 350d33d155db8928f81cc801587787c84d6bc8c5 Mon Sep 17 00:00:00 2001 From: Joerg Roedel <joerg.roedel@amd.com> Date: Sun, 19 Sep 2010 15:34:37 +0200 Subject: [PATCH] svm: Add VMLOAD/VMSAVE and STGI/CLGI latency test This patch adds a test to measure the latency of the VMLOAD and VMSAVE instructions as well as for STGI and CLGI. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Joerg Roedel authored
This patch adds a test to measure the latency of VMRUN and VMEXIT. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 19 Sep, 2010 7 commits
-
-
Joerg Roedel authored
This patch adds a test to check if NPT faults that occur while walking the guest page table are reported correctly. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Joerg Roedel authored
This patch adds a test to check if the RW bit is checked in the NPT emulation of KVM. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Joerg Roedel authored
This patch adds a test to check if the RSVD bits are checked in the NPT emulation of KVM. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Joerg Roedel authored
This patch adds a test to check if the US bit is checked in the NPT emulation of KVM. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Joerg Roedel authored
This patch adds a test to check if the NX bit is checked in the NPT emulation of KVM. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Joerg Roedel authored
This patch adds code to setup a nested page table which is used for all tests. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Joerg Roedel authored
This patch adds a test to check if the selective cr0 intercept emulation of the kvm svm emulation works. Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
- 01 Sep, 2010 8 commits
-
-
Jason Wang authored
This patch implements three tests for kvmclock. First one check whether the date of time returned by kvmclock matches the value got from host. Second one check whether the cycle of kvmclock grows monotonically in smp guest and the count of warps and stalls are also recorded. The last test is a performance test to measure the guest cycles cost when trying to read cycle of kvmclock. Three parameters were accepted by the test: test loops, seconds since 1970-01-01 00:00:00 UTC which could be easily get through date +%s and the max accepted offset value between the tod of guest and host. Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Jason Wang authored
Most of the codes were borrowed from arxh/x86/kernel/kvmclock.c. A special bit: PV_CLOCK_CYCLE_RAW_TEST_BIT is used to notify the driver to return unadjusted cycles. Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Jason Wang authored
Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Jason Wang authored
Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Jason Wang authored
Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Jason Wang authored
Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Jason Wang authored
Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
Jason Wang authored
Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-
- 26 Aug, 2010 5 commits
-
-
Jason Wang authored
Add smp initlaization codes for 32bit. This would make the 32bit smp tests available. Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Jason Wang authored
Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Jason Wang authored
CR8 is only available in long mode. Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Jason Wang authored
TSS size should be 104 bytes. Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
Jason Wang authored
They have been implemented in lib/x86/processor.h. Also rename the cpuid to cpuid_test because cpuid have been defined. Signed-off-by:
Jason Wang <jasowang@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-