Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp628475lqp; Wed, 12 Jun 2024 11:11:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZM0ticS2v1tcWH/X6+Vs9Hlr738QvJt00dyjK88RElJ7tqdVOBphVwZzitEma6sxz/VrO38dGY5a+mFpHrY15bmiM+6XuzN1NavBrWA== X-Google-Smtp-Source: AGHT+IG4g3xqERSVIrBJSihrqwlmw/6jxdAit+3M7oRs7C7dA5Li8ZcEwScOadOjm4cMrOKdd7WG X-Received: by 2002:a17:907:38c:b0:a6f:15f5:261e with SMTP id a640c23a62f3a-a6f47c9b5fbmr171616666b.7.1718215897044; Wed, 12 Jun 2024 11:11:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718215897; cv=pass; d=google.com; s=arc-20160816; b=LKPkHlZPW3DrVmtCut+zvw5Iazeu+f1Bbm9zb+SXm3avaaP+Q1V3rXnaCsOPys1lQF dJlikm8quaF0mAsr8kZKNg5DlOYi7ubNwtlQqTqTK5xuyzxgiUnZ+jvF1xUmYfOeLAyw aPKGZFI3S0bvdkUe8sjcfjlRDwBr5xAi1rTrWywweLF4QCIhqV9YChR6pyFzqAYN2lsw 7bOfEyfwlxDkL26Em5LlgE5XueAo38iqPiCuwZ3Awk+JPSELlEClrqQbuyVuIfGpVAjv kgMkKyqOUvM7vvDYCRsC8eDJeeXvW631IieEU5ViD5OJY6yxjAXG8O5EHFG19dLONWOJ RL6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=bysuRKx6ASJn7sotbzdgYdmXjsZucWIObzR9RYJqi4M=; fh=UT4Hi4+PH94aLRaNtvNdEz1oxFTOpRN4iJ8o8hEMDK8=; b=wLbz4Be7cPgH7qrdW3B3R3UWVptUgvD7PSTC3aPz1p2595wDEXv/aFh70Keno/S4jG PAj1OAeFQ5fK32PLnyCum04DVJbrj/P1TKjFi/k9hARmyC2qZKbwklDNbRO0lJLKhI3h H3JNyTCIcQFrOKH65WxVsSYMIK5l7YYUOZEaqyPfJX14Ig3HVMoghaUfDg1u0sCh1MWO DU3Q5S5aWxNsWD/2Y20Lkx492jA+haVHxigBiBB9jqaRVzeo0hysGa2+o+HJNQGYIaiS 9YbPwy6j0WOlk/EbXFH1Ok3FH+O98jWFfJO3/oG01pu3Mfa0EqKmcUNZ9epWAc4pqbgy tFMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TJ8VDYVu; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-212046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c8058c64asi706969166b.67.2024.06.12.11.11.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 11:11:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TJ8VDYVu; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-212046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7E8E31F22B1C for ; Wed, 12 Jun 2024 18:11:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8A591836FD; Wed, 12 Jun 2024 18:11:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="TJ8VDYVu" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 655E918306C for ; Wed, 12 Jun 2024 18:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718215863; cv=none; b=mu3ARyd+ub0g79eRDcuK70vXPqyyyNkV00tbrwNPwoZKftgBe5W7OSKSD+ic+GrmWVYIjHAM66ko9UBWWSH8g+48FDo/DnAgKnoVUO8OxkvvRw+NwSkxCaJDVYR7ILIT0ikZ2ZtYytP9cPHlgqxhIFHDCg4L+ok5axIKHuFcP+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718215863; c=relaxed/simple; bh=byfky6BG4g1mjW3Wr/3DNMmcw/qupLWQ0lVzTwpwdZo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=DGJVep9VD/js1QgDzvWJsDV/+l7v6h+y7OY2PY503nTl7chsUWtIyEenn6wR4eogumMM2WArlQzszFsoutC37T9vjUqDh5rC5E4+jfnHvVZfIPLgrpLjQ9xakUppa7Zpm5AiFKBLgLnoJasyQ8kf4BhZpYVh8cqjBcTy9qG1fcg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=TJ8VDYVu; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dfa79b84623so227603276.2 for ; Wed, 12 Jun 2024 11:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718215860; x=1718820660; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=bysuRKx6ASJn7sotbzdgYdmXjsZucWIObzR9RYJqi4M=; b=TJ8VDYVu0hwx/RCUpkOjmyYMvNc1yt/sQ18Mm7A2DP1umNdlEPLHYVA8dMxco+PPCv PUVhxjfMG5xjrATU6BsdSFri2UNCRSd5A9ljGWRJ3UtIeNO3IQoPEzhkHglXMPdE0qQ/ k0cy9YMPUG6ssoRVc9AYs9v8n7cQbwSopKc/y72gRbKBBlJx5sSCI55eMb2rn9bSkK4i 50xlJ/qG1wpeHF75QAVeMCrDB0h4PJ3xQtzSAi9e712GsNmTY4rUd81Ka+3hc0CCg7eC 6gBCICoqmDuZGCdOPTOTRUFM83L3SolNFqQwrL2kbwyJUWBa91TIv4Jb63XXq9hvKsQS FflA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718215860; x=1718820660; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bysuRKx6ASJn7sotbzdgYdmXjsZucWIObzR9RYJqi4M=; b=VFlN8MeSt6Vlm7MFOxoSLhxc9Njl/CUItFvic8vk8+HyAQjTwSaLMNiYEjp2Q8ydbk Lon6E1wMEWp1RDwfdOjNQCD6g1TP4h5EBuwD1HZxIqWCgPPz+fyPUL6Wj4vegDbkKLAd xkwMEKOqeoI8/EnS0ELuhBuDs3Q/W+oEo/tvF2LE19KEcBhLZigbvay84tyDbenaUInx aS5XzhW4i7j+xgXe7CnYLOTmQtVZ11GiK9rZLktbcyR3WSoQRgRYYcfdP5HCIWvBxfiB 6W/Otlj55D9TbBwGS8mRWiSsUOVxysh324ec0wXp3VlDOyXyg8X3kqxgoFYElUKj5qT0 BSag== X-Forwarded-Encrypted: i=1; AJvYcCUaWeiyRXvRUeZKLPhZ2ZUlTj/JOzY1K0cMEAMHqXyxvGbBMxZqcT3bBBnqJUOmG8O36AcfswPJt9pAT7SG0RhA8UJmBYRT5imcKWTr X-Gm-Message-State: AOJu0YwtBIOhtktLL3sQEuk5XyY/VYSiVZ0wKGbtHgYJJuKa74jTxnvN I8esnyP3eeGGgZp8kOIDlUQjxw+5nU36ibixvi/93eogN9t17iuuP0McfkRq+CjTbBhXuiJApr0 XaQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:b19b:0:b0:de4:654f:9ad0 with SMTP id 3f1490d57ef6-dfe66b65b58mr79044276.6.1718215860399; Wed, 12 Jun 2024 11:11:00 -0700 (PDT) Date: Wed, 12 Jun 2024 11:10:58 -0700 In-Reply-To: <6bd821a3-9dbe-499c-ae17-afce70076299@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240612104500.425012-1-usama.anjum@collabora.com> <6bd821a3-9dbe-499c-ae17-afce70076299@arm.com> Message-ID: Subject: Re: [PATCH 1/2] selftests: kvm: remove print_skip() From: Sean Christopherson To: Dev Jain Cc: Muhammad Usama Anjum , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Paolo Bonzini , Shuah Khan , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , Haibo Xu , Anup Patel , Andrew Jones , Aaron Lewis , Thomas Huth , Maciej Wieczor-Retman , Vitaly Kuznetsov , kernel@collabora.com, Shuah Khan , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Wed, Jun 12, 2024, Dev Jain wrote: > > On 6/12/24 16:14, Muhammad Usama Anjum wrote: > > > > > > diff --git a/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c b/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c > > index 4f5881d4ef66d..695c45635d257 100644 > > --- a/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c > > +++ b/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c > > @@ -144,10 +144,9 @@ int main(int argc, char *argv[]) > > free((void *)hv_cpuid_entries); > > if (!kvm_cpu_has(X86_FEATURE_VMX) || > > - !kvm_has_cap(KVM_CAP_HYPERV_ENLIGHTENED_VMCS)) { > > - print_skip("Enlightened VMCS is unsupported"); > > - goto do_sys; > > - } > > + !kvm_has_cap(KVM_CAP_HYPERV_ENLIGHTENED_VMCS)) > > + ksft_exit_skip("Enlightened VMCS is unsupported\n"); > > + > > Isn't it incorrect to delete 'goto do_sys'? ksft_exit_skip() will exit and the > program will never jump to that label. At other places too you have deleted the 'goto'. Ya, exiting instead of continuing on will break these tests.