Thomas Huth and Alex Bennée
cf63177e59
tests/docker: Update the tricore container to debian 10
...
We do not support Debian 9 anymore, thus update the Tricore container
to Debian 10 now.
Signed-off-by: Thomas Huth <thuth@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20200921174320.46062-4-thuth@redhat.com >
Message-Id: <20200925154027.12672-12-alex.bennee@linaro.org >
2020-10-02 12:29:08 +01:00
Paolo Bonzini and Peter Maydell
17cd6e2bbf
docker.py: always use --rm
...
Avoid that containers pile up.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Acked-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2020-09-18 10:44:47 +01:00
Paolo Bonzini
660f793093
Makefile: inline the relevant parts of rules.mak
...
Most of rules.mak is not used anymore, just inline what's needed.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-09-08 11:43:16 +02:00
Alex Bennée
182ec06076
tests/docker: fix binfmt_misc image building
...
When we updated the arguments for docker.py we missed a bit.
Fixes: dfae628459 ("docker.py/build: support -t and -f arguments")
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20200724064509.331-11-alex.bennee@linaro.org >
2020-07-27 09:41:22 +01:00
Alex Bennée
27ebeda0c0
tests/docker: add a linux-user testing focused image
...
We happily use all the cross images for both cross-building QEMU as
well as building the linux-user tests. However calling docker from
within docker seems not to work. As we can build in Debian anyway why
not include an image that has all the compilers available for
non-docker invocation.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20200701135652.1366-33-alex.bennee@linaro.org >
2020-07-11 15:53:00 +01:00
Alex Bennée
e6f1306b10
tests/docker: add --registry support to tooling
...
This allows us to point the tools towards a registry from which they
can grab pre-built layers instead of doing everything from scratch
each time. To enable this we need to be using the DOCKER_BUILDKIT
engine.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20200701135652.1366-25-alex.bennee@linaro.org >
2020-07-11 15:53:00 +01:00
Alex Bennée
767b6bd22b
tests/docker: change tag naming scheme of our images
...
We've been misusing the tag naming scheme for some time by overloading
the post : section with the image type. Really it should be saved for
the revision of that particular build. Move the details to the other
side so we have:
qemu/image-name
with the implied :latest version added by the tooling.
Suggested-by: Daniel P. Berrangé <berrange@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20200701135652.1366-18-alex.bennee@linaro.org >
2020-07-11 15:53:00 +01:00
Peter Maydell
7d3660e798
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging
...
* Miscellaneous fixes and feature enablement (many)
* SEV refactoring (David)
* Hyper-V initial support (Jon)
* i386 TCG fixes (x87 and SSE, Joseph)
* vmport cleanup and improvements (Philippe, Liran)
* Use-after-free with vCPU hot-unplug (Nengyuan)
* run-coverity-scan improvements (myself)
* Record/replay fixes (Pavel)
* -machine kernel_irqchip=split improvements for INTx (Peter)
* Code cleanups (Philippe)
* Crash and security fixes (PJP)
* HVF cleanups (Roman)
# gpg: Signature made Fri 12 Jun 2020 16:57:04 BST
# gpg: using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
# gpg: issuer "pbonzini@redhat.com "
# gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org >" [full]
# gpg: aka "Paolo Bonzini <pbonzini@redhat.com >" [full]
# Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4 E2F7 7E15 100C CD36 69B1
# Subkey fingerprint: F133 3857 4B66 2389 866C 7682 BFFB D25F 78C7 AE83
* remotes/bonzini/tags/for-upstream: (116 commits)
target/i386: Remove obsolete TODO file
stubs: move Xen stubs to accel/
replay: fix replay shutdown for console mode
exec/cpu-common: Move MUSB specific typedefs to 'hw/usb/hcd-musb.h'
hw/usb: Move device-specific declarations to new 'hcd-musb.h' header
exec/memory: Remove unused MemoryRegionMmio type
checkpatch: reversed logic with acpi test checks
target/i386: sev: Unify SEVState and SevGuestState
target/i386: sev: Remove redundant handle field
target/i386: sev: Remove redundant policy field
target/i386: sev: Remove redundant cbitpos and reduced_phys_bits fields
target/i386: sev: Partial cleanup to sev_state global
target/i386: sev: Embed SEVState in SevGuestState
target/i386: sev: Rename QSevGuestInfo
target/i386: sev: Move local structure definitions into .c file
target/i386: sev: Remove unused QSevGuestInfoClass
xen: fix build without pci passthrough
i386: hvf: Drop HVFX86EmulatorState
i386: hvf: Move mmio_buf into CPUX86State
i386: hvf: Move lazy_flags into CPUX86State
...
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
# Conflicts:
# hw/i386/acpi-build.c
2020-06-12 23:06:22 +01:00
Paolo Bonzini
dfae628459
docker.py/build: support -t and -f arguments
...
The docker.py command line is subtly different from docker and podman's,
in that the tag and Dockerfile are passed via positional arguments.
Remove this gratuitous difference and just parse -f and -t.
-f was previously used by --extra-files, only keep the long option.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-06-10 12:09:31 -04:00
Alex Bennée
e035e6ffed
tests/docker: fix pre-requisite for debian-tricore-cross
...
Reported-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20200605154929.26910-9-alex.bennee@linaro.org >
2020-06-08 17:04:19 +01:00
Alex Bennée
c729a99d27
tests/docker: use a gcc-10 based image for arm64 tests
...
As we enable newer features that we want to test on arm64 targets we
need newer compilers. Split off a new debian-arm64-test-cross image
which we can use to build these new tests.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20200520140541.30256-11-alex.bennee@linaro.org >
2020-05-27 14:26:49 +01:00
Alex Bennée
086f269cf4
tests/docker: add debian11 base image
...
We won't use this for building QEMU but we do need newer GCC's and
binutils for building some of our test cases.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20200520140541.30256-10-alex.bennee@linaro.org >
2020-05-27 14:26:49 +01:00
Alex Bennée
698a71edbe
tests/docker: move most cross compilers to buster base
...
This includes fixing up the dependencies (Which were already wrong for
one of the mips variants).
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20200203090932.19147-2-alex.bennee@linaro.org >
2020-02-04 17:13:28 +00:00
Alex Bennée
06746324ad
tests/docker: set HOST_ARCH if we don't have ARCH
...
As the docker rules want to be able to be run on a virgin unconfigured
checkout add a fallback and use it if we need to.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
2019-10-25 19:24:21 +01:00
Alex Bennée
80394ccf21
tests/docker: remove debian-powerpc-user-cross
...
Despite our attempts in 4d26c7fef4 to keep this going it still gets in
the way of "make docker-test-build" completing because of course we
can't build a modern QEMU with the image. Let's put the thing out of
its misery and remove it.
People who really care about building on powerpc can still use the
binfmt_misc support to manually build an image (or just run the build
from pre this commit).
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
2019-09-26 19:00:53 +01:00
John Snow and Alex Bennée
2e90aec3d9
docker: remove unused debian-sid
...
debian-sid is listed as a partial image, so we cannot run tests against it.
Since it isn't used by any other testable image, remove it for now as it
is prone to bitrot.
Signed-off-by: John Snow <jsnow@redhat.com >
Message-Id: <20190923181140.7235-6-jsnow@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2019-09-26 19:00:53 +01:00
John Snow and Alex Bennée
dad47814f0
docker: remove unused debian-ports
...
debian-ports is listed as a partial image, so we cannot run tests against it.
Since it isn't used by any other testable image, remove it for now as it
is prone to bitrot.
Signed-off-by: John Snow <jsnow@redhat.com >
Message-Id: <20190923181140.7235-5-jsnow@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2019-09-26 19:00:53 +01:00
John Snow and Alex Bennée
ef8f3283ac
docker: remove 'deprecated' image definitions
...
There isn't a debian.dockerfile anymore,
so perform some ghost-busting.
Signed-off-by: John Snow <jsnow@redhat.com >
Message-Id: <20190923181140.7235-4-jsnow@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2019-09-26 19:00:53 +01:00
John Snow and Alex Bennée
afa1cf4329
docker: remove unused debian8 partial image
...
debian8 partial base is also not consumed by any image, so remove it.
For QEMU's development cycle, we only support debian9 (stretch) and
debian10 (buster).
Signed-off-by: John Snow <jsnow@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20190923181140.7235-3-jsnow@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
2019-09-26 19:00:53 +01:00
John Snow and Alex Bennée
ccf20b3b4f
docker: remove debian8-mxe definitions
...
We don't have a debian8-mxe dockerfile anymore.
Fixes: 67bd36beda
Signed-off-by: John Snow <jsnow@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20190923181140.7235-2-jsnow@redhat.com >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
2019-09-26 19:00:53 +01:00
Alex Bennée
b4d66d3525
tests/docker: fix DOCKER_PARTIAL_IMAGES
...
Finger trouble in a previous clean-up inadvertently set
DEBIAN_PARTIAL_IMAGES instead of DOCKER_PARTIAL_IMAGES. Also fix the
typo to debian-9-mxe.
Fixes: 44d5a8bf5d
Signed-off-by: John Snow <jsnow@redhat.com >
[AJB: merged fix from Message-Id: <20190917185537.25417-1-jsnow@redhat.com >]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Cleber Rosa <crosa@redhat.com >
2019-09-26 19:00:53 +01:00
Alex Bennée
e5389e4414
tests/docker: add more images to PARTIAL_IMAGES when not on x86_64
...
This prevents us trying to do builds which we can't complete.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
2019-09-10 14:14:31 +01:00
Alex Bennée
ec22b72699
tests/docker: add debian-amd64-cross for non-x86 hosts
...
When building on a non-x86 host we need to setup the x86 build like
any other cross compiler.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
2019-09-10 14:14:31 +01:00
Alex Bennée
44d5a8bf5d
tests/docker: add debian9-mxe to DEBIAN_PARTIAL_IMAGES
...
Another image that can't be used directly to build QEMU.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2019-09-10 14:14:31 +01:00
Alex Bennée
ac276a4b54
tests/docker: add debian-xtensa-cross to DEBIAN_PARTIAL_IMAGES
...
This should have been marked when the docker recipe was added to
prevent it being used for cross compiling QEMU. Sort the
DEBIAN_PARTIAL_IMAGE list while we are at it.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com >
2019-09-10 14:14:31 +01:00