2019-10-30 14:17:55

by kernel test robot

[permalink] [raw]
Subject: [KVM] 671ddc700f: kvm-unit-tests.vmx.fail

FYI, we noticed the following commit (built with gcc-7):

commit: 671ddc700fd08b94967b1e2a937020e30c838609 ("KVM: nVMX: Don't leak L1 MMIO regions to L2")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: kvm-unit-tests
with following parameters:

ucode: 0x27



on test machine: 8 threads Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz with 8G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):




If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>

2019-10-29 16:17:51 ./run_tests.sh
PASS apic-split (53 tests)
PASS ioapic-split (19 tests)
PASS apic (53 tests)
PASS ioapic (19 tests)
PASS smptest (1 tests)
PASS smptest3 (1 tests)
PASS vmexit_cpuid
PASS vmexit_vmcall
PASS vmexit_mov_from_cr8
PASS vmexit_mov_to_cr8
PASS vmexit_inl_pmtimer
PASS vmexit_ipi
PASS vmexit_ipi_halt
PASS vmexit_ple_round_robin
PASS vmexit_tscdeadline
PASS vmexit_tscdeadline_immed
PASS access
SKIP smap (0 tests)
SKIP pku (0 tests)
PASS asyncpf (1 tests)
PASS emulator (125 tests, 2 skipped)
PASS eventinj (13 tests)
PASS hypercall (2 tests)
PASS idt_test (4 tests)
PASS memory (8 tests)
PASS msr (12 tests)
PASS pmu (67 tests)
FAIL vmware_backdoors (11 tests, 5 unexpected failures)
PASS port80
PASS realmode
PASS s3
PASS sieve
PASS syscall (2 tests)
PASS tsc (3 tests)
PASS tsc_adjust (5 tests)
PASS xsave (17 tests)
PASS rmap_chain
SKIP svm (0 tests)
SKIP taskswitch (i386 only)
SKIP taskswitch2 (i386 only)
PASS kvmclock_test
PASS pcid (3 tests)
PASS rdpru (1 tests)
PASS umip (21 tests)
FAIL vmx (timeout; duration=90s)
SKIP ept (0 tests)
SKIP vmx_eoi_bitmap_ioapic_scan (1 tests, 1 skipped)
SKIP vmx_hlt_with_rvi_test (1 tests, 1 skipped)
SKIP vmx_apicv_test (2 tests, 2 skipped)
PASS vmx_apic_passthrough_thread (8 tests)
PASS vmx_init_signal_test (8 tests)
PASS vmx_vmcs_shadow_test (142218 tests)
PASS debug (11 tests)
PASS hyperv_synic (1 tests)
SKIP hyperv_connections (1 tests, 1 skipped)
PASS hyperv_stimer (12 tests)
PASS hyperv_clock
PASS intel_iommu (11 tests)



To reproduce:

git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp run job.yaml



Thanks,
Oliver Sang


Attachments:
(No filename) (2.87 kB)
config-5.4.0-rc4-00037-g671ddc700fd08 (203.86 kB)
job-script (5.03 kB)
dmesg (105.44 kB)
kvm-unit-tests (2.06 kB)
job.yaml (4.16 kB)
reproduce (19.00 B)
Download all attachments

2019-10-30 16:58:31

by Jim Mattson

[permalink] [raw]
Subject: Re: [KVM] 671ddc700f: kvm-unit-tests.vmx.fail

