Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11282526ybi; Thu, 25 Jul 2019 13:20:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdJ41ZMGdUBsYpSjJ9Tsv5z3Kdhz4G9745o1vAb/+iTxsyH3A8YKxDFxr717zeqjTLF6Fx X-Received: by 2002:aa7:8f2c:: with SMTP id y12mr19069058pfr.38.1564086028445; Thu, 25 Jul 2019 13:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564086028; cv=none; d=google.com; s=arc-20160816; b=XC895kGK6qrZDfiqBxtvnH1Ei2v1zKzifu8DqTHn5innUuGNFdw/n44ORxGNw8xp46 ABZWvBGUMBVBzaTp30pXm4N1Goj2Yf00Gb7+xb9jkTFgCFXK7MHmOWOuqt0fndMXGEZi Hl7ciCPH/KPErwwpNzzRufuvqPDred073XithMclnMyw5g0mgIHOE1p3691HzHpFjnEv KXkSvkTloULztHtRl+Hn41KwpHP21+6n0w5VfjJnGEMtsG7fBxwFA93EbA5L9g44V3yw 8h8QQdhmek/mMtO29DVbKHJwYgYxQKURV1fNWqZjeBhH5R3IGlLe3eZvyj+EDEEzZVAY pKpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=t+P0HgQtVoSGPP4WNOjKgOLE6EijYeFIeYo8RF4X35w=; b=K3oA+QRsz15c1DHwonA8SjxmH2+2uLG3psHYW0S+DC6PLbmqVS03CE0FhUdGcYNPku DYc0ISe7zx9yO+yFuamwfIWPEr/UYoEPE43lUi9qJzyaTBTAyV4gCbJRk5HmC49WpDR/ JMrWmVCSqy0shVB4xyLaQjbcu/BUfGBUa8vcQtVh4+nwBJdQ7SYVxm+fa5t76OJCCCEb TAl7+AWZR7siy2lBHfxYsndz+Q6afSEF5BIewhmBq9tjXABUSCOhFlFbql4Ellsq5DJB FzErRnH7MN8DgC+xc8DgBDNrAECfY2iKqqG6vqG0KnhSfAf+9LbpPCd6F5Bc+eaaCU9T q+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JbeXsfGx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u16si20847470pjb.15.2019.07.25.13.20.12; Thu, 25 Jul 2019 13:20:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JbeXsfGx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726643AbfGYUTh (ORCPT + 99 others); Thu, 25 Jul 2019 16:19:37 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:37182 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbfGYUTh (ORCPT ); Thu, 25 Jul 2019 16:19:37 -0400 Received: by mail-io1-f67.google.com with SMTP id q22so99945217iog.4 for ; Thu, 25 Jul 2019 13:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=t+P0HgQtVoSGPP4WNOjKgOLE6EijYeFIeYo8RF4X35w=; b=JbeXsfGxZNECNWfw5yFkXZH+MNoz+D/swRQgzPMLghoyO2zRQSK3HbEdvUo4mJPIZ4 2U0Xtr3B76TNn1kn0lNgvsG8fEuIIBoZa/nkAPludlxPF2i9BiNbOLNsgHDSdqK97rVA 9NynPzqCCA/Blt6TUOOd/oqOyZ4koex1kH2dIYCg/9nu5CrFCyzlRjtGe/S4g4qlrwzG Db+dSHml4qN+iuUobdMw12MnsiLzFQP5V/8KTf8BxnuVXrHHcTQumHbGKORyp+796Etb SCRD4noYvRc0rK8mLYGPKD+EwN2waXezF9fLF/ik4NgVrMbxKjFcBUr3vkABM+p0i8mG 7v3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=t+P0HgQtVoSGPP4WNOjKgOLE6EijYeFIeYo8RF4X35w=; b=i/shJzYLdBUTbrs8LTPE/4CJvv+FQwECzteYFn/LujuX0ZO82I8+rfZxkVOXoksJBE wA4anvHlmlEPt9oIGlVucNIS7ciLVV4V4LfO55phSpCnP4ajDPz2zDWlzq5hWnuI5F5O XB33rUUvbHUYizziIRkay23vGbNs59coURrEOR+6KB5pvDUsrzjNhz3x7Uk4gzyELeP4 Ms8dhJ/CAy3U2R7Cfj6QDZ/WTnr8nklhZCgCONqgSKRxZ9OEnLAcowhl0MVp0EDqcjst Ibl1uqdv0S0QhvbtvD9FoktviNzobwnDCL3rjcrdJKg6ZMEkoI3DRV7T7DCgXcIcP983 EPdw== X-Gm-Message-State: APjAAAVvfGtJobNpTlYIplhLMdjvq9HLfMoxmNRGX3QLa8837yqWjBpO ya8JUpc+NQWvIhPGo53JimV+HQ== X-Received: by 2002:a6b:7909:: with SMTP id i9mr52428090iop.8.1564085975985; Thu, 25 Jul 2019 13:19:35 -0700 (PDT) Received: from localhost (c-24-7-195-109.hsd1.mn.comcast.net. [24.7.195.109]) by smtp.gmail.com with ESMTPSA id t19sm51448100iog.41.2019.07.25.13.19.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 13:19:35 -0700 (PDT) Date: Thu, 25 Jul 2019 15:19:33 -0500 From: Dan Rue To: Paolo Bonzini Cc: Sean Christopherson , Naresh Kamboju , Greg Kroah-Hartman , Anders Roxell , Ben Hutchings , wanpengli@tencent.com, Linus Torvalds , patches@kernelci.org, Linux Kernel Mailing List , lkft-triage@lists.linaro.org, linux- stable , Andrew Morton , Shuah Khan , Guenter Roeck , jmattson@google.com Subject: Re: [PATCH 5.2 000/413] 5.2.3-stable review Message-ID: <20190725201933.aiqh6oj7bacdwact@xps.therub.org> Mail-Followup-To: Paolo Bonzini , Sean Christopherson , Naresh Kamboju , Greg Kroah-Hartman , Anders Roxell , Ben Hutchings , wanpengli@tencent.com, Linus Torvalds , patches@kernelci.org, Linux Kernel Mailing List , lkft-triage@lists.linaro.org, linux- stable , Andrew Morton , Shuah Khan , Guenter Roeck , jmattson@google.com References: <20190725113437.GA27429@kroah.com> <230a5b34-d23e-8318-0b1f-d23ada7318e0@redhat.com> <20190725160939.GC18612@linux.intel.com> <33f1cfaa-525d-996a-4977-fda32dc368ee@redhat.com> <20190725162053.GD18612@linux.intel.com> <7bc207e0-0812-e41a-bfd5-e3fbfd43f242@redhat.com> <20190725163946.xt2p3pvxwuabzojj@xps.therub.org> <3e55414d-cb4f-8f3f-a359-e374b6298715@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e55414d-cb4f-8f3f-a359-e374b6298715@redhat.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 25, 2019 at 07:06:19PM +0200, Paolo Bonzini wrote: > On 25/07/19 18:39, Dan Rue wrote: > > To your point Paolo - reporting 'fail' because of a missing kernel > > feature is a generic problem we see across test suites, and causes tons > > of pain and misery for CI people. As a general rule, I'd avoid > > submodules, and even branches that track specific kernels. Rather, and I > > don't know if it's possible in this case, but the best way to manage it > > from both a test author and a test runner POV is to wrap the test in > > kernel feature checks, kernel version checks, kernel config checks, etc. > > Report 'skip' if the environment in which the test is running isn't > > sufficient to run the test. Then, you only have to maintain one version > > of the test suite, users can always use the latest, and critically: all > > failures are actual failures. > > Note that kvm-unit-tests are not really testing new kernel features; > those are covered by tools/testing/selftests/kvm. For some of these > kvm-unit-tests there are some CPU features that we can check from the > virtual machine, but those are easy to handle and they produce SKIP > results just fine. > > The problematic ones are tests that cover emulation accuracy. These are > effectively bugfixes, so the failures you see _are_ actual failures. At > the same time, the bugs are usually inoffensive(*), while the fixes are > invasive and a bad source of cause conflicts in older Linux versions. > This combines so that backporting to stable is not feasible. In this case, a fail result seems correct then. The thing we're doing that we need to fix is to run against a pinned version of kvm-unit-tests and upgrade it independently so that we can identify such failures and mark them as known issues. > > Passing the host kernel version would be really ugly because 1) the > tests can run on other hypervisor or emulators or even bare metal, and > of course the host kernel version has no bearing if you're using > userspace emulation 2) there are thousands of tests that would be > littered with kernel version checks of little significance. > > So this is why I suggested a submodule: using a submodule effectively > ignores all tests that were added after a given Linus release, and thus > all the failures for which backports are just not going to happen. > However, if Sean's idea of creating a linux-M.N branch in > kvm-unit-tests.git works for you, we can also do that as a stopgap > measure to ease your testing. I would still prefer to run the latest tests against all kernel versions (but better control when we upgrade it). Like I said, we can handle expected failures, and it would even help to validate backports for fixes that do get backported. I'm afraid on your behalf that snapping (and maintaining) branches per kernel branch is going to be a lot to manage. In any case, _thank you so much_ for jumping on this and helping us run these tests. Is there anything else we can do to make this better for you? Dan > > Thanks, > > Paolo > > (*) if they aren't, we *do* mark them for backport! -- Linaro - Kernel Validation