Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp472227lqd; Wed, 24 Apr 2024 07:53:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQ9CWWUFlw3II/bjJB446pgv+awAdWD0GgWCHp6Rk+Oi7fJh9VtFhzJmqLKkHuud1xSOArZ2f/yvhQRtaxqxEtk+EGZkUn3DqQnfeFqg== X-Google-Smtp-Source: AGHT+IF1yBJzjA55Z08nQ+R8ixd0O+jBc8HOWS5vcfIgU2GVGpgtkWiU30vDIMvpxeIU05m7DQHK X-Received: by 2002:a17:907:868d:b0:a58:86f8:410d with SMTP id qa13-20020a170907868d00b00a5886f8410dmr4462141ejc.23.1713970428554; Wed, 24 Apr 2024 07:53:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713970428; cv=pass; d=google.com; s=arc-20160816; b=gp+ljPFAkWLahZXZm42LoElJ9n6Gesf/9B5iGDHCVOn/0tGFmGmMu+ZeMXH2at4MhA wYJVNfLkkKzn/lIKmFQ8kNTZ2xF+hIAlknM1mPdJ+yzUhBbo7uwVSbuLuRtfb1KCgHMq giliR0xlxaV5v2wnb0+cWHIa3pBeLSUTVzHPHAxS4gLJ6whHW+8zBiVwzTDADTtWE+ha rnfzCLF/HZX/VFxPhJt4hn7O9F8BHibHzSSDYiR8WwPdHxBBtpU2EISEethPpYUgGK6I ZXuTaVXREhsl6d5r7tPPgWJhwJziFa+pGfWJUWm5sh05of/EofNheWKFv6qeVYCwKZkm 1PVg== 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=CI1RTUkbvNrBSkw+K5Z39nzZbpfRzSvThM/4gtY5VFY=; fh=ppKekDJfHE/L/B5pVWwZHVqBLt+A8mTUfN5SpHo1Gew=; b=w9hmim6w0acNbcO0nATNrWsLKfc7k6/1idUkW+YD4TjIpM7k5BiMOCEk0TXjsL1ruM xI6+uI5j35eiRbTrOzwfEzALcubwEKVULnJXekEqwezyPbewp6PIwgCeYySSFR9URR3f 6XqnzDJNC5olftOQumh0Rq4z3nnBKXwc0bN4RgGGbtImpL8zEiYl40AxI9Nd1kv25UZw tcyTWy4d2T6m93xVrmVoXZPjvHCftDR4lIkDluk9DIlf6dkFqDQb9340x5MOk2Sucg9J ptVrkhmIwknWOOSMWdLRNUd552UFHowDcKUjtgLubeIMFHxI0rhkilTyLYyKcYaCjf0h N1Xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=X78OGA4f; 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-157127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157127-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. [147.75.80.249]) by mx.google.com with ESMTPS id hq8-20020a1709073f0800b00a55ae6ec8dasi5340617ejc.476.2024.04.24.07.53.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 07:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=X78OGA4f; 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-157127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157127-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 9394D1F252FC for ; Wed, 24 Apr 2024 14:51:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EEDD15EFBE; Wed, 24 Apr 2024 14:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="X78OGA4f" Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 93EDB15ECCB for ; Wed, 24 Apr 2024 14:51:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713970307; cv=none; b=VwnJueuuyo9pi49UuzT4W/NP44XUxZlJehfHWrXXxEs0N0TB6AgAD4xwdY+0hhL8dbR5kVmPSeSnz6f8iCDfYCUX9elN6wMqIyHCP8mxjdVPLtTy4ZIYJKWTHd2lCG7UlOMAAQMQS0Hk7Js36W7Kd43KKv4Oys2NPn2LkvJWK0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713970307; c=relaxed/simple; bh=L5PgwQXqh35ljEV/QfjmAhY+dATTVZXtCGt9GLB66PA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=T5/RTTS3lQYMyH2eICiIrGvF3ISEew9QUdtq1geZi+gGyCID8P9GPK4UqdK6/iB0VWaBz9ZYo+zm7TN1fHWsv4Wj8HHOoqljTV52/rlCgIT+7pyYiS29SGjeJFUAtXIiJdVCjAF7Y30u+nAAeFZAVxCk/F1iVPXwxEezdKtv6K8= 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=X78OGA4f; arc=none smtp.client-ip=209.85.216.74 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-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2ae9176aad8so2277880a91.2 for ; Wed, 24 Apr 2024 07:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713970306; x=1714575106; 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=CI1RTUkbvNrBSkw+K5Z39nzZbpfRzSvThM/4gtY5VFY=; b=X78OGA4fwe0/X+KjwaAwYyNgu+35YHb0vTrhK7LdBdREAUTNLhIidK7p4XiJuHKZ81 Qe/87ErcEWReDflfs7bIzsVt8t5zNZzeBfw4zdxhfh9YONQwgcD/95LmhAVah6txl0mi 36cPnqW0mIY3wfpor/TJA36iN1JfTlMEKwzLZK5Crw+cDWAwgHbElwzwtZnyOnfRHuvg RaQCcXFzJJ9d8yq2m6ctIQf0CRfonqe+1BAquEjLISrBJKbcIP6NnR26/6cROr4UHIm5 dj+Jf1P/mmlbKwOPEwO4t0tvn0q6NqL9AvZ3Yf1Zfrbl4/asZ5wi2wzaJ/e5Zkngj83/ nKSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713970306; x=1714575106; 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=CI1RTUkbvNrBSkw+K5Z39nzZbpfRzSvThM/4gtY5VFY=; b=jUk+A4aDRJrzEi5CnB7UDkiMjCP6yJk6T7EtW8us854AefaETXbcH0cbxm6ujlljY9 JapJHj3utYZR1q19/OmWDqmGkigY/SZnOAr3Lgbwjf3bLQoBpmeoc7E7IrZEZxiNzNHX 32iKjqGDsLPOMxQt+4APT0itCuGNF2IVzysQaTIYpc8CDpRpKQ2hVVpDtrayV9lSiAjt qTziZiXBM7d1a7bj91u2WT8Qi6mtgHagagIu0eJjpBHRLs+TxMXA/opzmjfr4Y/M7wD5 vQtJdiy7Ec4rp/foEFpLsTzEe9RZhhlPGzQVuY47oXyZ2PQgfryVdt8sue6aZymi2TBa qFOg== X-Forwarded-Encrypted: i=1; AJvYcCUlZ1AKxn30DFShxrqJ/eVtywZjB9LU3/wFZobUeyiBIHzBCcRP8iMSQojRp/rdEjktFiQnK0KDMDJ5Lo0ZZzOr33xlGHkIOZGFbTg3 X-Gm-Message-State: AOJu0YzXYCppenbruC2LXF11Klf3Vg0lxVyvkwJApOU7Z5ziAnmGij4U naFo0okNvAxmSagktY/kz/gk44ukHfo1kRRw/Ak8wvYqJTpXZe6sIho6+00z4LRrfKP6MYZ2yz1 Uhw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:9f8d:b0:2ae:cb7e:b5b3 with SMTP id o13-20020a17090a9f8d00b002aecb7eb5b3mr10285pjp.6.1713970305856; Wed, 24 Apr 2024 07:51:45 -0700 (PDT) Date: Wed, 24 Apr 2024 07:51:44 -0700 In-Reply-To: <20240424-e31c64bda7872b0be52e4c16@orel> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240423073952.2001989-1-chentao@kylinos.cn> <878bf83c-cd5b-48d0-8b4e-77223f1806dc@web.de> <20240423-0db9024011213dcffe815c5c@orel> <20240424-e31c64bda7872b0be52e4c16@orel> Message-ID: Subject: Re: [PATCH] KVM: selftests: Add 'malloc' failure check in test_vmx_nested_state From: Sean Christopherson To: Andrew Jones Cc: Markus Elfring , Kunwu Chan , linux-kselftest@vger.kernel.org, kvm@vger.kernel.org, kernel-janitors@vger.kernel.org, Muhammad Usama Anjum , Paolo Bonzini , Shuah Khan , LKML , Kunwu Chan , Anup Patel , Thomas Huth , Oliver Upton Content-Type: text/plain; charset="us-ascii" On Wed, Apr 24, 2024, Andrew Jones wrote: > On Tue, Apr 23, 2024 at 12:15:47PM -0700, Sean Christopherson wrote: > ... > > I almost wonder if we should just pick a prefix that's less obviously connected > > to KVM and/or selftests, but unique and short. > > > > How about kvmsft_ ? It's based on the ksft_ prefix of kselftest.h. Maybe > it's too close to ksft though and would be confusing when using both in > the same test? I would prefer something short, and for whatever reason I have a mental block with ksft. I always read it as "k soft", which is completely nonsensical :-) > I'm not a huge fan of capital letters, but we could also do something like > MALLOC()/CALLOC(). Hmm, I'm not usually a fan either, but that could actually work quite well in this case. It would be quite intuitive, easy to visually parse whereas tmalloc() vs malloc() kinda looks like a typo, and would more clearly communicate that they're macros.