- 24 Jun, 2013 2 commits
-
-
Ren, Yongjie authored
'bash' should be always located in /bin/bash instead of /usr/bin/bash. Other bash scripts in kvm-unit-tests also use '/bin/bash' as the interpreter. Signed-off-by:
Yongjie Ren <yongjie.ren@intel.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Ren, Yongjie authored
Before this fix, you should always get error info as below when running 'x86-run' script. "QEMU binary has no support for test device. Exiting." Signed-off-by:
Yongjie Ren <yongjie.ren@intel.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 21 Jun, 2013 3 commits
-
-
Arthur Chunqi Li authored
Change two functions (test_mmx_movq_mf and test_movabs) using unified trap_emulator. Signed-off-by:
Arthur Chunqi Li <yzt356@gmail.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Arthur Chunqi Li authored
Add a function trap_emulator to run an instruction in emulator. Set inregs first (%rax is invalid because it is used as return address), put instruction codec in alt_insn and call func with alt_insn_length. Get results in outregs. Signed-off-by:
Arthur Chunqi Li <yzt356@gmail.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Arthur Chunqi Li authored
Add memcpy(void *dest, const void *src, size_t n) to lib/string.c. This function acts the same as memcpy in libc. Signed-off-by:
Arthur Chunqi Li <yzt356@gmail.com> [Add missing const. - Paolo] Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 17 Jun, 2013 1 commit
-
-
Marcelo Tosatti authored
Serialize RDTSC so its executed inside kvmclock_read section. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=922285 Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 06 Jun, 2013 1 commit
-
-
Arthur Chunqi Li authored
Add multibyte (1 to 4-bytes) NOPL test case to kvm-unit-tests x86/realmode.c. This test only consist of 16-bit NOPL insn, other test cases (5 to 9-bytes NOPL) should be placed in x86/emulator.c. Signed-off-by:
Arthur Chunqi Li <yzt356@gmail.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 03 Jun, 2013 1 commit
-
-
Paolo Bonzini authored
This patch includes two fixes for SB: * the 3rd fixed counter ("ref cpu cycles") can sometimes report less than the number of iterations * there is an 8th counter which causes out of bounds accesses to gp_event or check_counters_many's cnt array There is still a bug in KVM, because the "pmu all counters-0" test fails. (It passes if you use any 6 of the 8 gp counters, fails if you use 7 or 8). Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 20 May, 2013 1 commit
-
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi.kivity@gmail.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 12 May, 2013 5 commits
-
-
Michael S. Tsirkin authored
These tests measure speed of mmio and port io exits using the new pci-testdev. Skipped when running on old qemu. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Michael S. Tsirkin authored
Add API to scan bus for a given device, as well as API to access BAR registers. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Michael S. Tsirkin authored
Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Michael S. Tsirkin authored
implement offsetof using gcc builtin. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Michael S. Tsirkin authored
Handy for printing debug strings from hardware. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 09 May, 2013 4 commits
-
-
Paolo Bonzini authored
The realmode test is still printing to the old debug port at 0xf1. Use the serial port instead. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Paolo Bonzini authored
Some tests fail if DF=1. Restore it directly after executing the test, do not do it "magically" in print_serial. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 30 Apr, 2013 1 commit
-
-
Gleb Natapov authored
Signed-off-by:
Gleb Natapov <gleb@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 28 Apr, 2013 4 commits
-
-
Kevin Wolf authored
Put all vmexit test cases and all task switch test cases into a group, so that you can use something like ./run_tests -g tasks Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Kevin Wolf authored
Some test cases seem to have been added without updating the configuration file. This adds them, and leaves cases commented out that don't seem to complete. Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Kevin Wolf authored
Their kernel binaries would be missing when the tests are built for i386. Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Kevin Wolf authored
This adds a convenient way to run all tests without having to set up Autotest. Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 17 Apr, 2013 1 commit
-
-
Prasad Joshi authored
The SVM test 'cr3 read intercept emulate' when ran on uniprocessor system does not finish and blocks all the tests scheduled to be ran afterwords. Add check so that the test is only ran on the SMP VM. Signed-off-by:
Prasad Joshi <prasadjoshi.linux@gmail.com> Reviewed-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 14 Apr, 2013 2 commits
-
-
Kevin Wolf authored
This adds a test case that jumps into VM86 by iret-ing to a TSS and back to Protected Mode using a task gate in the IDT. Signed-off-by:
Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Gleb Natapov authored
HW emulation expects two bytes write. Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 07 Mar, 2013 1 commit
-
-
Paolo Bonzini authored
Test various ways of sending an INIT interrupt to the bootstrap processor. In all cases, the processor should start executing from 0xfffffff0 and other devices should be untouched. With the patches I just sent to qemu-devel (also at branch x86-soft-reset of git://github.com/bonzini/qemu.git ), this passes with TCG and the userspace irqchip. It fails with in-kernel irqchip. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 06 Mar, 2013 1 commit
-
-
Paolo Bonzini authored
The S3 test requires user interaction to terminate. Set up the RTC alarm instead, so that the test will end after one second. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 04 Mar, 2013 1 commit
-
-
Michael S. Tsirkin authored
Add documentation about using qemu-system for unit tests. Add runner script to select the correct binary and flags. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 27 Feb, 2013 1 commit
-
-
Michael S. Tsirkin authored
Fix this error on 32 bit systems: x86/msr.c:122:5: error: unknown register name ‘r11’ in ‘asm’ Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 12 Feb, 2013 1 commit
-
-
Gleb Natapov authored
Upstream test device does not implement port 0xd1. Reviewed-by:
Lucas Meneghel Rodrigues <lmr@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 15 Jan, 2013 2 commits
-
-
Xiao Guangrong authored
If the write-fault access is from supervisor and CR0.WP is not set on the vcpu, kvm will fix it by adjusting pte access - it sets the W bit on pte and clears U bit. This is the chance that kvm can change pte access from readonly to writable Unfortunately, the pte access is the access of 'direct' shadow page table, means direct sp.role.access = pte_access, then we will create a writable spte entry on the readonly shadow page table. It will cause Dirty bit is not tracked when two guest ptes point to the same large page. Note, it does not have other impact except Dirty bit since cr0.wp is encoded into sp.role This testcast is not to to trigger this bug Signed-off-by:
Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
Paolo Bonzini authored
This patch adds three scenarios to the vmexit test. Two are very simple PIO cases that are handled in the kernel (reading from and writing to ELCR). The other is an unmapped PIO that is handled in userspace. The difference between the two reading scenarios is roughly the cost of a userspace exit; the existing inl_from_pmtimer test is not precise enough, because the device model has a pretty high cost. The difference between the kernel read and write is the cost of emulation, because inl_from_kernel goes through the whole emulation stuff while outl does not (it is used for virtio, while the speed of inl matters less). Example: vmcall 3898 inl_from_pmtimer 24615 inl_from_qemu 20574 inl_from_kernel 7237 outl_to_kernel 4451 So the cost of exiting to userspace is 13000 cycles on this machine, and the cost of emulation is 3300 cycles. Suggested-by:
Avi Kivity <avi.kivity@gmail.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 09 Jan, 2013 1 commit
-
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi.kivity@gmail.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 02 Jan, 2013 1 commit
-
-
Gleb Natapov authored
Add test for fninit/fnstsw/fnstcw instructions emulation. This exact code sequence is executed by Linux kernel during boot and sometimes gets emulated by KVM. Signed-off-by:
Gleb Natapov <gleb@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 14 Dec, 2012 1 commit
-
-
Gleb Natapov authored
Add test for aad instruction emulation. Signed-off-by:
Gleb Natapov <gleb@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 13 Dec, 2012 1 commit
-
-
Paolo Bonzini authored
MOV immediate instruction (opcodes 0xB8-0xBF) may take 64-bit operand. Some hypervisor implementations assumed the operand is 32-bit. This should never happen because the instruction has no memory operand, but (like the existing test_mmx_movq_mf) the testcase tricks the emulator into executing one by mismatching the page tables and the corresponding TLB entry. Cc: Nadav Amit <nadav.amit@gmail.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 28 Nov, 2012 1 commit
-
-
Will Auld authored
Added x86/tsc_adjust.c and updated x86/vmexit.c to include timing tests for reading and writing the emulated IA32_TSC_ADJUST msr. Signed-off-by:
Will Auld <will.auld@intel.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 01 Nov, 2012 1 commit
-
-
Xiao Guangrong authored
Add the test to trigger the bug that "rep ins" causes vcpu->mmio_fragments overflow overflow while move large data from ioport to MMIO Signed-off-by:
Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
-
- 04 Sep, 2012 1 commit
-
-
Mao, Junjie authored
The INVPCID enabling test assumes cr3[11:0] is 0. But at present PCID enabling test sets cr3[11:0] to 1 for its own purpose and doesn't restore the register, which leads to a failure when INVPCID test tries to enable PCIDE. This patch restores cr3 after PCID enabling test is done so that PCIDE can be enabled normally in later tests. Signed-off-by:
Junjie Mao <junjie.mao@intel.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
-