From: Wei Liu <wei.liu@kernel.org>
To: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Cc: wei.liu@kernel.org,
Linux on Hyper-V List <linux-hyperv@vger.kernel.org>,
stable@kernel.org, "K. Y. Srinivasan" <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Dexuan Cui <decui@microsoft.com>, Long Li <longli@microsoft.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] mshv: fix hv_input_get_system_property struct
Date: Wed, 1 Jul 2026 09:11:43 -0700 [thread overview]
Message-ID: <20260701161143.GA201446@liuwe-devbox-debian-v2.local> (raw)
In-Reply-To: <akRIKl4wTuZVw/t0@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net>
On Tue, Jun 30, 2026 at 06:50:18PM -0400, Hamza Mahfooz wrote:
> On Tue, Jun 30, 2026 at 02:57:54PM -0700, wei.liu@kernel.org wrote:
> > From: Wei Liu <wei.liu@kernel.org>
> >
> > Keep it in sync with the correct definition.
> >
> > The old code worked by chance.
> >
> > Cc: stable@kernel.org
>
> Any idea how far back this goes? Also, does it require a check on the
> hypervisor version, or was it always wrong?
This should go as far as possible. The upstream version has always been
wrong.
We cannot check versions. Version numbers are not reliable indicators.
Wei
>
> > Signed-off-by: Wei Liu <wei.liu@kernel.org>
> > ---
> > include/hyperv/hvhdk_mini.h | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/hyperv/hvhdk_mini.h b/include/hyperv/hvhdk_mini.h
> > index b4cb2fa26e9b..035ba20870f7 100644
> > --- a/include/hyperv/hvhdk_mini.h
> > +++ b/include/hyperv/hvhdk_mini.h
> > @@ -184,8 +184,9 @@ enum hv_dynamic_processor_feature_property {
> >
> > struct hv_input_get_system_property {
> > u32 property_id; /* enum hv_system_property */
> > + u32 reserved;
> > union {
> > - u32 as_uint32;
> > + u64 as_uint64;
> > #if IS_ENABLED(CONFIG_X86)
> > /* enum hv_dynamic_processor_feature_property */
> > u32 hv_processor_feature;
> > --
> > 2.53.0
> >
prev parent reply other threads:[~2026-07-01 16:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 21:57 [PATCH] mshv: fix hv_input_get_system_property struct wei.liu
2026-06-30 22:50 ` Hamza Mahfooz
2026-07-01 16:11 ` Wei Liu [this message]
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=20260701161143.GA201446@liuwe-devbox-debian-v2.local \
--to=wei.liu@kernel.org \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=hamzamahfooz@linux.microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longli@microsoft.com \
--cc=stable@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox