From: Christoffer Dall <christoffer.dall@linaro.org>
To: Andrew Jones <drjones@redhat.com>
Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org
Subject: Re: [PATCH 3/9] clean root dir of all x86-ness
Date: Thu, 2 Jan 2014 09:16:45 -0800 [thread overview]
Message-ID: <20140102171645.GB27806@cbox> (raw)
In-Reply-To: <20140102150016.GB9725@hawk.usersys.redhat.com>
On Thu, Jan 02, 2014 at 04:00:17PM +0100, Andrew Jones wrote:
> On Sat, Dec 28, 2013 at 10:30:12PM -0800, Christoffer Dall wrote:
> > >
> > > clean: arch_clean
> > > - $(RM) *.o *.a .*.d lib/.*.d $(libcflat) $(cflatobjs)
> > > + $(RM) lib/.*.d $(libcflat) $(cflatobjs)
> >
> > so above you're referencing */.*.d and */*/.*.d but in make arch_clean
> > we're only removing lib/.*.d ?
>
> There are no longer any source files in the root dir, allowing us to
> remove the 'rm *.o *.a .*.d' from this top-level makefile. arch_clean
> doesn't remove lib/.*.d. It only removes its arch-specific files, e.g.
> $(TEST_DIR)/* and lib/$(ARCH)/*.
>
ah ok.
> > >
> > > Options include:
> > > + --test-dir=DIR the main directory for tests ($arch)
> >
> > huh? why would you want to specify something different from arch here?
>
> $(TEST_DIR) isn't new with this patch, only the ability to specify it
> is. As a separate tidyup patch we could s/r TEST_DIR with ARCH to get
> rid of it, but it wouldn't gain us much, and would lose the ability to
> have a second testdir for the same arch (for what I don't know - maybe
> just for a scratch dir?)
>
hmm, ok, I don't know what the original intention with this patch was
then.
> > > +Services supplied by the testdev device:
> > > +
> > > +serial output: write only, on io port 0xf1
> > > +exit process: write only, on io port 0xf4, value used as exit code
> > > +ram size: read-only, on io port 0xd1, 4 bytes' size
> > > +irq line setting: write only, on io ports 0x2000 - 0x2018, value to set/clear
> > > +simple io: read/write, on io port 0xe0, 1/2/4 bytes
> > > +
> > > +Test device used a char device for actual output
> >
> > what do you mean by this last sentence?
>
> Don't shoot the file-mover :-) I didn't write it, but it looks like
> it's referring to how testdev (as opposed to pc-testdev) works, i.e.
> '-device testdev,chardev=testlog -chardev file,id=testlog,path=msr.out'
>
ok, I'll let you off on that one then :)
> > > +# As it happens, config.mak is valid shell script code, too :-)
> > > +source config.mak
> >
> > is this a well-established method of doing things or a hack? If the
> > latter, sems like something that could quickly come and bite us.
>
> As long as config.mak is only ever a list of 'key=value's, then I
> guess we're pretty safe.
>
> > >
> > > -Set the environment variable QEMU=/path/to/qemu-system-x86_64 to allow the
> > > -internally used x86-run to pick up the right qemu binary.
> > > +Set the environment variable QEMU=/path/to/qemu-system-ARCH to allow the
> > > +internally used ARCH-run to pick up the right qemu binary.
> >
> > this message may not make a lot of sense to non kvm-unit-test
> > devevelopers, why not say that it allows the user to specify which QEMU
> > binary to use?
>
> OK, tweaked it to
> Set the environment variable QEMU=/path/to/qemu-system-ARCH to specify
> the appropriate qemu binary for ARCH-run.
thanks!
>
> >
> > >
> > > EOF
> > > }
> > >
> > > -# As it happens, config.mak is valid shell script code, too :-)
> > > -source config.mak
> > > -
> >
> > ah, I see, this hack/method was used before too, still relevant to
> > consider if it's a good approach though...
>
> yup, I think it's OK.
>
> > > +
> > > +Tests for x86 architecture are run as kernel images for qemu that supports
> > > +multiboot format. Tests uses an infrastructure called from the bios code.
> > > +The infrastructure initialize the system/cpu's, switch to long-mode and calls
> > > +the 'main' function of the individual test. Tests uses a qemu's virtual test
> >
> > Tests use
>
> fixed
>
> drew
--
Christoffer
next prev parent reply other threads:[~2014-01-02 17:22 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-04 16:42 [PATCH 0/9 v2] kvm-unit-tests/arm: initial drop Andrew Jones
2013-12-04 16:42 ` [PATCH 1/9] remove unused files Andrew Jones
2013-12-04 16:42 ` [PATCH 2/9] makefile and run_tests tweaks Andrew Jones
2013-12-29 6:30 ` Christoffer Dall
2014-01-02 14:30 ` Andrew Jones
2013-12-04 16:42 ` [PATCH 3/9] clean root dir of all x86-ness Andrew Jones
2013-12-29 6:30 ` Christoffer Dall
2014-01-02 15:00 ` Andrew Jones
2014-01-02 17:16 ` Christoffer Dall [this message]
2013-12-04 16:42 ` [PATCH 4/9] move x86's simple heap management to common code Andrew Jones
2013-12-29 6:30 ` Christoffer Dall
2014-01-02 15:17 ` Andrew Jones
2014-01-02 17:17 ` Christoffer Dall
2013-12-04 16:42 ` [PATCH 5/9] Introduce libio to common code for io read/write Andrew Jones
2013-12-29 6:30 ` Christoffer Dall
2014-01-02 15:47 ` Andrew Jones
2014-01-02 17:19 ` Christoffer Dall
2014-01-02 18:38 ` Andrew Jones
2013-12-04 16:42 ` [PATCH 6/9] Introduce a simple iomap structure Andrew Jones
2013-12-29 6:30 ` Christoffer Dall
2014-01-02 16:04 ` Andrew Jones
2014-01-02 17:23 ` Christoffer Dall
2014-01-02 18:40 ` Andrew Jones
2014-01-02 21:05 ` Christoffer Dall
2014-01-02 17:32 ` Peter Maydell
2013-12-04 16:42 ` [PATCH 7/9] Add halt() and some error codes Andrew Jones
2013-12-29 6:31 ` Christoffer Dall
2013-12-04 16:42 ` [PATCH 8/9] Introduce virtio-testdev Andrew Jones
2013-12-29 6:31 ` Christoffer Dall
2014-01-02 16:16 ` Andrew Jones
2014-01-02 17:27 ` Christoffer Dall
2014-01-02 18:41 ` Andrew Jones
2013-12-04 16:42 ` [PATCH 9/9] arm: initial drop Andrew Jones
2013-12-29 6:31 ` Christoffer Dall
2013-12-29 9:18 ` Peter Maydell
2014-01-02 16:54 ` Andrew Jones
2014-01-02 17:40 ` Peter Maydell
2014-01-02 18:09 ` Christoffer Dall
2014-01-02 18:44 ` Andrew Jones
2014-01-02 17:44 ` Christoffer Dall
2014-01-02 18:50 ` Andrew Jones
2014-01-02 19:17 ` Christoffer Dall
2014-01-03 17:52 ` Andrew Jones
2014-01-03 17:55 ` Christoffer Dall
-- strict thread matches above, loose matches on Subject: below --
2013-10-14 16:23 [PATCH 0/9] kvm-unit-tests/arm: " Andrew Jones
2013-10-14 16:23 ` [PATCH 3/9] clean root dir of all x86-ness Andrew Jones
2013-10-17 1:06 ` Christoffer Dall
2013-10-17 9:35 ` Andrew Jones
2013-10-17 19:01 ` Christoffer Dall
2013-10-20 16:37 ` 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=20140102171645.GB27806@cbox \
--to=christoffer.dall@linaro.org \
--cc=drjones@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
/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