From: Andre Przywara <andre.przywara@arm.com>
To: Andrew Jones <drjones@redhat.com>
Cc: Nikos Nikoleris <nikos.nikoleris@arm.com>,
kvm@vger.kernel.org, pbonzini@redhat.com,
alexandru.elisei@arm.com
Subject: Re: [kvm-unit-tests PATCH v2 0/4] Fix the devicetree parser for stdout-path
Date: Mon, 22 Mar 2021 18:04:45 +0000 [thread overview]
Message-ID: <20210322180445.7164b991@slackpad.fritz.box> (raw)
In-Reply-To: <20210322085336.2lxg457refhvntls@kamzik.brq.redhat.com>
On Mon, 22 Mar 2021 09:53:36 +0100
Andrew Jones <drjones@redhat.com> wrote:
> On Thu, Mar 18, 2021 at 06:07:23PM +0000, Nikos Nikoleris wrote:
> > This set of patches fixes the way we parse the stdout-path
> > property in the DT. The stdout-path property is used to set up
> > the console. Prior to this, the code ignored the fact that
> > stdout-path is made of the path to the uart node as well as
> > parameters. As a result, it would fail to find the relevant DT
> > node. In addition to minor fixes in the device tree code, this
> > series pulls a new version of libfdt from upstream.
> >
> > v1: https://lore.kernel.org/kvm/20210316152405.50363-1-nikos.nikoleris@arm.com/
> >
> > Changes in v2:
> > - Added strtoul and minor fix in strrchr
> > - Fixes in libfdt_clean
> > - Minor fix in lib/libfdt/README
> >
> > Thanks,
> >
> > Nikos
> >
>
> Applied to arm/queue
So I understand that this is a bit late now, but is this really the way
forward: to just implement libc functions as we go, from scratch, and
merge them without any real testing?
I understand that hacking up strchr() is fun, but when it comes to
those string parsing functions, it gets a bit hairy, and I feel like we
are dismissing decades of experience here by implementing stuff from
scratch. At the very least we should run some unit tests (!) on newly
introduced C library functions?
Or probably the better alternative: we pick some existing C library,
and start to borrow implementations from there? Is klibc[1] a good
choice, maybe?
Cheers,
Andre
[1] https://git.kernel.org/pub/scm/libs/klibc/klibc.git/
>
> https://gitlab.com/rhdrjones/kvm-unit-tests/-/commits/arm/queue
>
> Thanks,
> drew
>
next prev parent reply other threads:[~2021-03-22 18:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-18 18:07 [kvm-unit-tests PATCH v2 0/4] Fix the devicetree parser for stdout-path Nikos Nikoleris
2021-03-18 18:07 ` [kvm-unit-tests PATCH v2 1/4] lib/string: Add strnlen, strrchr and strtoul Nikos Nikoleris
2021-03-22 8:35 ` Andrew Jones
2021-03-22 9:52 ` Nikos Nikoleris
2021-03-22 10:09 ` Andrew Jones
2021-03-23 12:14 ` Andrew Jones
2021-03-23 13:00 ` Andre Przywara
2021-03-23 13:41 ` Andrew Jones
2021-03-23 16:11 ` Andre Przywara
2021-03-23 13:01 ` Thomas Huth
2021-03-23 13:31 ` Andrew Jones
2021-03-18 18:07 ` [kvm-unit-tests PATCH v2 3/4] Makefile: Remove overriding recipe for libfdt_clean Nikos Nikoleris
2021-03-18 18:07 ` [kvm-unit-tests PATCH v2 4/4] devicetree: Parse correctly the stdout-path Nikos Nikoleris
2021-03-22 8:53 ` [kvm-unit-tests PATCH v2 0/4] Fix the devicetree parser for stdout-path Andrew Jones
2021-03-22 9:55 ` Nikos Nikoleris
2021-03-22 18:04 ` Andre Przywara [this message]
2021-03-22 18:56 ` Andrew Jones
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=20210322180445.7164b991@slackpad.fritz.box \
--to=andre.przywara@arm.com \
--cc=alexandru.elisei@arm.com \
--cc=drjones@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=nikos.nikoleris@arm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox