qemu with hax to log dma reads & writes
jcs.org/2018/11/12/vfio
1#
2# Docker mips64el cross-compiler target
3#
4# This docker target builds on the debian Stretch base image.
5#
6
7FROM qemu:debian10
8
9MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
10
11# Add the foreign architecture we want and install dependencies
12RUN dpkg --add-architecture mips64el && \
13 apt update && \
14 DEBIAN_FRONTEND=noninteractive eatmydata \
15 apt install -y --no-install-recommends \
16 gcc-mips64el-linux-gnuabi64
17
18RUN apt update && \
19 DEBIAN_FRONTEND=noninteractive eatmydata \
20 apt build-dep -yy -a mips64el --arch-only qemu
21
22# Specify the cross prefix for this image (see tests/docker/common.rc)
23ENV QEMU_CONFIGURE_OPTS --cross-prefix=mips64el-linux-gnuabi64-
24ENV DEF_TARGET_LIST mips64el-softmmu,mips64el-linux-user
25
26# Install extra libraries to increase code coverage
27RUN apt update && \
28 DEBIAN_FRONTEND=noninteractive eatmydata \
29 apt install -y --no-install-recommends \
30 libbz2-dev:mips64el \
31 liblzo2-dev:mips64el \
32 librdmacm-dev:mips64el \
33 libsnappy-dev:mips64el