From nobody Thu Jan 1 23:06:37 2026 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 741C0C41513 for ; Tue, 17 Oct 2023 23:26:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344275AbjJQX0m (ORCPT ); Tue, 17 Oct 2023 19:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235043AbjJQX0a (ORCPT ); Tue, 17 Oct 2023 19:26:30 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B8D193 for ; Tue, 17 Oct 2023 16:26:22 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-5b7bf1c206fso1566833a12.2 for ; Tue, 17 Oct 2023 16:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697585182; x=1698189982; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:reply-to:from:to:cc :subject:date:message-id:reply-to; bh=bv6pLgT3niI5QMgEV9JgHmwHVkKxDi1wi/ZrGYG6pjg=; b=ohfoXsCT8bR51uGwjI55KdZCgfmNKHTNVLSmGsjppICBxaOBPCt1rr4xA2KvjSgjp8 5CUsKzAiwOzJlqGH0+Py4lcxfQiTOS2YLGZGgoODppsv2N4sFblP8fnCf3yvnV67nc+G PiGYpm0yvBYG8PY3VUWvHQMn69UJQydb3P+Lhx+CEfztuPI1NEXgxeFprFi+0ZvccSM6 dzSezuv1nmch6G6t174IkhCiOQB6vFpKnzi1rXSdQBXBQgPLxN/TocczZSqkm327xeFY LtBFEUaUfmV5d8I2FFdhttupWoIKLacIQbla2+RAvbSZPUK2HjlzMGhERYVEXhSqm4iz 88Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697585182; x=1698189982; h=cc:to:from:subject:message-id:mime-version:date:reply-to :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bv6pLgT3niI5QMgEV9JgHmwHVkKxDi1wi/ZrGYG6pjg=; b=UPVU/DTNRioY4glMjE7BgFwie9w8p/TtM8KJwoZB2FGzEMzb/oW4y+HarSqFTP92L+ 2PlcjqwpCNpu2BiKsOXvw9TFo5NJA1sFME2VtpMJ10t8xTwreXWeDTX45lp3TW1CISSE byN9FwVgjlt1Su1NEt18KOu572AiLRG4ygnrioZASyR11dxMjwwC2Wzebwu1AQ8OQlsr aRyGgqdGXmi+whCAX5mI7ICOx8jeAEjDjuFcQCK846YxmLkygnhwrBQWux0GnMOVGZ3C fqe8BUXUpOzT9Hw7uddCtGIqzN8ljXZWd2U/M0b3Gz/fPatUAOeojopSbnzqToPli4mI 074Q== X-Gm-Message-State: AOJu0YwPIuJohv921ZsgWb3URm0LwyfsnPntYUjj+FFr3Vgu0RsmETRy hB3p8PMEfaZ7Df6HIDxRdLPj83kzFQcv X-Google-Smtp-Source: AGHT+IHobD1UfT/vL/XwFh2pm8crYWO3oS0sT9ep5edXvwbbNrgraJv3wFMyWgNVhRQEDNotpD5JOEsnu1BF X-Received: from mizhang-super.c.googlers.com ([35.247.89.60]) (user=mizhang job=sendgmr) by 2002:a05:6a02:710:b0:5ab:f060:34b5 with SMTP id cb16-20020a056a02071000b005abf06034b5mr80449pgb.6.1697585181809; Tue, 17 Oct 2023 16:26:21 -0700 (PDT) Reply-To: Mingwei Zhang Date: Tue, 17 Oct 2023 23:26:10 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.655.g421f12c284-goog Message-ID: <20231017232610.4008690-1-mizhang@google.com> Subject: [PATCH] KVM: x86: Update the variable naming in kvm_x86_ops.sched_in() From: Mingwei Zhang To: Sean Christopherson , Paolo Bonzini Cc: "H. Peter Anvin" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Mingwei Zhang Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update the variable with name 'kvm' in kvm_x86_ops.sched_in() to 'vcpu' to avoid confusions. Variable naming in KVM has a clear convention that 'kvm' refers to pointer of type 'struct kvm *', while 'vcpu' refers to pointer of type 'struct kvm_vcpu *'. Fix this 9-year old naming issue for fun. Signed-off-by: Mingwei Zhang --- arch/x86/include/asm/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_hos= t.h index 7c228ae05df0..394e1a31c02c 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1703,7 +1703,7 @@ struct kvm_x86_ops { =20 void (*request_immediate_exit)(struct kvm_vcpu *vcpu); =20 - void (*sched_in)(struct kvm_vcpu *kvm, int cpu); + void (*sched_in)(struct kvm_vcpu *vcpu, int cpu); =20 /* * Size of the CPU's dirty log buffer, i.e. VMX's PML buffer. A zero base-commit: 437bba5ad2bba00c2056c896753a32edf80860cc --=20 2.42.0.655.g421f12c284-goog