From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Marc Zyngier <maz@kernel.org>
Cc: Gavin Shan <gshan@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Ian Rogers <irogers@google.com>, Jiri Olsa <jolsa@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
kvm@vger.kernel.org
Subject: Re: [PATCH 1/1] kvm selftests: Add conditional KVM_CAP_DIRTY_LOG_RING_ACQ_REL define kernel sources
Date: Wed, 21 Dec 2022 13:57:02 -0300 [thread overview]
Message-ID: <Y6M63qKnghUmSSEG@kernel.org> (raw)
In-Reply-To: <86r0wtb0d4.wl-maz@kernel.org>
Em Wed, Dec 21, 2022 at 08:57:11AM +0000, Marc Zyngier escreveu:
> On Wed, 21 Dec 2022 07:06:41 +0000, Gavin Shan <gshan@redhat.com> wrote:
> > On 12/21/22 5:08 AM, Arnaldo Carvalho de Melo wrote:
> > > I tried to build make -C tools/testing/selftests/kvm/ to check that an
> > > update I made to the tools/include/uapi/linux/kvm.h file wouldn't break
> > > the KVM selftests, but I stumbled on an unrelated build failure where
> > > it tries to use a define that isn't available in the system headers
> > > (fedora 36), so add it conditionally.
> > > Shouldn't this use the tools/ headers? Anyway, see if this is something
> > > useful.
> > > Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> > > ---
> > > diff --git a/tools/testing/selftests/kvm/include/kvm_util.h b/tools/testing/selftests/kvm/include/kvm_util.h
> > > index c9286811a4cb88e0..4ab76fd22efd951d 100644
> > > --- a/tools/testing/selftests/kvm/include/kvm_util.h
> > > +++ b/tools/testing/selftests/kvm/include/kvm_util.h
> > > @@ -10,4 +10,8 @@
> > > #include "kvm_util_base.h"
> > > #include "ucall_common.h"
> > > +#ifndef KVM_CAP_DIRTY_LOG_RING_ACQ_REL
> > > +#define KVM_CAP_DIRTY_LOG_RING_ACQ_REL 223
> > > +#endif
> > > +
> > > #endif /* SELFTEST_KVM_UTIL_H */
> > I don't think it's necessary because KVM_CAP_DIRTY_LOG_RING_ACQ_REL has been
> > defined in include/uapi/linux/kvm.h, which needs to be synchronized to
> > /usr/include/linux/kvm.h, included by tools/testing/selftests/kvm/include/kvm_util_base.h
Until that happens, I can't test build it, and:
⬢[acme@toolbox perf]$ rpm -qf /usr/include/linux/kvm.h
kernel-headers-6.0.5-200.fc36.x86_64
is in a distro package.
- Arnaldo
> > By the way, you forgot to copy the correct maillist, kvm@vger.kernel.org or
> > kvmarm@lists.cs.columbia.edu.
>
> Actually, the latter is now deprecated, and will be turned off early
> next year. kvmarm@lists.linux.dev is the new kid on the block (I just
> need to get Konstantin to turn on the archiving process).
>
> Thanks,
>
> M.
>
> --
> Without deviation from the norm, progress is not possible.
--
- Arnaldo
prev parent reply other threads:[~2022-12-21 16:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-20 17:57 [PATCH 1/1 fyi] tools headers UAPI: Sync linux/kvm.h with the kernel sources Arnaldo Carvalho de Melo
[not found] ` <Y6H6At0xkY+gDsf5@kernel.org>
[not found] ` <8f10c91a-0731-6dbb-51b7-9ed1dc0e69a8@redhat.com>
[not found] ` <86r0wtb0d4.wl-maz@kernel.org>
2022-12-21 16:57 ` Arnaldo Carvalho de Melo [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=Y6M63qKnghUmSSEG@kernel.org \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=gshan@redhat.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=maz@kernel.org \
--cc=namhyung@kernel.org \
--cc=pbonzini@redhat.com \
/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.