[Qemu-devel] [PATCH v1 0/4] softmmu de-macro fix with tests

Alex Bennée posted 4 patches 4 years, 10 months ago
Test s390x passed
Test checkpatch failed
Test asan passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190605162326.13896-1-alex.bennee@linaro.org
accel/tcg/cputlb.c                     |   2 +-
tests/tcg/i386/Makefile.softmmu-target |  10 +-
tests/tcg/multiarch/system/memory.c    |  36 +++-
tests/tcg/x86_64/system/boot.S         | 277 +++++++++++++++++++++++++
tests/tcg/x86_64/system/kernel.ld      |  33 +++
5 files changed, 345 insertions(+), 13 deletions(-)
create mode 100644 tests/tcg/x86_64/system/boot.S
create mode 100644 tests/tcg/x86_64/system/kernel.ld
[Qemu-devel] [PATCH v1 0/4] softmmu de-macro fix with tests
Posted by Alex Bennée 4 years, 10 months ago
Hi,

So this is the fix for the cputlb de-macro along with some tweaks to
the testing. It turns out tests/memory would detect the failure of
running aarch64-on-armv7 but we glossed over the zeroed load because
the logic didn't account for multiple zeros in a row. While I was at
it I updated the system test code to include x86_64 so I could run the
memory tests on i386 machines. However it didn't show any additional
breakage so I think the breakage reported in:

  From: Andrew Randrianasulu <randrianasulu@gmail.com>
  To: qemu-devel@nongnu.org
  Date: Sat, 1 Jun 2019 06:03:23 +0300
  Subject: [Qemu-devel] "accel/tcg: demacro cputlb" break qemu-system-x86_64

is something else - I'm continuing to investigate this.

Alex Bennée (4):
  cputlb: use uint64_t for interim values for unaligned load
  tests/tcg: better detect truncated reads
  tests/tcg: clean-up VPATH/TESTS for i386
  tests/tcg/x86_64: add a PVHVM crt.o for x86_64 system tests

 accel/tcg/cputlb.c                     |   2 +-
 tests/tcg/i386/Makefile.softmmu-target |  10 +-
 tests/tcg/multiarch/system/memory.c    |  36 +++-
 tests/tcg/x86_64/system/boot.S         | 277 +++++++++++++++++++++++++
 tests/tcg/x86_64/system/kernel.ld      |  33 +++
 5 files changed, 345 insertions(+), 13 deletions(-)
 create mode 100644 tests/tcg/x86_64/system/boot.S
 create mode 100644 tests/tcg/x86_64/system/kernel.ld

-- 
2.20.1


Re: [Qemu-devel] [PATCH v1 0/4] softmmu de-macro fix with tests
Posted by no-reply@patchew.org 4 years, 10 months ago
Patchew URL: https://patchew.org/QEMU/20190605162326.13896-1-alex.bennee@linaro.org/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Message-id: 20190605162326.13896-1-alex.bennee@linaro.org
Subject: [Qemu-devel] [PATCH  v1 0/4] softmmu de-macro fix with tests
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
9a2b8e6 tests/tcg/x86_64: add a PVHVM crt.o for x86_64 system tests
49841ed tests/tcg: clean-up VPATH/TESTS for i386
fd1882e tests/tcg: better detect truncated reads
214a2c9 cputlb: use uint64_t for interim values for unaligned load

=== OUTPUT BEGIN ===
1/4 Checking commit 214a2c99a813 (cputlb: use uint64_t for interim values for unaligned load)
2/4 Checking commit fd1882ebd60f (tests/tcg: better detect truncated reads)
ERROR: line over 90 characters
#65: FILE: tests/tcg/multiarch/system/memory.c:273:
+            ml_printf("Error @ %p, more zeros than expected: %d, %d, %d, %d, %d, %d, %d, %d",

total: 1 errors, 0 warnings, 84 lines checked

Patch 2/4 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

3/4 Checking commit 49841edf7a1f (tests/tcg: clean-up VPATH/TESTS for i386)
4/4 Checking commit 9a2b8e66dabf (tests/tcg/x86_64: add a PVHVM crt.o for x86_64 system tests)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#26: 
new file mode 100644

ERROR: line over 90 characters
#82: FILE: tests/tcg/x86_64/system/boot.S:52:
+       ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY,   _ASM_PTR _start)    /* entry == virtbase */

WARNING: line over 80 characters
#90: FILE: tests/tcg/x86_64/system/boot.S:60:
+       * - `ebx`: contains the physical memory address where the loader has placed

WARNING: line over 80 characters
#92: FILE: tests/tcg/x86_64/system/boot.S:62:
+       * - `cr0`: bit 0 (PE) must be set. All the other writeable bits are cleared.

WARNING: line over 80 characters
#94: FILE: tests/tcg/x86_64/system/boot.S:64:
+       * - `cs `: must be a 32-bit read/execute code segment with a base of ‘0’

WARNING: line over 80 characters
#95: FILE: tests/tcg/x86_64/system/boot.S:65:
+       *          and a limit of ‘0xFFFFFFFF’. The selector value is unspecified.

ERROR: line over 90 characters
#97: FILE: tests/tcg/x86_64/system/boot.S:67:
+       *               ‘0’ and a limit of ‘0xFFFFFFFF’. The selector values are all

WARNING: line over 80 characters
#102: FILE: tests/tcg/x86_64/system/boot.S:72:
+       *             Bit 8 (TF) must be cleared. Other bits are all unspecified.

WARNING: line over 80 characters
#104: FILE: tests/tcg/x86_64/system/boot.S:74:
+       * All other processor registers and flag bits are unspecified. The OS is in

WARNING: line over 80 characters
#157: FILE: tests/tcg/x86_64/system/boot.S:127:
+        /* don't worry about stack frame, assume everthing is garbage when we return */

total: 2 errors, 8 warnings, 317 lines checked

Patch 4/4 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20190605162326.13896-1-alex.bennee@linaro.org/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com