- 26 Feb, 2014 1 commit
-
-
Luiz Capitulino authored
I got a report of someone trying to run tests with a large amount of RAM (4GB), which broke the guest as free_memory() function (called by setup_vm()) will override the PCI hole. Let's document memory constraints so that people don't do that. Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 22 Jan, 2014 11 commits
-
-
Jan Kiszka authored
This adds a basic test for INT3/#BP, hardware breakpoints, hardware watchpoints and single-stepping. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
This both reduces code duplication and standardizes the output format a bit more. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Test if we ignore "unconditional I/O exiting" as long as "use I/O bitmap" is enabled. Also test if unconditional exiting itself works. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Check that the xAPIC is relocatable and that writing a reserved bit to MSR_IA32_APICBASE triggers a #GP. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
This checks if KVM properly acknowledges invalid state transitions on MSR_APIC_BASE writes with a #GP. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Will also be used by the APIC test. Moving exception_return assignment out of line, we can drop the explicit compiler barrier. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Some compiler versions (seen with gcc 4.8.1) move the resume label after the return statement which, of course, causes sever problems. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Already called by the bootstrap code. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 18 Dec, 2013 16 commits
-
-
Paolo Bonzini authored
x86/svm.c:534:18: warning: variable ‘data’ set but not used Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
So far we ran into an unhandled GP when VMX was unavailable. Change the logic to handle this gracefully. Rework test_vmx_capability to test_vmx_feature_control which not only enables VMX in the feature control MSR but also test related error behavior. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Be less verbose and remove any unused code from the basic handlers. Properly fail if a vmexit occurs during the early tests. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Instead of requiring to reference the basic handler, just allow NULL as syscall handler for those tests that don't care. Makes test definitions a bit more compact. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
If some feature is not existing and, thus, a test case is not able to run, already report this back from the init handler. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
We already accept the init handler to be NULL if there is no need for initialization. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Add missing include of desc.h for prototypes of setup_idt and set_idt_entry and fix the declaration of ipi_data - the pointer is volatile, not the pointed-to datum. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> [Correct the fix for ipi_data. - Paolo] Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Main does not return, tell this the compiler. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
See commit 47c1461a . Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Fixes corresponding warning. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
We were loading the addresses of the descriptor pointers, not the addresses they are pointing to. By declaring the pointers with the proper type, we can also save some castings + struct descr. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
See comments made during the original review of these tests, at http://permalink.gmane.org/gmane.comp.emulators.kvm.devel/114001 . Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Paolo Bonzini authored
-
- 18 Nov, 2013 1 commit
-
-
Gleb Natapov authored
Tested-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 05 Nov, 2013 1 commit
-
-
Gleb Natapov authored
If cpuid is called with function value greater than max supported one max supported value is used instead and index parameter is honored. That is why we need to initialize index to same value in the test to get same result from both cpuid invocations. Reviewed-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 03 Nov, 2013 1 commit
-
-
Paolo Bonzini authored
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 28 Oct, 2013 3 commits
-
-
Jan Kiszka authored
We need to fail the test if MAGIC_VAL_1 cannot be found in either data_page1 or data_page2. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
If 2M pages are available with EPT, the test code creates its initial identity map with such pages. But then it tries to remap two 4K pages in that range which fails as their level 3 PTE is set up for huge pages. Fix this up by ensuring that install_ept_entry always create non-large page directory entries and by remapping the 2M area around those two test pages in 4K chunks. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
Jan Kiszka authored
If we both print from L2 and, on timer expiry, from L1, we risk a deadlock in L1 on the printf lock that is held by L2 then. Avoid this by only printing from L1. Furthermore, if the timer fails to fire in time, disable it before continuing to avoid that it fire later on in different contexts. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 25 Oct, 2013 1 commit
-
-
Arthur Chunqi Li authored
Add some comments on the framework of nested VMX testing, and guides of how to write new test cases. Signed-off-by:
Arthur Chunqi Li <yzt356@gmail.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- 17 Oct, 2013 1 commit
-
-
Gleb Natapov authored
%d0 constrain is wrong, rely on variable length to choose correct register instead. Reviewed-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 18 Sep, 2013 1 commit
-
-
Gleb Natapov authored
Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 17 Sep, 2013 1 commit
-
-
Gleb Natapov authored
Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 16 Sep, 2013 1 commit
-
-
Gleb Natapov authored
This test checks that NMI window opens only after IRET from NMI is executed without a fault. Reviewed-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Gleb Natapov <gleb@redhat.com>
-
- 11 Sep, 2013 1 commit
-
-
Arthur Chunqi Li authored
This patch just contains two minor changes to EPT framwork. 1. Reorder macro definition 2. Fix bug of setting CPU_EPT without check. Signed-off-by:
Arthur Chunqi Li <yzt356@gmail.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-