From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D9A3C433EF for ; Tue, 14 Jun 2022 17:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234986AbiFNRJO (ORCPT ); Tue, 14 Jun 2022 13:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243552AbiFNRJI (ORCPT ); Tue, 14 Jun 2022 13:09:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 77EE01E3C2 for ; Tue, 14 Jun 2022 10:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655226545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TtO7y3+ijZ6YgcAc4PQtJVzw8h5/IO41lJW3F/O5h8o=; b=MExBRNUrDgO3Q+J734Mscv2T2qASZLzHE4c8el9HZi4lUBQWptJZY+ONvKd8Y6oXwuv7uE /ufobr/ex6e07iXpTO4d2IvHFhWqnVY54c6O9vb6obt4kK3C5MGbgQqNzmPab29/h4jUiv y1ANlS0px2g3htt6lFW/B2sNQxgCp58= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-399-lSR9Npo_M-O7uHXqNa1rIw-1; Tue, 14 Jun 2022 13:09:04 -0400 X-MC-Unique: lSR9Npo_M-O7uHXqNa1rIw-1 Received: by mail-wm1-f71.google.com with SMTP id r6-20020a1c4406000000b0039c8f5804c4so295489wma.3 for ; Tue, 14 Jun 2022 10:09:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=TtO7y3+ijZ6YgcAc4PQtJVzw8h5/IO41lJW3F/O5h8o=; b=VfRx20hDts5l84RtgqTe0bnwjkQPz+JbzDrWASzcb9I9d18nmUD2in+UnE3zrEfo1k 0TArlUJRV1emyEVR8RngpVrAjZxRnM1Q5FpkRoURfz5G5ZMC8RmagEWq9p9Qrcw9+CwQ lJwqiwEXwOBvdtiVGstLf58esJRH6NlRk+3gnDhTDON+/kdeWi/wTXsiCmUR3qwxgSB4 sI2nfZLqJiuGrWjMnzaae2+tkyi6AnYnEYeELLuE9NFqkRA6+q0PMY9+7hZdPzip61Hf uxPjm66R0glkQfFA+cum29ugI1/bOEd8MFF4XWWoDE9I2v4lX50b1p8QlSB9YQOZrIym x5OQ== X-Gm-Message-State: AOAM533lP5scohKhDUwkqTvqLfgjPG/DtZ0Dwqic4Kw5fYJzCEi3Qup8 ONDyeIQF5uK7UkKH0h6i83dG53QmeI6AKmq4MOt0BvslvWqH2HQIaXrc4rgjcxjGlP/9JphWids /nBh6zfVaWtIIwnf5nOZubA== X-Received: by 2002:a1c:f213:0:b0:39b:ad32:5e51 with SMTP id s19-20020a1cf213000000b0039bad325e51mr5215041wmc.72.1655226543168; Tue, 14 Jun 2022 10:09:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEH0VwSnOcNDbF6N4JmvvUE3uFVg/Be8POxZzNI8KiXy7aOZbLTS8Lt1QSrzLFl377ZtNdew== X-Received: by 2002:a1c:f213:0:b0:39b:ad32:5e51 with SMTP id s19-20020a1cf213000000b0039bad325e51mr5215014wmc.72.1655226542875; Tue, 14 Jun 2022 10:09:02 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:9af8:e5f5:7516:fa89? ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.googlemail.com with ESMTPSA id v1-20020adfebc1000000b0020d07d90b71sm12236421wrn.66.2022.06.14.10.09.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jun 2022 10:09:01 -0700 (PDT) Message-ID: <6dca9fc3-d50a-2920-b22e-73f0bd2c93f9@redhat.com> Date: Tue, 14 Jun 2022 19:09:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] KVM: s390: selftests: Fix memop extension capability check Content-Language: en-US To: Janis Schoetterl-Glausch , thuth@redhat.com, borntraeger@linux.ibm.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com Cc: david@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-s390@vger.kernel.org, shuah@kernel.org References: <36d83871-343d-e8a0-1aed-05bf386f9b1b@redhat.com> <20220614162635.3445019-1-scgl@linux.ibm.com> From: Paolo Bonzini In-Reply-To: <20220614162635.3445019-1-scgl@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On 6/14/22 18:26, Janis Schoetterl-Glausch wrote: > Fix the inverted logic of the memop extension capability check. > > Fixes: 97da92c0ff92 ("KVM: s390: selftests: Use TAP interface in the memop test") > Signed-off-by: Janis Schoetterl-Glausch > --- > > > Here you go. > Hope it doesn't get lost as a reply, but I can always resend > and it's not super critical after all. > > > tools/testing/selftests/kvm/s390x/memop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/kvm/s390x/memop.c b/tools/testing/selftests/kvm/s390x/memop.c > index e704c6fa5758..e1056f20dfa1 100644 > --- a/tools/testing/selftests/kvm/s390x/memop.c > +++ b/tools/testing/selftests/kvm/s390x/memop.c > @@ -769,7 +769,7 @@ int main(int argc, char *argv[]) > ksft_set_plan(ARRAY_SIZE(testlist)); > > for (idx = 0; idx < ARRAY_SIZE(testlist); idx++) { > - if (testlist[idx].extension >= extension_cap) { > + if (extension_cap >= testlist[idx].extension) { > testlist[idx].test(); > ksft_test_result_pass("%s\n", testlist[idx].name); > } else { Done, thanks! Paolo