[PATCH 0/9 v2] kvm-unit-tests/arm: initial drop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a v2 of a series that introduces arm to kvm-unit-tests.
First, it does some tidying up of the repo. Then, it adds support
for virtio-testdev, which a v2 of was just posted to qemu-devel[1].
Next, it adds the basic infrastructure for booting a test case
(guest), and adds a single simple test.

The v1 of this series also added support for vectors. This time
I'm posting the initial drop without it, but will be sending the
vector support separately soon.

This initial drop doesn't require kvmarm. Only qemu-system-arm,
with the most recent mach-virt patches[2] and the previously
mentioned virtio-testdev, is required.

[1] http://lists.nongnu.org/archive/html/qemu-devel/2013-12/msg00690.html
[2] http://lists.nongnu.org/archive/html/qemu-devel/2013-11/msg02912.html

These patches are also available from a git repo here
https://github.com/rhdrjones/kvm-unit-tests/commits/arm-branch/master

Andrew Jones (9):
  remove unused files
  makefile and run_tests tweaks
  clean root dir of all x86-ness
  move x86's simple heap management to common code
  Introduce libio to common code for io read/write
  Introduce a simple iomap structure
  Add halt() and some error codes
  Introduce virtio-testdev
  arm: initial drop

 Makefile                      |  19 +-
 README                        |  56 ++--
 arm/boot.c                    |  17 +
 arm/cstart.S                  |  38 +++
 arm/flat.lds                  |  18 ++
 arm/run                       |  19 ++
 arm/unittests.cfg             |  11 +
 config-i386.mak               |  13 -
 config-ia64.mak               |   7 -
 config-powerpc-440.mak        |  15 -
 config-powerpc.mak            |  39 ---
 config-x86-common.mak         | 122 --------
 config-x86_64.mak             |  14 -
 config/config-arm.mak         |  73 +++++
 config/config-i386.mak        |  12 +
 config/config-x86-common.mak  | 121 ++++++++
 config/config-x86_64.mak      |  13 +
 configure                     |  27 +-
 docs/testdev.txt              |  11 +
 flat.lds                      |  21 --
 formats                       |  31 --
 iotable.c                     |  53 ----
 iotable.h                     |  40 ---
 kvmtrace.c                    | 706 ------------------------------------------
 kvmtrace_format               | 532 -------------------------------
 lib/arm/eabi_compat.c         |  20 ++
 lib/arm/io.c                  |  31 ++
 lib/arm/io.h                  |  24 ++
 lib/arm/setup.c               |  85 +++++
 lib/arm/sysinfo.h             |  19 ++
 lib/errno.h                   |  22 ++
 lib/fwcfg.c                   |  58 ----
 lib/heap.c                    |  43 +++
 lib/heap.h                    |   8 +
 lib/iomaps.c                  |  31 ++
 lib/iomaps.h                  |  14 +
 lib/libcflat.h                |   8 +-
 lib/libio.c                   |  67 ++++
 lib/libio.h                   | 180 +++++++++++
 lib/panic.c                   |  13 -
 lib/powerpc/44x/map.c         |  51 ---
 lib/powerpc/44x/timebase.S    |  28 --
 lib/powerpc/44x/timebase.h    |  25 --
 lib/powerpc/44x/tlbwe.S       |  29 --
 lib/powerpc/io.c              |  35 ---
 lib/test_util.c               |  34 ++
 lib/test_util.h               |  13 +
 lib/virtio-testdev.c          | 139 +++++++++
 lib/virtio-testdev.h          |   9 +
 lib/virtio.c                  |  70 +++++
 lib/virtio.h                  |  74 +++++
 lib/x86/vm.c                  |  33 +-
 main-ppc.c                    | 383 -----------------------
 powerpc/44x/tlbsx.S           |  33 --
 powerpc/44x/tlbwe.S           |  27 --
 powerpc/44x/tlbwe_16KB.S      |  35 ---
 powerpc/44x/tlbwe_hole.S      |  27 --
 powerpc/cstart.S              |  38 ---
 powerpc/exit.c                |  23 --
 powerpc/helloworld.c          |  27 --
 powerpc/io.S                  |  32 --
 powerpc/spin.S                |   4 -
 powerpc/sprg.S                |   7 -
 run_tests.sh                  |  19 +-
 scripts/gen-devtree-iomaps.pl | 105 +++++++
 testdev.txt                   |  14 -
 x86-run                       |  41 ---
 x86/README                    |  60 +++-
 x86/flat.lds                  |  21 ++
 x86/print.h                   |  19 --
 x86/run                       |  41 +++
 x86/run-kvm-unit-tests        |   6 -
 72 files changed, 1502 insertions(+), 2651 deletions(-)
 create mode 100644 arm/boot.c
 create mode 100644 arm/cstart.S
 create mode 100644 arm/flat.lds
 create mode 100755 arm/run
 create mode 100644 arm/unittests.cfg
 delete mode 100644 config-i386.mak
 delete mode 100644 config-ia64.mak
 delete mode 100644 config-powerpc-440.mak
 delete mode 100644 config-powerpc.mak
 delete mode 100644 config-x86-common.mak
 delete mode 100644 config-x86_64.mak
 create mode 100644 config/config-arm.mak
 create mode 100644 config/config-i386.mak
 create mode 100644 config/config-x86-common.mak
 create mode 100644 config/config-x86_64.mak
 create mode 100644 docs/testdev.txt
 delete mode 100644 flat.lds
 delete mode 100644 formats
 delete mode 100644 iotable.c
 delete mode 100644 iotable.h
 delete mode 100644 kvmtrace.c
 delete mode 100755 kvmtrace_format
 create mode 100644 lib/arm/eabi_compat.c
 create mode 100644 lib/arm/io.c
 create mode 100644 lib/arm/io.h
 create mode 100644 lib/arm/setup.c
 create mode 100644 lib/arm/sysinfo.h
 create mode 100644 lib/errno.h
 delete mode 100644 lib/fwcfg.c
 create mode 100644 lib/heap.c
 create mode 100644 lib/heap.h
 create mode 100644 lib/iomaps.c
 create mode 100644 lib/iomaps.h
 create mode 100644 lib/libio.c
 create mode 100644 lib/libio.h
 delete mode 100644 lib/panic.c
 delete mode 100644 lib/powerpc/44x/map.c
 delete mode 100644 lib/powerpc/44x/timebase.S
 delete mode 100644 lib/powerpc/44x/timebase.h
 delete mode 100644 lib/powerpc/44x/tlbwe.S
 delete mode 100644 lib/powerpc/io.c
 create mode 100644 lib/test_util.c
 create mode 100644 lib/test_util.h
 create mode 100644 lib/virtio-testdev.c
 create mode 100644 lib/virtio-testdev.h
 create mode 100644 lib/virtio.c
 create mode 100644 lib/virtio.h
 delete mode 100644 main-ppc.c
 delete mode 100644 powerpc/44x/tlbsx.S
 delete mode 100644 powerpc/44x/tlbwe.S
 delete mode 100644 powerpc/44x/tlbwe_16KB.S
 delete mode 100644 powerpc/44x/tlbwe_hole.S
 delete mode 100644 powerpc/cstart.S
 delete mode 100644 powerpc/exit.c
 delete mode 100644 powerpc/helloworld.c
 delete mode 100644 powerpc/io.S
 delete mode 100644 powerpc/spin.S
 delete mode 100644 powerpc/sprg.S
 create mode 100755 scripts/gen-devtree-iomaps.pl
 delete mode 100644 testdev.txt
 delete mode 100755 x86-run
 create mode 100644 x86/flat.lds
 delete mode 100644 x86/print.h
 create mode 100755 x86/run
 delete mode 100644 x86/run-kvm-unit-tests

-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux