From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 4A2DF2C0F81 for ; Thu, 18 Sep 2025 18:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758218758; cv=none; b=K/R/W80eD+D4KjTWN+9lQm2g8OO+0wfT1iDDdlwf50lPexf/YCQIRExFyTR5rnO5LhioDu2XfVgH7xKN2PhAh2+6aYiUcIpM6AbCs0HMA82iH9mTUyd/lRu4tlqA4TejqMfrpD47C/Qp3g53KvSDZbQz1doUmJa5C9tb8ZK2hgo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758218758; c=relaxed/simple; bh=+dUsv89Yhi7YjhJ/iCxyZ2JyhOt4WwrZMl4JV9BWTqI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=sniq1h9d5sf9uu02Y3c3jInSG05sRvC7MMVq/6pe2c+ZcD+nPecrVEVrF2FZ4xBdYlRZrI74O8zHW66QSf7OxbbUhAnspETrtjXp/SpNkkGvE8eAapZvqe1YqvR4SnnyzIjWZKEC1DHge8hr4JxG1DVzmJWggntj0TJFAzz5yw0= 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=djmzn6Dt; arc=none smtp.client-ip=209.85.216.73 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="djmzn6Dt" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-32ee157b9c9so1082375a91.2 for ; Thu, 18 Sep 2025 11:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1758218757; x=1758823557; 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=InY5LETIHJUcjWRe8AE+uV69XFL68bNcdyq/PlTUSNI=; b=djmzn6DtnFwZ947UySlPbTmFFwMUQ1NUxpskBrSDeSa8J2M4HsSJXSzDH4bmdvd0gp Ykb1r1O5qwm6TbM60FmIQEnezUbD13WiABgF03wpEJv5TKyRUWeP58lygutpgF6RLF04 wIrQqpirLQPAnz/idv8k/fbMgzYJv9oDfCIKU8EhPxgRV3wJ01kx+y/LFDiDM05u8R9T owEzxgiZ+YPxt4vR8p6JYz0cKlYOX4s3LE8o3Ks5kO26cYmC0sCbUYn4KFLNAd/5/9Tu /yk9nxz+AnRXnfIEibROYfbgXOZeCXtpDRd5v9De1htNUxDQouJ6dCPS7G4EXhcmRdS0 9Dnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758218757; x=1758823557; 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=InY5LETIHJUcjWRe8AE+uV69XFL68bNcdyq/PlTUSNI=; b=R9TU+bdnf+PQeAK+xEhjjZHOYVSu9hETCFAyCM9Ry6L2r38zHswCsoHEKm25S1+B0Z YdVvl8Nd8wh0xcMVv+hwzXvY/sfuVHrRIKz9vYJjFNewpTK/VP996LpwF2WaSq0kqZ0S Z0z8djMsdfV058bRKKNr0jz79wYu6etlwOlQKGfm87ys7kCRBcIolWtq3GSW3DBYCTle SZty2UOVgVFo0X7ZZ3MPpOhViu9j4hhjl3KcS5/FtT6KM+hX0+L+krWqzVsboZ+umfv0 c+UuEWKbaBrbOXfaAHRV/rd5jXZvAHvollHknI0zFd4PTdV18b5GHdXYYhKfyZ4rL2nO k+oQ== X-Forwarded-Encrypted: i=1; AJvYcCWT9aT3DKaJKmRcAoAZvzpr1S3goFZv9PWxmxWhV767Gdmiwt9oiBjvODLljhXYil9LlwtnuuoqFvVNk4k=@vger.kernel.org X-Gm-Message-State: AOJu0YwagAzk8Hmq6Q07RXJuz2ozvnhW2vc2GrN4kmqArBJm0cZo3P0Z 0/k7gg2/hoXouDQdHlKh1AnN25XJNiPBEHtOix6RM8wyPKyTEqeTdYPTGA2n6kGASJCP750oFhP Y0qnszw== X-Google-Smtp-Source: AGHT+IHhoyL6/icyFsBgGw/f+v43uy0snIS15sT/dYaXEHSdYoNFOTXD4bkN/E00b8oY2M2jzOiq/6uLP70= X-Received: from pjbee7.prod.google.com ([2002:a17:90a:fc47:b0:330:523b:2b23]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:528d:b0:329:e2b1:def3 with SMTP id 98e67ed59e1d1-33097fe6b7fmr300025a91.10.1758218756667; Thu, 18 Sep 2025 11:05:56 -0700 (PDT) Date: Thu, 18 Sep 2025 11:05:55 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250912232319.429659-1-seanjc@google.com> <20250912232319.429659-20-seanjc@google.com> Message-ID: Subject: Re: [PATCH v15 19/41] KVM: x86: Enable CET virtualization for VMX and advertise to userspace From: Sean Christopherson To: Binbin Wu Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Lendacky , Mathias Krause , John Allen , Rick Edgecombe , Chao Gao , Maxim Levitsky , Xiaoyao Li , Zhang Yi Z Content-Type: text/plain; charset="us-ascii" On Thu, Sep 18, 2025, Binbin Wu wrote: > On 9/13/2025 7:22 AM, Sean Christopherson wrote: > [...] > > +static inline bool cpu_has_vmx_basic_no_hw_errcode(void) > > +{ > > + return vmcs_config.basic & VMX_BASIC_NO_HW_ERROR_CODE_CC; > > +} > > + > > I think "_cc" should be appended to the function name, although it would make > the function name longer. Without "_cc", the meaning is different and confusing. +1, got it fixed up.