All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Mukesh R" <mrathor@linux.microsoft.com>, linux-hyperv@vger.kernel.org
Subject: Re: [PATCH 2/3] Drivers: hv: Create REP_COUNT define
Date: Fri, 04 Dec 2026 03:13:38 +0000	[thread overview]
Message-ID: <sashiko-outbox-249026@kernel.org> (raw)
In-Reply-To: <20261204025836.3855312-3-mrathor@linux.microsoft.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] hv: commit message misstates REP_COUNT macro additions and usage
--

commit d129b966732e944a64145e4d392d66acc76d0cf3
Author: Mukesh R <mrathor@linux.microsoft.com>

Drivers: hv: Create REP_COUNT define

This commit adds HV_HYPERCALL_REP_COUNT_OFFSET and
HV_HYPERCALL_REP_COUNT_MASK for Hyper-V repeat hypercall inputs and
updates kvm_hv_hypercall() and hv_do_rep_hypercall_ex() to use
HV_HYPERCALL_REP_COUNT_OFFSET.

> count is part of the input struct at same bits. However, the same
> COMP_MASK is used to set it. This maybe confusing for anyone reading
> the code. Add HV_HYPERCALL_REP_COUNT_MASK and use it for counts
> instead of REP_COMP.

[Severity: Low]
Does the commit message accurately describe the macros added and updated
here?

hv_do_rep_hypercall_ex() and kvm_hv_hypercall() previously used
HV_HYPERCALL_REP_COMP_OFFSET, not HV_HYPERCALL_REP_COMP_MASK (which is
only used for output status in hv_repcomp()).

This patch adds both HV_HYPERCALL_REP_COUNT_OFFSET and
HV_HYPERCALL_REP_COUNT_MASK, and updates those two call sites to use
HV_HYPERCALL_REP_COUNT_OFFSET rather than HV_HYPERCALL_REP_COUNT_MASK.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204025836.3855312-1-mrathor@linux.microsoft.com?part=2

  reply	other threads:[~2026-12-04  3:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  2:58 [PATCH 0/3] Handle timeouts for x86 CVMs Mukesh R
2026-12-04  2:58 ` [PATCH 1/3] Drivers: hv: Rename HV_STATUS_TIME_OUT Mukesh R
2026-12-04  2:58 ` [PATCH 2/3] Drivers: hv: Create REP_COUNT define Mukesh R
2026-12-04  3:13   ` sashiko-bot [this message]
2026-12-04  2:58 ` [PATCH 3/3] x86/hyperv: Handle hypercall timeouts on hw confidential VMs Mukesh R
2026-12-04  3:16   ` sashiko-bot
2026-12-05  0:00     ` Mukesh R
2026-12-05  8:21   ` vdso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-249026@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=mrathor@linux.microsoft.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.