[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aVv6xaI0hYwgB0ce@google.com>
Date: Mon, 5 Jan 2026 09:54:13 -0800
From: Sean Christopherson <seanjc@...gle.com>
To: Yosry Ahmed <yosry.ahmed@...ux.dev>
Cc: Paolo Bonzini <pbonzini@...hat.com>, Andrew Jones <andrew.jones@...ux.dev>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [kvm-unit-tests PATCH] x86: Increase the timeout for vmx_pf_{vpid/no_vpid/invvpid}_test
On Fri, Jan 02, 2026, Yosry Ahmed wrote:
> When running the tests on some older CPUs (e.g. Skylake) on a kernel
> with some debug config options enabled (e.g. CONFIG_DEBUG_VM,
> CONFIG_PROVE_LOCKING, ..), the tests timeout. In this specific setup,
> the tests take between 4 and 5 minutes, so pump the timeout from 4 to 6
> minutes.
Ugh. Can anyone think of a not-insane way to skip these tests when running in
an environment that is going to be sloooooow? Because (a) a 6 minute timeout
could very well hide _real_ KVM bugs, e.g. if is being too aggressive with TLB
flushes (speaking from experience) and (b) running a 5+ minute test is a likely
a waste of time/resources.
> Signed-off-by: Yosry Ahmed <yosry.ahmed@...ux.dev>
> ---
> x86/unittests.cfg | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/x86/unittests.cfg b/x86/unittests.cfg
> index 522318d32bf6..bb2b9f033b11 100644
> --- a/x86/unittests.cfg
> +++ b/x86/unittests.cfg
> @@ -427,7 +427,7 @@ test_args = "vmx_pf_vpid_test"
> qemu_params = -cpu max,+vmx
> arch = x86_64
> groups = vmx nested_exception nodefault
> -timeout = 240
> +timeout = 360
>
> [vmx_pf_invvpid_test]
> file = vmx.flat
> @@ -435,7 +435,7 @@ test_args = "vmx_pf_invvpid_test"
> qemu_params = -cpu max,+vmx
> arch = x86_64
> groups = vmx nested_exception nodefault
> -timeout = 240
> +timeout = 360
>
> [vmx_pf_no_vpid_test]
> file = vmx.flat
> @@ -443,7 +443,7 @@ test_args = "vmx_pf_no_vpid_test"
> qemu_params = -cpu max,+vmx
> arch = x86_64
> groups = vmx nested_exception nodefault
> -timeout = 240
> +timeout = 360
>
> [vmx_pf_exception_test_reduced_maxphyaddr]
> file = vmx.flat
> --
> 2.52.0.351.gbe84eed79e-goog
>
Powered by blists - more mailing lists