aboutsummaryrefslogtreecommitdiffstats
path: root/x86
AgeCommit message (Expand)AuthorFilesLines
2020-07-10x86: svm: present bit is set on nested page-faultsNadav Amit1-2/+2
2020-07-10cstart: do not assume CR4 starts as zeroPaolo Bonzini2-4/+2
2020-07-08kvm-unit-tests: nSVM: Test that MBZ bits in CR3 and CR4 are not set on vmrun ...Krish Sadhukhan2-17/+131
2020-07-08svm: fix clobbers for svm_vmrunPaolo Bonzini1-1/+1
2020-07-06vmx: remove unnecessary #ifdef __x86_64__Paolo Bonzini1-12/+0
2020-07-06kvm-unit-tests: nVMX: Test GUEST_LIMIT_GDTR and GUEST_LIMIT_IDTR on vmentry o...Krish Sadhukhan1-0/+17
2020-07-06kvm-unit-tests: nVMX: Test GUEST_BASE_GDTR and GUEST_BASE_IDTR on vmentry of ...Krish Sadhukhan1-0/+5
2020-07-06kvm-unit-tests: x86: Remove duplicate instance of 'vmcb'Krish Sadhukhan1-1/+0
2020-07-03x86: access: Add test for illegal toggling of CR4.LA57 in 64-bit modeSean Christopherson1-0/+12
2020-07-02x86: realmode: fix serial_init()Nadav Amit1-0/+9
2020-07-01kvm-unit-tests: nSVM: Test that DR6[63:32], DR7[63:32] and EFER reserved bits...Krish Sadhukhan2-8/+53
2020-07-01x86: nVMX: Print more (accurate) info if RDTSC diff test failsSean Christopherson1-5/+6
2020-07-01x86: svm: avoid advancing rip incorrectly on exc_injectNadav Amit1-2/+2
2020-07-01x86: svm: use PML4E in npt_rsvd_pfwalk_prepareNadav Amit3-2/+8
2020-07-01x86: svm: flush TLB on each testNadav Amit1-0/+1
2020-07-01x86: svm: check TSC adjust supportNadav Amit1-1/+6
2020-07-01x86: Remove boot_idt assembly assignmentNadav Amit1-3/+0
2020-06-29x86: pmu: fix failures on 32-bit due to wrong masksNadav Amit1-4/+4
2020-06-26x86: realmode: fix lss testNadav Amit1-2/+2
2020-06-26x86: realmode: hlt loop as fallback on exitNadav Amit1-0/+4
2020-06-26x86: realmode: initialize idtrNadav Amit1-0/+2
2020-06-25x86: setup segment registers before percpu areasPaolo Bonzini1-4/+4
2020-06-25x86: fix smp_stacktop on 32-bitNadav Amit1-1/+1
2020-06-25x86: fix stack pointer after callPaolo Bonzini1-0/+1
2020-06-25x86: move IDT away from address 0Paolo Bonzini2-4/+17
2020-06-24Revert "SVM: move guest past HLT"Vitaly Kuznetsov1-8/+0
2020-06-24x86: Initialize segment selectorsNadav Amit1-6/+11
2020-06-24x86: skip hyperv_clock test when host clocksource is not TSCVitaly Kuznetsov1-0/+1
2020-06-23Merge tag 'pull-request-2020-06-16' of https://gitlab.com/huth/kvm-unit-testsPaolo Bonzini3-4/+9
2020-06-22Fixes for the umip testThomas Huth1-2/+4
2020-06-22x86/cstart.S: initialize stack before using itClaudio Imbrenda1-1/+1
2020-06-22nVMX: Extend EPT cap MSR test to allow 5-level EPTSean Christopherson1-0/+1
2020-06-22nVMX: Mark bit 39 of MSR_IA32_VMX_EPT_VPID_CAP as reservedSean Christopherson1-1/+0
2020-06-22nVMX: Refactor the EPT/VPID MSR cap check to make it readableSean Christopherson2-2/+22
2020-06-22nVMX: Extend EPTP test to allow 5-level EPTSean Christopherson2-4/+9
2020-06-22SVM: add test for nested guest RIP corruptionMaxim Levitsky1-0/+102
2020-06-16x86: disable SSE on 32-bit hostsPaolo Bonzini1-0/+1
2020-06-16x86: disable SSE on 32-bit hostsPaolo Bonzini1-0/+1
2020-06-16vmx_tests: Silence warning from ClangThomas Huth1-1/+1
2020-06-16x86: use inline asm to retrieve stack pointerBill Wendling1-2/+6
2020-06-16x86: use a non-negative number in shiftBill Wendling1-1/+1
2020-06-16Always compile the kvm-unit-tests with -fno-commonThomas Huth1-0/+1
2020-06-16Fixes for the umip testThomas Huth1-2/+4
2020-06-16x86/pmu: Fix compilation on 32-bit hostsThomas Huth1-1/+1
2020-06-10x86: always set up SMPPaolo Bonzini32-41/+6
2020-06-01x86: realmode: Add suffixes for push, pop and iretRoman Bolshakov1-16/+16
2020-05-29x86: pmu: Test full-width counter writes supportLike Xu1-24/+101
2020-05-29access: disable phys-bits=36 for nowPaolo Bonzini1-1/+1
2020-05-18x86: realmode: Test interrupt delivery after STIRoman Bolshakov1-0/+21
2020-05-09svm_tests: add RSM intercept testPaolo Bonzini1-0/+49
2020-05-09x86: VMX: Add a VMX-preemption timer expiration testJim Mattson2-0/+102
2020-05-09svm: Test V_IRQ injectionCathy Avery1-0/+150
2020-05-06KVM: VMX: add test for NMI delivery during HLTCathy Avery1-0/+120
2020-05-05VMX: use xAPIC mode on all processorsPaolo Bonzini1-1/+1
2020-05-04svm: Fix nmi hlt test to fail test correctlyCathy Avery1-0/+1
2020-05-04x86: msr: Don't test bits 63:32 of SYSENTER MSRs on 32-bit buildsSean Christopherson1-2/+3
2020-05-04nVMX: Check EXIT_QUALIFICATION on VM-Enter failures due to bad guest stateSean Christopherson2-1/+9
2020-05-04x86: ioapic: Run physical destination mode test iff cpu_count() > 1Sean Christopherson1-1/+2
2020-05-04x86: nVMX: add new test for vmread/vmwrite flags preservationSimon Smith1-0/+140
2020-04-23SVM: move guest past HLTPaolo Bonzini1-0/+8
2020-04-23nVMX: Add testcase to cover VMWRITE to nonexistent CR3-target valuesSean Christopherson1-0/+4
2020-04-23x86: svm: call default_prepare from exc_inject_preparePaolo Bonzini1-2/+3
2020-04-23x86: VMX: Add another corner-case VMX-preemption timer testJim Mattson1-0/+104
2020-04-23x86: nVMX: Add some corner-case VMX-preemption timer testsJim Mattson1-0/+120
2020-04-23x86: access: Add tests for reserved bits of guest physical addressMohammed Gamal2-4/+32
2020-04-21kvm-unit-tests: nSVM: Test that CR0[63:32] are not set on VMRUN of nested guestsKrish Sadhukhan1-0/+14
2020-04-17x86: VMX: test MTF VM-exit event injectionOliver Upton1-2/+11
2020-04-16kvm-unit-tests: nSVM: Test CR0.CD and CR0.NW combination on VMRUN of nested g...Krish Sadhukhan1-1/+27
2020-04-15svm: add a test for exception injectionPaolo Bonzini1-0/+70
2020-04-09svm: Add test cases around NMI injection with HLTCathy Avery1-0/+103
2020-04-09svm: Add test cases around NMI injectionCathy Avery1-0/+82
2020-03-31x86: vmx: skip atomic_switch_overflow_msrs_test on bare metalNadav Amit1-1/+4
2020-03-31x86: vmx: Fix "EPT violation - paging structure" testNadav Amit1-8/+9
2020-03-31x86: access: Shadow CR0, CR4 and EFER to avoid unnecessary VM-ExitsSean Christopherson1-18/+27
2020-03-31x86: Reload SS when switching to 5-level page tablesSean Christopherson1-0/+3
2020-03-31x86: Run unit tests with --no-reboot so shutdowns show up as failuresSean Christopherson1-1/+1
2020-03-18kvm-unit-test: nVMX: Test GUEST_BNDCFGS VM-Entry control on vmentry of nested...Krish Sadhukhan1-0/+45
2020-03-18kvm-unit-test: nSVM: Test SVME.EFER on VMRUN of nested guestsKrish Sadhukhan1-0/+22
2020-03-18kvm-unit-test: nSVM: Add alternative (v2) test format for nested guestsKrish Sadhukhan3-18/+64
2020-03-18svm: move VMCB out of struct svm_testPaolo Bonzini3-89/+89
2020-03-18Merge branch 'restructure-svm' into HEADPaolo Bonzini4-1651/+1703
2020-03-18kvm-unit-test: nSVM: Restructure nSVM test codeKrish Sadhukhan4-1499/+1551
2020-03-18x86: vmx: Expect multiple error codes on HOST_EFER corruptionNadav Amit1-1/+23
2020-03-17kvm-unit-test: VMX: Add enum for GUEST_BNDCFGS field and LOAD_BNDCFGS vmentry...Krish Sadhukhan1-0/+2
2020-03-17x86: Fix the logical destination mode testNitesh Narayan Lal2-5/+8
2020-03-14nVMX: Pass exit reason enum to print_vmexit_info()Sean Christopherson3-29/+28
2020-03-14nVMX: Pass exit reason union to is_hypercall()Sean Christopherson1-12/+7
2020-03-14nVMX: Pass exit reason union to v1 exit handlersSean Christopherson3-115/+88
2020-03-14nVMX: Expose __enter_guest() and consolidate guest state test codeSean Christopherson3-92/+40
2020-03-14nVMX: Drop redundant check for guest terminationSean Christopherson1-10/+0
2020-03-14nVMX: Consolidate non-canonical code in test_canonical()Sean Christopherson1-23/+17
2020-03-14nVMX: Refactor VM-Entry "failure" struct into "result"Sean Christopherson3-79/+112
2020-03-14nVMX: Eliminate superfluous entry_failure_handler() wrapperSean Christopherson1-16/+3
2020-03-05x86: Move definition of some exception vectors into processor.hXiaoyao Li2-0/+2
2020-03-05svm: Add test cases around interrupt injection and haltingCathy Avery1-0/+141
2020-03-05svm: rename and comment the pending_event_vmask testPaolo Bonzini1-9/+16
2020-03-05svm: allow specifying the tests to be runPaolo Bonzini1-1/+45
2020-02-28x86: VMX: the "noclone" attribute is not neededPaolo Bonzini1-1/+1
2020-02-28svm: change operand to output-only for matching constraintBill Wendling1-2/+2
2020-02-28x86: realmode: syscall: add explicit size suffix to ambiguous instructionsBill Wendling2-4/+4
2020-02-28x86: emulator: use "SSE2" for the targetBill Wendling1-1/+1
2020-02-25x86: VMX: Add tests for monitor trap flagOliver Upton2-0/+158
2020-02-24vmx: tweak XFAILS for #DB testPaolo Bonzini1-2/+2
2020-02-24x86: pmu: Test perfctr overflow after WRMSR on a running counterEric Hankland1-1/+18
2020-02-05x86: provide enabled and disabled variation of the PCID testPaolo Bonzini1-1/+6
2020-02-05x86: pmu: Test WRMSR on a running counterEric Hankland1-0/+16
2020-02-05x86: Fix the name for the SMEP CPUID bitSean Christopherson1-2/+2
2020-01-22x86: VMX: Check precondition for RDTSC testOliver Upton1-3/+3
2020-01-22Remove the old api folderThomas Huth1-18/+1
2020-01-21x86: VMX: Check EPT AD bits when enabled in ept_access_paddr()Oliver Upton1-0/+18
2020-01-21svm: replace set_host_if with prepare_gif_clear callbackPaolo Bonzini1-8/+6
2020-01-21svm: introduce prepare_gif_clear callbackPaolo Bonzini1-47/+84
2020-01-19kvm-unit-test: nVMX: Test GUEST_DR7 on vmentry of nested guestsKrish Sadhukhan1-0/+44
2020-01-18x86: Add a kvm module parameter check for vmware_backdoors testBabu Moger1-0/+1
2020-01-18x86: vmx: Remove max_index tracking in check_vmcs_field()Nadav Amit1-15/+3
2020-01-18x86: vmx: Comprehensive max VMCS field searchNadav Amit1-4/+34
2020-01-07x86: Add the cmpxchg8b test to the CIThomas Huth1-0/+4
2020-01-07x86: Add the setjmp test to the CIThomas Huth2-5/+6
2020-01-07x86: Fix coding style in setjmp.cThomas Huth1-12/+12
2019-12-18Update AMD instructions to conform to LLVM assemblerPeter Shier1-7/+8
2019-12-10Use #define for bit# 1 in GUEST_RFLAGSKrish Sadhukhan1-2/+2
2019-12-10kvm-unit-test: nVMX: Test GUEST_SYSENTER_ESP and GUEST_SYSENTER_EIP on vmentr...Krish Sadhukhan1-10/+13
2019-12-10kvm-unit-test: nVMX: Remove test_sysenter_field() and use test_canonical() in...Krish Sadhukhan1-26/+2
2019-12-10kvm-unit-test: nVMX: Modify test_canonical() to process guest fields alsoKrish Sadhukhan1-13/+41
2019-12-10svm: Verify the effect of V_INTR_MASKING on INTR interruptsCathy Avery1-2/+103
2019-12-06Switch the order of the parameters in report() and report_xfail()Thomas Huth34-882/+950
2019-12-04x86: Add RDTSC testAaron Lewis2-0/+94
2019-11-23x86: ioapic: Test physical and logical destination modeNitesh Narayan Lal1-0/+65
2019-11-23x86: ioapic: Add the smp configuration to ioapic unittestNitesh Narayan Lal1-0/+1
2019-11-23x86: vmx: Fix the check whether CMCI is supportedNadav Amit1-9/+1
2019-11-21x86: add tests for MSR_IA32_TSX_CTRLPaolo Bonzini4-1/+78
2019-11-15x86/unittests.cfg: Increase the timeout of the sieve test to 180sThomas Huth1-0/+1
2019-11-15x86: Fix the register order to match struct regsAaron Lewis1-6/+6
2019-11-15x86: VMX: Add tests for nested "load IA32_PERF_GLOBAL_CTRL"Oliver Upton1-0/+161
2019-11-15x86: VMX: Make guest_state_test_main() check state from nested VMOliver Upton1-3/+18
2019-11-15x86: vmx: Verify pending LAPIC INIT event consume when exit on VMX_INITLiran Alon1-2/+43
2019-11-15x86: vmx: Verify L2 modification to L1 LAPIC TPR works when L0 use TPR thresholdLiran Alon2-1/+51
2019-11-13svm: Verify a pending interrupt queued before entering the guest is not lostCathy Avery1-0/+93
2019-11-13svm: run tests with host IF=1Paolo Bonzini1-1/+4
2019-11-11x86: pku: fix parameter passingChenyi Qiang1-0/+1
2019-11-11x86: smap: Use correct reg to pass a parameterChenyi Qiang1-1/+1
2019-11-05x86: realmode: initialize inregs with a stackBill Wendling1-63/+95
2019-11-05x86: realmode: save and restore %esBill Wendling1-5/+9
2019-11-04x86: VMX: Mask advanced VM-exit infoNadav Amit2-0/+9
2019-11-04x86: Skip APIC-access address tests beyond mapped RAMJim Mattson1-148/+139
2019-10-21x86: realmode: use ARRAY_SIZE in test_long_jmpPaolo Bonzini1-1/+1
2019-10-21x86: realmode: fix esp in call testBill Wendling1-1/+3
2019-10-08x86: svm: run svm.flat unit tests with -cpu hostVitaly Kuznetsov1-1/+1
2019-10-03vmexit: measure IPI and EOI costPaolo Bonzini1-0/+16
2019-10-03x86: vmx_tests: add GUEST_EFER testsPaolo Bonzini1-17/+70
2019-10-03x86: vmx_tests: prepare for extending guest state area testsPaolo Bonzini1-13/+9
2019-10-03x86: vmx_tests: extend HOST_EFER testsPaolo Bonzini1-52/+74
2019-10-03x86: vmx_tests: gate load guest PAT tests on the correct bitPaolo Bonzini1-1/+1
2019-10-03svm: Fixed error code comparison in test npt_rsvd_pfwalkCathy Avery1-1/+1
2019-10-03x86: VMX: MSR_IA32_VMX_MISC[30] is not MBZNadav Amit1-1/+1
2019-09-26x86: vmx: Test INIT processing during various CPU VMX statesLiran Alon2-1/+151
2019-09-25x86: vmx: Allow tests to hand-over test-vmcs between CPUsLiran Alon1-0/+1
2019-09-25x86: vmx: Expose util to enable VMX in MSR_IA32_FEATURE_CONTROLLiran Alon2-8/+15
2019-09-25x86: vmx: Use MSR_IA32_FEATURE_CONTROL bits namesLiran Alon1-8/+24
2019-09-25x86: vmx: Support VMXON on AP CPUs VMX regionLiran Alon2-15/+19
2019-09-25x86: vmx: Expose vmx_init() to be used on AP CPUsLiran Alon2-1/+3
2019-09-25x86: vmx: Prepare init_vmx() for VMX support on AP CPUsLiran Alon1-8/+14
2019-09-25x86: vmx: Refactor init of VMX caps to separate functionLiran Alon1-12/+18
2019-09-25x86: emulator: use "q" operand modifierBill Wendling1-1/+1
2019-09-25x86: debug: use a constraint that doesn't allow a memory operandBill Wendling1-2/+2
2019-09-25kvm-unit-test: x86: Add RDPRU testJim Mattson3-0/+31
2019-09-24x86: nvmx: test max atomic switch MSRsMarc Orr3-2/+133
2019-09-24x86: setjmp: check expected value of "i" to give better feedbackBill Wendling1-8/+15
2019-09-17kvm-unit-test: nVMX: Fix 95d6d2c32288 ("nVMX: Test Host Segment Registers and...Krish Sadhukhan1-43/+33
2019-09-17kvm-unit-test: nVMX: Check Host Address Space Size on vmentry of nested guestsKrish Sadhukhan1-0/+63
2019-09-11x86: VMX: INVEPT after modifying PA mapping in ept_untwiddleOliver Upton1-0/+1
2019-09-11x86: nVMX: Fix wrong reserved bits of error-codeNadav Amit1-3/+3
2019-09-11x86: nVMX: Do not use test_skip() when multiple tests are runNadav Amit1-4/+4
2019-09-10x86: Declare online_cpus based on MAX_TEST_CPUSSean Christopherson2-2/+2
2019-08-23x86: Fix breakage of fw_cfg for 32-bit unit testsSean Christopherson1-2/+0
2019-08-23x86: Attempt to parse ACPI tables only when neededSean Christopherson1-5/+7
2019-08-23x86: Skip EPT tests that involve unrestricted guest when URG is disabledSean Christopherson1-0/+4
2019-08-23x86: Don't test 64-bit-only MSRs in 32-bit buildSean Christopherson1-1/+1
2019-08-20x86: Support environments without test-devicesNadav Amit4-6/+28
2019-08-09x86: vmx: Fix comment typo for ept_access_paddr()Oliver Upton1-2/+3
2019-08-09kvm-unit-test: x86: Replace cpuid/cpuid_indexed calls with this_cpu_has()Krish Sadhukhan16-84/+40
2019-08-09x86: access: avoid undefined behaviorPaolo Bonzini1-2/+3
2019-07-11tscdeadline_latency: Check condition first before loopPeter Xu1-2/+2
2019-07-11nVMX: Test Host Segment Registers and Descriptor Tables on vmentry of nested ...Krish Sadhukhan1-0/+159
2019-07-02x86: Remove duplicate definitions of write_cr4_checking() and put it in libraryKrish Sadhukhan4-32/+0
2019-07-02x86: Reset lapic after bootNadav Amit2-0/+4
2019-07-02x86: Load segments after GDT loadingNadav Amit1-6/+17
2019-07-02x86: vmx: Consider CMCI enabled based on IA32_MCG_CAP[10]Nadav Amit1-5/+14
2019-07-02x86: Remove assumptions on CR4.MCENadav Amit1-14/+15
2019-06-18x86: vmx: Mask undefined bits in exit qualificationsNadav Amit2-8/+16
2019-06-13x86: re-enable asyncpf testPaolo Bonzini1-2/+3
2019-06-13nVMX: Test "Load IA32_EFER" VM-exit control on vmentry of nested guestsKrish Sadhukhan1-0/+121
2019-06-13x86: Add a wrapper to check if the CPU supports NX bit in MSR_EFERKrish Sadhukhan1-1/+1
2019-06-06Add #define for "load IA32_PERF_GLOBAL_CONTROL" bitKrish Sadhukhan1-0/+1
2019-06-06Rename report_guest_pat_test to report_guest_state_testKrish Sadhukhan1-13/+16
2019-06-06Rename guest_pat_main to guest_state_test_mainKrish Sadhukhan1-2/+2
2019-06-06x86: Fix SMP stacksNadav Amit1-2/+2
2019-05-22vmx_tests: use enter_guest if guest state is validPaolo Bonzini1-1/+1
2019-05-20x86: APIC IDs might not be consecutiveNadav Amit3-7/+34
2019-05-20x86: Fix max VMCS field encoding index checkNadav Amit1-2/+2