From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org, Fei Li <fei1.li@intel.com>,
"Rafael J. Wysocki" <rafael@kernel.org>
Subject: Re: [PATCH v4 1/1] virt: acrn: Mark the uuid field as unused
Date: Wed, 16 Nov 2022 18:04:37 +0200 [thread overview]
Message-ID: <Y3UKFQJJI/02QDWU@smile.fi.intel.com> (raw)
In-Reply-To: <Y3T/qJalJ9H224Mu@kroah.com>
On Wed, Nov 16, 2022 at 04:20:08PM +0100, Greg Kroah-Hartman wrote:
> On Wed, Nov 16, 2022 at 03:29:31PM +0200, Andy Shevchenko wrote:
> > On Wed, Nov 16, 2022 at 12:42:16PM +0100, Greg Kroah-Hartman wrote:
> > > On Wed, Nov 16, 2022 at 11:22:54AM +0200, Andy Shevchenko wrote:
...
> > > > - * @uuid: UUID of the VM. Pass to hypervisor directly.
> > > > + * @uuid: Reserved (used to be UUID of the VM)
> > >
> > > If it's reserved, then don't you need to check for 0?
> >
> > Reserved in a way that it may content something we just don't care about.
>
> "reserved" in the kernel ioctls mean "must be 0 and we will test for it,
> otherwise this is an empty/useless field that can never be touched again
> in the future.
>
> Please spell it out in detail as to if you can ever use this later on,
> and what the kernel will do (if anything) if it is set.
>
> And if "the kernel ignores it" then that means these bytes are now
> "empty space never to be used again", right?
Right, I will fix this in v5.
...
> > > > + __u8 uuid[16];
> > >
> > > You just changed the type here, so what is that going to break in
> > > userspace that depended on this being of a structure type and now it's
> > > an array?
> >
> > It's the same. The previous was hidden behind additional type level.
>
> Same size, yes. Same C structure definition, no.
It doesn't matter, see below.
> > > And no other kernel changes needed? Shouldn't you warn if this field is
> > > set?
> >
> > No, as pointed out in the commit message kernel never ever used this.
>
> That does not mean that userspace tools never did, right? You are
> changing the structure definition, what tool just broke?
The only tool has been amended like a year ago, so the answer is none.
The commit message has links to the commits in question that made that
amendment.
Maybe I should remove Fixes tags? In such case we will very much know
that no old tools will be run on the new kernel.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2022-11-16 16:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 9:22 [PATCH v4 1/1] virt: acrn: Mark the uuid field as unused Andy Shevchenko
2022-11-16 11:42 ` Greg Kroah-Hartman
2022-11-16 13:29 ` Andy Shevchenko
2022-11-16 15:20 ` Greg Kroah-Hartman
2022-11-16 16:04 ` Andy Shevchenko [this message]
2022-11-16 16:16 ` Greg Kroah-Hartman
2022-11-16 16:31 ` Andy Shevchenko
2022-11-17 1:03 ` Fei Li
2022-11-17 6:47 ` Andy Shevchenko
2022-11-17 6:50 ` Andy Shevchenko
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=Y3UKFQJJI/02QDWU@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=fei1.li@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@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