Rebased on top of upstream head commit:
02d8befe99 pretty_print_stacks: modify relative path calculation
Update Note:
* Bugs closed after this update:
- LP: #1991762 msr in ubuntu_kvm_unit_tests failed with timeout
on J (error: kvm run failed Operation not permitted)
* Bugs opened after this update:
- LP: #2047344 msr from ubuntu_kvm_unit_tests failed with "FAIL:
Expected #GP on RDSMR(x2APIC MSR 0x82e)"
- LP: #2047357 msr from ubuntu_kvm_unit_tests failed with "FAIL:
Expected #GP on WRSMR(x2APIC MSR 0x837, 0xffffffffffffffff),
got vector 0"
- LP: #2047369 msr from ubuntu_kvm_unit_tests failed with "FAIL:
Expected #GP on WRSMR(MSR_FS_BASE, 0xaaaaaaaaaaaaaaaa), got
vector 0 on J-realtime openstack
* sru-xenial branch untouched.
vmx test contain a bunch of different tests.
Split failed test cases in vmx out as standalone tests to improve our
test granularity. Make it easier to do result hinting and allow this
test to finish properly without being terminated prematurely.
This SAUCE patch will split the following tests out of vmx:
* rdtsc_vmexit_diff_test
* test_vmread_flags_touch
* test_vmwrite_flags_touch
* test_vmwrite_vmread
* test_vmxon
* vmx_apic_passthrough_test
* vmx_controls_test
* vmx_cr_load_test
* vmx_cr4_osxsave_test
* vmx_db_test
* vmx_guest_state_area_test
* vmx_hlt_with_rvi_test
* vmx_host_state_area_test
* vmx_intr_window_test
* vmx_mtf_test
* vmx_mtf_pdpte_test
* vmx_nmi_window_test
* vmx_pending_event_test
* vmx_preemption_timer_tf_test
* vmx_preemption_timer_zero_test
* vmx_store_tsc_test
Signed-off-by: Po-Hsu Lin <email address hidden>
02d8bef...
by
Nina Schoetterl-Glausch <email address hidden>
Don't assume we can get a relative path by cutting of certain prefixes,
since this isn't guaranteed to work.
Instead use a library function.
Also normalize paths in order to take care of symlinks.
If a return address is zero, the script will pass -1 to addr2line which
it considers an invalid flag.
Zero is an unlikely return address, but we might see it, for example
because the backtrace is unreliable on s390x if there is an interrupt
frame on the stack.
- Fix goofs in the configuration related to the new FEP access testcases
- Add a FEP test for an CPL>DPL non-conforming segment load
- Fix issues with the RDPID testcase in the "tsc" test
- Fix various assembler warnings
- Add x2APIC testcases to the "msr" test
- Add PRED_CMD and FLUSH_CMD testscases to the "msr" test
5cf6a3f...
by
Sean Christopherson <email address hidden>
x86/msr: Add testcases for MSR_IA32_FLUSH_CMD and its L1D_FLUSH command
Add test coverage to verify MSR_IA32_FLUSH_CMD is write-only, that it can
be written with '0' (nop command) and '1' (L1D flush command) when the L1D
flush command is suported, and that writing any other bit (1-63) triggers
a #GP due to the bits/commands being reserved.
Signed-off-by: Sean Christopherson <email address hidden>
Signed-off-by: Paolo Bonzini <email address hidden>
Message-Id: <email address hidden>
Signed-off-by: Paolo Bonzini <email address hidden>
fbd9808...
by
Sean Christopherson <email address hidden>
x86/msr: Add testcases for MSR_IA32_PRED_CMD and its IBPB command
Add test coverage to verify MSR_IA32_PRED_CMD is write-only, that it can
be written with '0' (nop command) and '1' (IBPB command) when IBPB is
supported by the CPU (SPEC_CTRL on Intel, IBPB on AMD). Do not check
that writing any other bit (1-63) triggers a #GP due to the bits/commands
being reserved, because some versions of the microcode do not do that.
Signed-off-by: Sean Christopherson <email address hidden>
Signed-off-by: Paolo Bonzini <email address hidden>
Message-Id: <email address hidden>
Signed-off-by: Paolo Bonzini <email address hidden>
4fba1a2...
by
Sean Christopherson <email address hidden>
x86: Add define for MSR_IA32_PRED_CMD's PRED_CMD_IBPB (bit 0)
Add a define for PRED_CMD_IBPB and use it to replace the open coded '1' in
the nVMX library.
Signed-off-by: Sean Christopherson <email address hidden>
Signed-off-by: Paolo Bonzini <email address hidden>
Message-Id: <email address hidden>
Signed-off-by: Paolo Bonzini <email address hidden>
7c47d0d...
by
Sean Christopherson <email address hidden>
x86/msr: Add testcases for x2APIC MSRs
Verify that reads and writes to x2APIC MSRs #GP when x2APIC is disabled,
and that reads and writes honor KVM's emulation (which follows Intel
behavior) when x2APIC is enabled. E.g. verify that writes to read-only
registers #GP, reads to write-onliy registers #GP, etc...
Write '0' to write-only registers to play nice with AMD's more restrictive
behavior (Intel doesn't care what value is written).
Note, the x2APIC enabled testcases will likely fail if run on AMD bare
metal as the KVM doesn't emulate registers above self-IPI, i.e. MSRs that
are expected to #GP are presumably handled by AMD hardware.
Signed-off-by: Sean Christopherson <email address hidden>
Signed-off-by: Paolo Bonzini <email address hidden>
Message-Id: <email address hidden>
Signed-off-by: Paolo Bonzini <email address hidden>