On Wed, Oct 30, 2019 at 7:16 AM kernel test robot <[email protected]> wrote:
>
> FYI, we noticed the following commit (built with gcc-7):
>
> commit: 671ddc700fd08b94967b1e2a937020e30c838609 ("KVM: nVMX: Don't leak L1 MMIO regions to L2")
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
>
> in testcase: kvm-unit-tests
> with following parameters:
>
> ucode: 0x27
>
>
>
> on test machine: 8 threads Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz with 8G memory
>
> caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
>
>
>
>
> If you fix the issue, kindly add following tag
> Reported-by: kernel test robot <[email protected]>
>
> 2019-10-29 16:17:51 ./run_tests.sh
> [32mPASS [0m apic-split (53 tests)
> [32mPASS [0m ioapic-split (19 tests)
> [32mPASS [0m apic (53 tests)
> [32mPASS [0m ioapic (19 tests)
> [32mPASS [0m smptest (1 tests)
> [32mPASS [0m smptest3 (1 tests)
> [32mPASS [0m vmexit_cpuid
> [32mPASS [0m vmexit_vmcall
> [32mPASS [0m vmexit_mov_from_cr8
> [32mPASS [0m vmexit_mov_to_cr8
> [32mPASS [0m vmexit_inl_pmtimer
> [32mPASS [0m vmexit_ipi
> [32mPASS [0m vmexit_ipi_halt
> [32mPASS [0m vmexit_ple_round_robin
> [32mPASS [0m vmexit_tscdeadline
> [32mPASS [0m vmexit_tscdeadline_immed
> [32mPASS [0m access
> [33mSKIP [0m smap (0 tests)
> [33mSKIP [0m pku (0 tests)
> [32mPASS [0m asyncpf (1 tests)
> [32mPASS [0m emulator (125 tests, 2 skipped)
> [32mPASS [0m eventinj (13 tests)
> [32mPASS [0m hypercall (2 tests)
> [32mPASS [0m idt_test (4 tests)
> [32mPASS [0m memory (8 tests)
> [32mPASS [0m msr (12 tests)
> [32mPASS [0m pmu (67 tests)
> [31mFAIL [0m vmware_backdoors (11 tests, 5 unexpected failures)
> [32mPASS [0m port80
> [32mPASS [0m realmode
> [32mPASS [0m s3
> [32mPASS [0m sieve
> [32mPASS [0m syscall (2 tests)
> [32mPASS [0m tsc (3 tests)
> [32mPASS [0m tsc_adjust (5 tests)
> [32mPASS [0m xsave (17 tests)
> [32mPASS [0m rmap_chain
> [33mSKIP [0m svm (0 tests)
> [33mSKIP [0m taskswitch (i386 only)
> [33mSKIP [0m taskswitch2 (i386 only)
> [32mPASS [0m kvmclock_test
> [32mPASS [0m pcid (3 tests)
> [32mPASS [0m rdpru (1 tests)
> [32mPASS [0m umip (21 tests)
> [31mFAIL [0m vmx (timeout; duration=90s)
> [33mSKIP [0m ept (0 tests)
> [33mSKIP [0m vmx_eoi_bitmap_ioapic_scan (1 tests, 1 skipped)
> [33mSKIP [0m vmx_hlt_with_rvi_test (1 tests, 1 skipped)
> [33mSKIP [0m vmx_apicv_test (2 tests, 2 skipped)
> [32mPASS [0m vmx_apic_passthrough_thread (8 tests)
> [32mPASS [0m vmx_init_signal_test (8 tests)
> [32mPASS [0m vmx_vmcs_shadow_test (142218 tests)
> [32mPASS [0m debug (11 tests)
> [32mPASS [0m hyperv_synic (1 tests)
> [33mSKIP [0m hyperv_connections (1 tests, 1 skipped)
> [32mPASS [0m hyperv_stimer (12 tests)
> [32mPASS [0m hyperv_clock
> [32mPASS [0m intel_iommu (11 tests)
>
>
>
> To reproduce:
>
> git clone https://github.com/intel/lkp-tests.git
> cd lkp-tests
> bin/lkp install job.yaml # job file is attached in this email
> bin/lkp run job.yaml
>
>
>
> Thanks,
> Oliver Sang

It's unclear to me what the delta is, but I do see that the 'vmx'
suite has failed. That is to be expected if you're getting your
kvm-unit-tests from the 'master' branch of the kvm-unit-tests repo.
You will need commit 591b5b54bba1 ("x86: Skip APIC-access address
tests beyond mapped RAM"), which is in the 'next' branch of the
kvm-unit-tests repo, but which has not yet made it to the 'master'
branch.

2019-11-06 14:39:58

by kernel test robot

[permalink] [raw]
Subject: Re: [KVM] 671ddc700f: kvm-unit-tests.vmx.fail

On Wed, Oct 30, 2019 at 09:56:16AM -0700, Jim Mattson wrote:
> On Wed, Oct 30, 2019 at 7:16 AM kernel test robot <[email protected]> wrote:
> >
> > FYI, we noticed the following commit (built with gcc-7):
> >
> > commit: 671ddc700fd08b94967b1e2a937020e30c838609 ("KVM: nVMX: Don't leak L1 MMIO regions to L2")
> > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
> >
> > in testcase: kvm-unit-tests
> > with following parameters:
> >
> > ucode: 0x27
> >
> >
> >
> > on test machine: 8 threads Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz with 8G memory
> >
> > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
> >
> >
> >
> >
> > If you fix the issue, kindly add following tag
> > Reported-by: kernel test robot <[email protected]>
> >
> > 2019-10-29 16:17:51 ./run_tests.sh
> > [32mPASS [0m apic-split (53 tests)
> > [32mPASS [0m ioapic-split (19 tests)
> > [32mPASS [0m apic (53 tests)
> > [32mPASS [0m ioapic (19 tests)
> > [32mPASS [0m smptest (1 tests)
> > [32mPASS [0m smptest3 (1 tests)
> > [32mPASS [0m vmexit_cpuid
> > [32mPASS [0m vmexit_vmcall
> > [32mPASS [0m vmexit_mov_from_cr8
> > [32mPASS [0m vmexit_mov_to_cr8
> > [32mPASS [0m vmexit_inl_pmtimer
> > [32mPASS [0m vmexit_ipi
> > [32mPASS [0m vmexit_ipi_halt
> > [32mPASS [0m vmexit_ple_round_robin
> > [32mPASS [0m vmexit_tscdeadline
> > [32mPASS [0m vmexit_tscdeadline_immed
> > [32mPASS [0m access
> > [33mSKIP [0m smap (0 tests)
> > [33mSKIP [0m pku (0 tests)
> > [32mPASS [0m asyncpf (1 tests)
> > [32mPASS [0m emulator (125 tests, 2 skipped)
> > [32mPASS [0m eventinj (13 tests)
> > [32mPASS [0m hypercall (2 tests)
> > [32mPASS [0m idt_test (4 tests)
> > [32mPASS [0m memory (8 tests)
> > [32mPASS [0m msr (12 tests)
> > [32mPASS [0m pmu (67 tests)
> > [31mFAIL [0m vmware_backdoors (11 tests, 5 unexpected failures)
> > [32mPASS [0m port80
> > [32mPASS [0m realmode
> > [32mPASS [0m s3
> > [32mPASS [0m sieve
> > [32mPASS [0m syscall (2 tests)
> > [32mPASS [0m tsc (3 tests)
> > [32mPASS [0m tsc_adjust (5 tests)
> > [32mPASS [0m xsave (17 tests)
> > [32mPASS [0m rmap_chain
> > [33mSKIP [0m svm (0 tests)
> > [33mSKIP [0m taskswitch (i386 only)
> > [33mSKIP [0m taskswitch2 (i386 only)
> > [32mPASS [0m kvmclock_test
> > [32mPASS [0m pcid (3 tests)
> > [32mPASS [0m rdpru (1 tests)
> > [32mPASS [0m umip (21 tests)
> > [31mFAIL [0m vmx (timeout; duration=90s)
> > [33mSKIP [0m ept (0 tests)
> > [33mSKIP [0m vmx_eoi_bitmap_ioapic_scan (1 tests, 1 skipped)
> > [33mSKIP [0m vmx_hlt_with_rvi_test (1 tests, 1 skipped)
> > [33mSKIP [0m vmx_apicv_test (2 tests, 2 skipped)
> > [32mPASS [0m vmx_apic_passthrough_thread (8 tests)
> > [32mPASS [0m vmx_init_signal_test (8 tests)
> > [32mPASS [0m vmx_vmcs_shadow_test (142218 tests)
> > [32mPASS [0m debug (11 tests)
> > [32mPASS [0m hyperv_synic (1 tests)
> > [33mSKIP [0m hyperv_connections (1 tests, 1 skipped)
> > [32mPASS [0m hyperv_stimer (12 tests)
> > [32mPASS [0m hyperv_clock
> > [32mPASS [0m intel_iommu (11 tests)
> >
> >
> >
> > To reproduce:
> >
> > git clone https://github.com/intel/lkp-tests.git
> > cd lkp-tests
> > bin/lkp install job.yaml # job file is attached in this email
> > bin/lkp run job.yaml
> >
> >
> >
> > Thanks,
> > Oliver Sang
>
> It's unclear to me what the delta is, but I do see that the 'vmx'
> suite has failed. That is to be expected if you're getting your
> kvm-unit-tests from the 'master' branch of the kvm-unit-tests repo.
> You will need commit 591b5b54bba1 ("x86: Skip APIC-access address
> tests beyond mapped RAM"), which is in the 'next' branch of the
> kvm-unit-tests repo, but which has not yet made it to the 'master'
> branch.

Thanks for information! We will wait for master upgrade to update our test binary.

2019-11-06 15:19:27

by Sean Christopherson

[permalink] [raw]
Subject: Re: [KVM] 671ddc700f: kvm-unit-tests.vmx.fail

On Wed, Nov 06, 2019 at 10:45:48PM +0800, Oliver Sang wrote:
> On Wed, Oct 30, 2019 at 09:56:16AM -0700, Jim Mattson wrote:
> > It's unclear to me what the delta is, but I do see that the 'vmx'
> > suite has failed. That is to be expected if you're getting your
> > kvm-unit-tests from the 'master' branch of the kvm-unit-tests repo.
> > You will need commit 591b5b54bba1 ("x86: Skip APIC-access address
> > tests beyond mapped RAM"), which is in the 'next' branch of the
> > kvm-unit-tests repo, but which has not yet made it to the 'master'
> > branch.
>
> Thanks for information! We will wait for master upgrade to update our test
> binary.

This reminds me, are we still planning on creating "stable" branches for
kvm-unit-tests[*]? This topic of came up in a discussion at KVM Forum as
well, though I can't remember any of the details.

Paolo?

[*] https://lkml.kernel.org/r/[email protected]