- 12 May, 2017 17 commits
-
-
Peter Feiner authored
Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-18-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Peter Feiner authored
Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-17-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Peter Feiner authored
Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-16-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Peter Feiner authored
Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-15-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Peter Feiner authored
Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-14-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
David Matlack authored
Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-13-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
David Matlack authored
The Intel SDM states that following a VMCLEAR instruction, the VMCS given as an operand to VMCLEAR should be resident in memory. If the CPU caches VMCS data outside of memory, VMCLEAR must flush this cache to memory. Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-12-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
David Matlack authored
This test VMCLEARs and VMPTRLDs two VMCS's to put each VMCS into different states of active/not-active and current/not-current and then verifies that VMREAD/VMWRITE to the current VMCS work correctly. Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-11-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
David Matlack authored
Issues VMWRITE to every VMCS field and the checks that VMREAD returns the expected result. Some tricky cases: read-only fields (skipped), not-yet-implemented fields (skipped, VMREAD fails with VMfailValid), guest segment access rights fields (reserved bits are zeroed by the CPU, so only check non-reserved bits). Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-10-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
GanShun authored
Added a check in test_vmptrld to verfiy that VMXERR_VMPTRLD_VMXON_POINTER is returned instead of VMXERR_VMCLEAR_VMXON_POINTER. Signed-off-by:
GanShun <ganshun@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-9-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Peter Feiner authored
Before applying "KVM: nVMX: fix lifetime issues for vmcs0", exiting while vmcs02 was loaded would trigger a VM_BUG_ON. Filter out exit_monitor_from_l2_test when running the full vmx test suite (i.e. the "[vmx]" test suite in unittest.cfg). Since exit_monitor_from_l2_test causes the VM to shutdown, many of the tests in vmx_tests.c end up getting skipped. Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-7-dmatlack@google.com> Message-Id: <20170421005004.137260-8-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Peter Feiner authored
Limited glob matching with leading or trailing '*'. Tests (and globs of tests) can be excluded by prepending with a '-'. Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-6-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
David Matlack authored
Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-5-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
David Matlack authored
By default every vmx kvm-unit-test runs a series of tests at startup. This patch moves those startup tests into test cases which are only run when requested. Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-4-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Peter Feiner authored
Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-3-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Peter Feiner authored
The VMX nesting test has lots of test cases. Now a specific test case can be run by appending its name to the multiboot command line (i.e., under Qemu's: -append <name>) Signed-off-by:
Peter Feiner <pfeiner@google.com> Signed-off-by:
David Matlack <dmatlack@google.com> Message-Id: <20170421005004.137260-2-dmatlack@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Andrew Jones authored
We use tabs in scripts/arch-run.bash, which the import of the function forgot to convert to. Also, while touching all lines to add the tabs, apply some more cleanups and simplifications. Signed-off-by:
Andrew Jones <drjones@redhat.com> Message-Id: <20170424092618.21950-1-drjones@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 11 May, 2017 4 commits
-
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
This lets us pass the whole 4GB address space down to the "guest". Recent versions of Linux use addresses above 0xfe000000 for the stack when running 32-bit programs in 64-bit mode, and this breaks if we leave the EPT identity map at the default address (0xfe000000). Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Replace Boost threads with C++11. Both boost::ref and boost::thread::thread are now part of the standard C++ library. std::tr1::bind and boost::ref have also become std::bind in C++11 and std::ref respectively; the old std::tr1::bind does not work with std::thread. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 03 May, 2017 4 commits
-
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1493309532-14398-1-git-send-email-pbonzini@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Thomas Huth authored
According to the changelog, the code has been taken from the tcg_baremetal_tests from Virtual Open Systems, so we should include the original copyright notice here. Signed-off-by:
Thomas Huth <thuth@redhat.com> Message-Id: <1493812229-21037-4-git-send-email-thuth@redhat.com> Acked-by:
Andrew Jones <drjones@redhat.com> Reviewed-by:
Laurent Vivier <lvivier@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Thomas Huth authored
Some GPL2 code is already in the repository, so this should be taken into account in the COPYRIGHT file, too. Signed-off-by:
Thomas Huth <thuth@redhat.com> Message-Id: <1493812229-21037-3-git-send-email-thuth@redhat.com> Acked-by:
Andrew Jones <drjones@redhat.com> Reviewed-by:
Laurent Vivier <lvivier@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Thomas Huth authored
Some files are still lacking license information, so add the default LGPL statement here to make it clear under which conditions the code can be used. Signed-off-by:
Thomas Huth <thuth@redhat.com> Message-Id: <1493812229-21037-2-git-send-email-thuth@redhat.com> Acked-by:
Andrew Jones <drjones@redhat.com> Reviewed-by:
Laurent Vivier <lvivier@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 25 Apr, 2017 3 commits
-
-
Alexander Gordeev authored
Cc: Thomas Huth <thuth@redhat.com> Cc: Andrew Jones <drjones@redhat.com> Cc: Peter Xu <peterx@redhat.com> Reviewed-by:
Thomas Huth <thuth@redhat.com> Reviewed-by:
Andrew Jones <drjones@redhat.com> Signed-off-by:
Alexander Gordeev <agordeev@redhat.com> Signed-off-by:
Radim Krčmář <rkrcmar@redhat.com>
-
Sergey Bronnikov authored
Some operating systems installs bash executable file to other directory than /bin. So it is better to use env utility to find bash. Signed-off-by:
Sergey Bronnikov <sergeyb@bronevichok.ru> Signed-off-by:
Radim Krčmář <rkrcmar@redhat.com>
-
Thomas Huth authored
Many files in the lib folder do not have proper statements about their license. Add such a header there so that it is clear under which conditions the code can be used. Signed-off-by:
Thomas Huth <thuth@redhat.com> Reviewed-by:
Andrew Jones <drjones@redhat.com> Signed-off-by:
Radim Krčmář <rkrcmar@redhat.com>
-
- 21 Apr, 2017 4 commits
-
-
Balamuruhan S authored
Changes required for x86/run to use the search_qemu_binary function for seaching the qemu Signed-off-by:
Balamuruhan S <bala24@linux.vnet.ibm.com> Message-Id: <1492755359-9123-1-git-send-email-bala24@linux.vnet.ibm.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Balamuruhan S authored
Changes required for arm/run to use the search_qemu_binary function for seaching the qemu Signed-off-by:
Balamuruhan S <bala24@linux.vnet.ibm.com> Message-Id: <1492755305-8880-1-git-send-email-bala24@linux.vnet.ibm.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Balamuruhan S authored
Changes required for powerpc/run to use the search_qemu_binary function for seaching the qemu Signed-off-by:
Balamuruhan S <bala24@linux.vnet.ibm.com> Message-Id: <1492629589-24845-1-git-send-email-bala24@linux.vnet.ibm.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Balamuruhan S authored
Add a shell function to search qemu binary, similar to what x86/run does, so that it can be reused for all arches. Signed-off-by:
Balamuruhan S <bala24@linux.vnet.ibm.com> Message-Id: <1492629251-23267-1-git-send-email-bala24@linux.vnet.ibm.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 29 Mar, 2017 6 commits
-
-
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1488996440-6493-5-git-send-email-pbonzini@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1488996440-6493-4-git-send-email-pbonzini@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1488996440-6493-3-git-send-email-pbonzini@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
Bits 17, 21 and 22 are not reserved anymore. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1488996440-6493-2-git-send-email-pbonzini@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
eventinj.flat hangs with kernel_irqchip=split after reporting a failure in the TPR test. Keep the failure, but avoid the hang. Reported-by:
Wanpeng Li <wanpeng.li@hotmail.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 28 Mar, 2017 2 commits
-
-
Thomas Huth authored
This test has two purposes: First, check whether the hypervisor can be destabilized by writing random values into the SPRs of the PowerPC CPU (this indeed revealed a bug last year, see CVE-2016-3044). Second, this test can be used to check whether the SPRs are synchronized properly between the KVM host CPU and QEMU, e.g. when migrating the VM from one QEMU instance to another. The test first fills the various SPRs with some non-zero value, then reads the values back into a first array. It then either sleeps a short period of time (for testing without migration, in the hope that we're rescheduled on another host CPU), or it waits for a key or NMI (with the '-w' option) so that it is possible to migrate the VM before continuing. The test then finally reads the values from the SPRs back into another array and then compares them with the initial values. Currently the test only supports the SPRs from the PowerISA v2.01 (PowerPC 970) and PowerISA v2.07 specification (i.e. POWER8 CPUs), but other versions should be pretty easy to add later. Signed-off-by:
Thomas Huth <thuth@redhat.com>
-
Thomas Huth authored
To be able to do simple migration tests with kvm-unit-tests, too, add a helper script that does all the necessary work: Start two instances of QEMU (source and destination) with QMP sockets for sending commands to them, then trigger the migration from one instance to the other and finally signal the end of the migration to the guest by injecting an NMI. This helper script is now used automatically for powerpc tests if the test is put into the "migration" group in the unittests.cfg file. Reviewed-by:
Andrew Jones <drjones@redhat.com> Signed-off-by:
Thomas Huth <thuth@redhat.com>
-