target/arm: fix some ATS* bugs
cover target/arm: fix some ATS* bugs
This small patchset fixes a couple of bugs in our ATS insn handling:
* for faults reported to the 64-bit PAR we were not setting the S and PTW bits to indicate stage 2 fault information
(NB: stage 2 faults aren't reported with 32-bit PAR formats so there's no need to change the 32-bit code path)
* ATS1Hx were implementing the wrong thing (doing a stage 2 lookup rather than an EL2 stage 1 lookup)
The major missing bit of ATS at the moment is that a stage 2 fault during execution of an NS-EL1 ATS insn that asks for a stage 1 lookup should cause a trap to EL2. I started to sketch out some code to do that, but I realised by putting an assert() in it that I didn't have any guests that actually hit the problem, so put it on the back burner. If anybody does hit that missing feature, feel free to send me a test case :-)
Based-on: <[email protected]> ("[PATCH 00/10] target/arm: more HCR bits, improve syndrome reporting") but only to avoid a textual conflict in the patch context.
thanks
-- PMM
Peter Maydell (2):
target/arm: Set S and PTW in 64-bit PAR format
target/arm: Fix ATS1Hx instructions
target/arm/helper.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
Signature · 1 line
2.19.0
PATCH 1/2 target/arm: Set S and PTW in 64-bit PAR format
In do_ats_write() we construct a PAR value based on the result of the translation. A comment says "S2WLK and FSTAGE are always zero, because we don't implement virtualization".
Since we do in fact now implement virtualization, add the missing code that sets these bits based on the reported ARMMMUFaultInfo.
(These bits are named PTW and S in ARMv8, so we follow that convention in the new comments in this patch.)
--- target/arm/helper.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
target/arm/helper.c +6 -4
@@ -2344,10 +2344,12 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value, par64 |=1 ;/* F */ par64 |= (fsr &0x3f ) <<1 ;/* FS */ -/* Note that S2WLK and FSTAGE are always zero, because we don't -* implement virtualization and therefore there can't be a stage 2 -* fault. -*/ +if (fi.stage2) { + par64 |= (1 <<9 );/* S */ + } +if (fi.s1ptw) { + par64 |= (1 <<8 );/* PTW */ + } } }else {/* fsr is a DFSR/IFSR value for the short descriptor
Signature · 1 line
2.19.0
Re: [Qemu-arm] [PATCH 1/2] target/arm: Set S and PTW in 64-bit PAR format
Quoted 10 lines · Peter Maydell
In
do_ats_write()we construct a PAR value based on the result of the translation. A comment says "S2WLK and FSTAGE are always zero, because we don't implement virtualization".
Since we do in fact now implement virtualization, add the missing code that sets these bits based on the reported ARMMMUFaultInfo.(These bits are named PTW and S in ARMv8, so we follow that convention in the new comments in this patch.)
Signed-off-by Peter Maydell <[email protected]>
Quoted 29 lines
--- target/arm/helper.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)target/arm/helper.c +6
-4@@ -2344,10 +2344,12 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value, par64 |=1 ;/* F */ par64 |= (fsr &0x3f ) <<1 ;/* FS */ -/* Note that S2WLK and FSTAGE are always zero, because we don't -* implement virtualization and therefore there can't be a stage 2 -* fault. -*/ +if (fi.stage2) { + par64 |= (1 <<9 );/* S */ + } +if (fi.s1ptw) { + par64 |= (1 <<8 );/* PTW */ + } } }else {/* fsr is a DFSR/IFSR value for the short descriptor Signature · 1 line
2.19.0
Re: [Qemu-arm] [PATCH 1/2] target/arm: Set S and PTW in 64-bit PAR format
In reply to Peter MaydellQuoted 19 lines · Peter Maydell
In
do_ats_write()we construct a PAR value based on the result of the translation. A comment says "S2WLK and FSTAGE are always zero, because we don't implement virtualization".
Since we do in fact now implement virtualization, add the missing code that sets these bits based on the reported ARMMMUFaultInfo.(These bits are named PTW and S in ARMv8, so we follow that convention in the new comments in this patch.)
Signed-off-by Peter Maydell <[email protected]>--- target/arm/helper.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)target/arm/helper.c +0
-0
target/arm/helper.c static uint64_t do_ats_write(CPUARMState *env, uint64_t value, · line 2345
Quoted 2 lines
target/arm/helper.c +0
-0@@ -2344,10 +2344,12 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value, par64 |=1 ;/* F */
To aid readability, mainly for those not familiar like me, maybe:
par64 |= 1; /* PAR_EL1.F == 1, failed translation */
Quoted 4 lines
target/arm/helper.c +0
-3par64 |= (fsr &0x3f ) <<1 ;/* FS */ -/* Note that S2WLK and FSTAGE are always zero, because we don't -* implement virtualization and therefore there can't be a stage 2 -* fault.
target/arm/helper.c static uint64_t do_ats_write(CPUARMState *env, uint64_t value, · line 2355
Quoted 10 lines
target/arm/helper.c +6
-1-*/ +if (fi.stage2) { + par64 |= (1 <<9 );/* S */ + } +if (fi.s1ptw) { + par64 |= (1 <<8 );/* PTW */ + } } }else {/* fsr is a DFSR/IFSR value for the short descriptor
Anyway:
--
Alex Bennée
Re: [Qemu-arm] [PATCH 1/2] target/arm: Set S and PTW in 64-bit PAR format
Quoted 23 lines · Alex Bennée
Quoted 20 lines · Peter Maydell
In
do_ats_write()we construct a PAR value based on the result of the translation. A comment says "S2WLK and FSTAGE are always zero, because we don't implement virtualization".
Since we do in fact now implement virtualization, add the missing code that sets these bits based on the reported ARMMMUFaultInfo.(These bits are named PTW and S in ARMv8, so we follow that convention in the new comments in this patch.)
Signed-off-by Peter Maydell <[email protected]>--- target/arm/helper.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)target/arm/helper.c +0
-0@@ -2344,10 +2344,12 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value,
Quoted 5 lines
target/arm/helper.c static uint64_t do_ats_write(CPUARMState *env, uint64_t value, · line 2345
Quoted 1 line
target/arm/helper.c +0
-0par64 |=1 ;/* F */ To aid readability, mainly for those not familiar like me, maybe:
par64 |= 1; /* PAR_EL1.F == 1, failed translation */
That's in the existing code...
Quoted 15 lines
Quoted 4 lines
target/arm/helper.c +0
-3par64 |= (fsr &0x3f ) <<1 ;/* FS */ -/* Note that S2WLK and FSTAGE are always zero, because we don't -* implement virtualization and therefore there can't be a stage 2 -* fault. target/arm/helper.c static uint64_t do_ats_write(CPUARMState *env, uint64_t value, · line 2355
Quoted 10 lines
target/arm/helper.c +6
-1-*/ +if (fi.stage2) { + par64 |= (1 <<9 );/* S */ + } +if (fi.s1ptw) { + par64 |= (1 <<8 );/* PTW */ + } } }else {/* fsr is a DFSR/IFSR value for the short descriptor
Quoted 3 lines
Anyway:
Reviewed-by Alex Bennée <[email protected]>
thanks
-- PMM
Re: [Qemu-arm] [PATCH 1/2] target/arm: Set S and PTW in 64-bit PAR format
Quoted 24 lines · Peter Maydell
Quoted 23 lines · Alex Bennée
Quoted 20 lines · Peter Maydell
In
do_ats_write()we construct a PAR value based on the result of the translation. A comment says "S2WLK and FSTAGE are always zero, because we don't implement virtualization".
Since we do in fact now implement virtualization, add the missing code that sets these bits based on the reported ARMMMUFaultInfo.(These bits are named PTW and S in ARMv8, so we follow that convention in the new comments in this patch.)
Signed-off-by Peter Maydell <[email protected]>--- target/arm/helper.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)target/arm/helper.c +0
-0@@ -2344,10 +2344,12 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value,
Quoted 7 lines
Quoted 5 lines
target/arm/helper.c static uint64_t do_ats_write(CPUARMState *env, uint64_t value, · line 2345
Quoted 1 line
target/arm/helper.c +0
-0par64 |=1 ;/* F */ To aid readability, mainly for those not familiar like me, maybe:
par64 |= 1; /* PAR_EL1.F == 1, failed translation */
That's in the existing code...
I know, it was just a suggestion to help make it clearer there are two forms when you are reading the register definition.
--
Alex Bennée
PATCH 2/2 target/arm: Fix ATS1Hx instructions
In reply to Peter MaydellATS1HR and ATS1HW (which allow AArch32 EL2 to do address translations on the EL2 translation regime) were implemented in commit 14db7fe09a2c8. However, we got them wrong: these should do stage 1 address translations as defined for NS-EL2, which is ARMMMUIdx_S1E2. We were incorrectly making them perform stage 2 translations.
A few years later in commit 1313e2d7e2cd we forgot entirely that we'd implemented ATS1Hx, and added a comment that ATS1Hx were "not supported yet". Remove the comment; there is no extra code needed to handle these operations in do_ats_write(), because arm_s1_regime_using_lpae_format() returns true for ARMMMUIdx_S1E2, which forces 64-bit PAR format.
--- target/arm/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/arm/helper.c +2 -2
@@ -2316,7 +2316,7 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value,* * (Note that HCR.DC makes HCR.VM behave as if it is 1.) * -* ATS1Hx always uses the 64bit format (not supported yet). +* ATS1Hx always uses the 64bit format. */ format64 =arm_s1_regime_using_lpae_format (env, mmu_idx);
@@ -2441,7 +2441,7 @@ static void ats1h_write(CPUARMState *env, const ARMCPRegInfo *ri,MMUAccessType access_type = ri->opc2 &1 ?MMU_DATA_STORE :MMU_DATA_LOAD ;uint64_t par64; - par64 =do_ats_write (env, value, access_type, ARMMMUIdx_S2NS); + par64 =do_ats_write (env, value, access_type, ARMMMUIdx_S1E2);A32_BANKED_CURRENT_REG_SET (env, par, par64); }
Signature · 1 line
2.19.0
Re: [Qemu-arm] [PATCH 2/2] target/arm: Fix ATS1Hx instructions
Quoted 6 lines · Peter Maydell
ATS1HR and ATS1HW (which allow AArch32 EL2 to do address translations on the EL2 translation regime) were implemented in commit
14db7fe09a2c8. However, we got them wrong: these should do stage 1 address translations as defined for NS-EL2, which isARMMMUIdx_S1E2. We were incorrectly making them perform stage 2 translations.
Quoted 8 lines
A few years later in commit
1313e2d7e2cdwe forgot entirely that we'd implemented ATS1Hx, and added a comment that ATS1Hx were "not supported yet". Remove the comment; there is no extra code needed to handle these operations indo_ats_write(), becausearm_s1_regime_using_lpae_format()returns true forARMMMUIdx_S1E2, which forces 64-bit PAR format.Signed-off-by Peter Maydell <[email protected]>
Quoted 18 lines
--- target/arm/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)target/arm/helper.c +1
-1@@ -2316,7 +2316,7 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value,* * (Note that HCR.DC makes HCR.VM behave as if it is 1.) * -* ATS1Hx always uses the 64bit format (not supported yet). +* ATS1Hx always uses the 64bit format. */ format64 =arm_s1_regime_using_lpae_format (env, mmu_idx);
target/arm/helper.c static void ats1h_write(CPUARMState *env, const ARMCPRegInfo *ri, · line 2447
Quoted 8 lines
target/arm/helper.c +1
-1@@ -2441,7 +2441,7 @@ static void ats1h_write(CPUARMState *env, const ARMCPRegInfo *ri,MMUAccessType access_type = ri->opc2 &1 ?MMU_DATA_STORE :MMU_DATA_LOAD ;uint64_t par64; - par64 =do_ats_write (env, value, access_type, ARMMMUIdx_S2NS); + par64 =do_ats_write (env, value, access_type, ARMMMUIdx_S1E2);A32_BANKED_CURRENT_REG_SET (env, par, par64); }
--
Alex Bennée
Re: [Qemu-arm] [PATCH 2/2] target/arm: Fix ATS1Hx instructions
In reply to Peter MaydellQuoted 6 lines · Peter Maydell
ATS1HR and ATS1HW (which allow AArch32 EL2 to do address translations on the EL2 translation regime) were implemented in commit
14db7fe09a2c8. However, we got them wrong: these should do stage 1 address translations as defined for NS-EL2, which isARMMMUIdx_S1E2. We were incorrectly making them perform stage 2 translations.
Quoted 8 lines
A few years later in commit
1313e2d7e2cdwe forgot entirely that we'd implemented ATS1Hx, and added a comment that ATS1Hx were "not supported yet". Remove the comment; there is no extra code needed to handle these operations indo_ats_write(), becausearm_s1_regime_using_lpae_format()returns true forARMMMUIdx_S1E2, which forces 64-bit PAR format.Signed-off-by Peter Maydell <[email protected]>
Oops, yes:
Quoted 30 lines
--- target/arm/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)target/arm/helper.c +2
-2@@ -2316,7 +2316,7 @@ static uint64_t do_ats_write(CPUARMState *env, uint64_t value,* * (Note that HCR.DC makes HCR.VM behave as if it is 1.) * -* ATS1Hx always uses the 64bit format (not supported yet). +* ATS1Hx always uses the 64bit format. */ format64 =arm_s1_regime_using_lpae_format (env, mmu_idx);@@ -2441,7 +2441,7 @@ static void ats1h_write(CPUARMState *env, const ARMCPRegInfo *ri,MMUAccessType access_type = ri->opc2 &1 ?MMU_DATA_STORE :MMU_DATA_LOAD ;uint64_t par64; - par64 =do_ats_write (env, value, access_type, ARMMMUIdx_S2NS); + par64 =do_ats_write (env, value, access_type, ARMMMUIdx_S1E2);A32_BANKED_CURRENT_REG_SET (env, par, par64); }Signature · 1 line
2.19.0
Ping for code review, please?
thanks
-- PMM
Quoted 33 lines · Peter Maydell
This small patchset fixes a couple of bugs in our ATS insn handling:
* for faults reported to the 64-bit PAR we were not setting the S and PTW bits to indicate stage 2 fault information
(NB: stage 2 faults aren't reported with 32-bit PAR formats so there's no need to change the 32-bit code path)
* ATS1Hx were implementing the wrong thing (doing a stage 2 lookup rather than an EL2 stage 1 lookup)The major missing bit of ATS at the moment is that a stage 2 fault during execution of an NS-EL1 ATS insn that asks for a stage 1 lookup should cause a trap to EL2. I started to sketch out some code to do that, but I realised by putting an
assert()in it that I didn't have any guests that actually hit the problem, so put it on the back burner. If anybody does hit that missing feature, feel free to send me a test case :-)Based-on: <[email protected]> ("[PATCH 00/10] target/arm: more HCR bits, improve syndrome reporting") but only to avoid a textual conflict in the patch context.
thanks
-- PMMPeter Maydell (2):
target/arm: Set S and PTW in 64-bit PAR format
target/arm: Fix ATS1Hx instructionstarget/arm/helper.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Hi,
This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH 0/2] target/arm: fix some ATS* bugs
=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-mingw@fedora SHOW_ENV=1 J=8
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test'7118b6bc32 target/arm: Fix ATS1Hx instructions 2e6d932650 target/arm: Set S and PTW in 64-bit PAR format
=== OUTPUT BEGIN ===
BUILD fedora
make[1]: Entering directory '/var/tmp/patchew-tester-tmp-j_cwgv70/src'
GEN /var/tmp/patchew-tester-tmp-j_cwgv70/src/docker-src.2018-11-06-04.49.59.28947/qemu.tar
Cloning into '/var/tmp/patchew-tester-tmp-j_cwgv70/src/docker-src.2018-11-06-04.49.59.28947/qemu.tar.vroot'... done.
Your branch is up-to-date with 'origin/test'.
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc'
Cloning into '/var/tmp/patchew-tester-tmp-j_cwgv70/src/docker-src.2018-11-06-04.49.59.28947/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out '88f18909db731a627456f26d779445f84e449536'
Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-j_cwgv70/src/docker-src.2018-11-06-04.49.59.28947/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '6b3d716e2b6472eb7189d3220552280ef3d832ce'
COPY RUNNER
RUN test-mingw in qemu:fedora
Packages installed:
SDL2-devel-2.0.8-5.fc28.x86_64
bc-1.07.1-5.fc28.x86_64
bison-3.0.4-9.fc28.x86_64
bluez-libs-devel-5.50-1.fc28.x86_64
brlapi-devel-0.6.7-19.fc28.x86_64
bzip2-1.0.6-26.fc28.x86_64
bzip2-devel-1.0.6-26.fc28.x86_64
ccache-3.4.2-2.fc28.x86_64
clang-6.0.1-1.fc28.x86_64
device-mapper-multipath-devel-0.7.4-3.git07e7bd5.fc28.x86_64
findutils-4.6.0-19.fc28.x86_64
flex-2.6.1-7.fc28.x86_64
gcc-8.1.1-5.fc28.x86_64
gcc-c++-8.1.1-5.fc28.x86_64
gettext-0.19.8.1-14.fc28.x86_64
git-2.17.1-3.fc28.x86_64
glib2-devel-2.56.1-4.fc28.x86_64
glusterfs-api-devel-4.1.2-2.fc28.x86_64
gnutls-devel-3.6.3-3.fc28.x86_64
gtk3-devel-3.22.30-1.fc28.x86_64
hostname-3.20-3.fc28.x86_64
libaio-devel-0.3.110-11.fc28.x86_64
libasan-8.1.1-5.fc28.x86_64
libattr-devel-2.4.48-3.fc28.x86_64
libcap-devel-2.25-9.fc28.x86_64
libcap-ng-devel-0.7.9-4.fc28.x86_64
libcurl-devel-7.59.0-6.fc28.x86_64
libfdt-devel-1.4.6-5.fc28.x86_64
libpng-devel-1.6.34-6.fc28.x86_64
librbd-devel-12.2.7-1.fc28.x86_64
libssh2-devel-1.8.0-7.fc28.x86_64
libubsan-8.1.1-5.fc28.x86_64
libusbx-devel-1.0.22-1.fc28.x86_64
libxml2-devel-2.9.8-4.fc28.x86_64
llvm-6.0.1-6.fc28.x86_64
lzo-devel-2.08-12.fc28.x86_64
make-4.2.1-6.fc28.x86_64
mingw32-SDL2-2.0.5-3.fc27.noarch
mingw32-bzip2-1.0.6-9.fc27.noarch
mingw32-curl-7.57.0-1.fc28.noarch
mingw32-glib2-2.56.1-1.fc28.noarch
mingw32-gmp-6.1.2-2.fc27.noarch
mingw32-gnutls-3.6.2-1.fc28.noarch
mingw32-gtk3-3.22.30-1.fc28.noarch
mingw32-libjpeg-turbo-1.5.1-3.fc27.noarch
mingw32-libpng-1.6.29-2.fc27.noarch
mingw32-libssh2-1.8.0-3.fc27.noarch
mingw32-libtasn1-4.13-1.fc28.noarch
mingw32-nettle-3.4-1.fc28.noarch
mingw32-pixman-0.34.0-3.fc27.noarch
mingw32-pkg-config-0.28-9.fc27.x86_64
mingw64-SDL2-2.0.5-3.fc27.noarch
mingw64-bzip2-1.0.6-9.fc27.noarch
mingw64-curl-7.57.0-1.fc28.noarch
mingw64-glib2-2.56.1-1.fc28.noarch
mingw64-gmp-6.1.2-2.fc27.noarch
mingw64-gnutls-3.6.2-1.fc28.noarch
mingw64-gtk3-3.22.30-1.fc28.noarch
mingw64-libjpeg-turbo-1.5.1-3.fc27.noarch
mingw64-libpng-1.6.29-2.fc27.noarch
mingw64-libssh2-1.8.0-3.fc27.noarch
mingw64-libtasn1-4.13-1.fc28.noarch
mingw64-nettle-3.4-1.fc28.noarch
mingw64-pixman-0.34.0-3.fc27.noarch
mingw64-pkg-config-0.28-9.fc27.x86_64
ncurses-devel-6.1-5.20180224.fc28.x86_64
nettle-devel-3.4-2.fc28.x86_64
nss-devel-3.38.0-1.0.fc28.x86_64
numactl-devel-2.0.11-8.fc28.x86_64
package PyYAML is not installed
package libjpeg-devel is not installed
perl-5.26.2-413.fc28.x86_64
pixman-devel-0.34.0-8.fc28.x86_64
python3-3.6.5-1.fc28.x86_64
snappy-devel-1.1.7-5.fc28.x86_64
sparse-0.5.2-1.fc28.x86_64
spice-server-devel-0.14.0-4.fc28.x86_64
systemtap-sdt-devel-3.3-1.fc28.x86_64
tar-1.30-3.fc28.x86_64
usbredir-devel-0.8.0-1.fc28.x86_64
virglrenderer-devel-0.6.0-4.20170210git76b3da97b.fc28.x86_64
vte3-devel-0.36.5-6.fc28.x86_64
which-2.21-8.fc28.x86_64
xen-devel-4.10.1-5.fc28.x86_64
zlib-devel-1.2.11-8.fc28.x86_64
Environment variables:
TARGET_LIST=
PACKAGES=bc bison bluez-libs-devel brlapi-devel bzip2 bzip2-devel ccache clang device-mapper-multipath-devel findutils flex gcc gcc-c++ gettext git glib2-devel glusterfs-api-devel gnutls-devel gtk3-devel hostname libaio-devel libasan libattr-devel libcap-devel libcap-ng-devel libcurl-devel libfdt-devel libjpeg-devel libpng-devel librbd-devel libssh2-devel libubsan libusbx-devel libxml2-devel llvm lzo-devel make mingw32-bzip2 mingw32-curl mingw32-glib2 mingw32-gmp mingw32-gnutls mingw32-gtk3 mingw32-libjpeg-turbo mingw32-libpng mingw32-libssh2 mingw32-libtasn1 mingw32-nettle mingw32-pixman mingw32-pkg-config mingw32-SDL2 mingw64-bzip2 mingw64-curl mingw64-glib2 mingw64-gmp mingw64-gnutls mingw64-gtk3 mingw64-libjpeg-turbo mingw64-libpng mingw64-libssh2 mingw64-libtasn1 mingw64-nettle mingw64-pixman mingw64-pkg-config mingw64-SDL2 ncurses-devel nettle-devel nss-devel numactl-devel perl pixman-devel python3 PyYAML SDL2-devel snappy-devel sparse spice-server-devel systemtap-sdt-devel tar usbredir-devel virglrenderer-devel vte3-devel which xen-devel zlib-devel
J=8
V=
HOSTNAME=581d9c168188
DEBUG=
SHOW_ENV=1
PWD=/
HOME=/home/patchew
CCACHE_DIR=/var/tmp/ccache
DISTTAG=f28container
QEMU_CONFIGURE_OPTS=--python=/usr/bin/python3
FGC=f28
TEST_DIR=/tmp/qemu-test
SHLVL=1
FEATURES=mingw clang pyyaml asan dtc PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin MAKEFLAGS= -j8
EXTRA_CONFIGURE_OPTS=
_=/usr/bin/env
Configure options:
--enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/tmp/qemu-test/install --python=/usr/bin/python3 --cross-prefix=x86_64-w64-mingw32- --enable-trace-backends=simple --enable-gnutls --enable-nettle --enable-curl --enable-vnc --enable-bzip2 --enable-guest-agent --with-sdlabi=2.0 --with-gtkabi=3.0
ERROR: unknown option --with-gtkabi=3.0
Try '/tmp/qemu-test/src/configure --help' for more information
# QEMU configure log Tue Nov 6 09:50:16 UTC 2018
# Configured with: '/tmp/qemu-test/src/configure' '--enable-werror' '--target-list=x86_64-softmmu,aarch64-softmmu' '--prefix=/tmp/qemu-test/install' '--python=/usr/bin/python3' '--cross-prefix=x86_64-w64-mingw32-' '--enable-trace-backends=simple' '--enable-gnutls' '--enable-nettle' '--enable-curl' '--enable-vnc' '--enable-bzip2' '--enable-guest-agent' '--with-sdlabi=2.0' '--with-gtkabi=3.0' #
funcs: do_compiler do_cc compile_object check_define main
lines: 92 119 608 625 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c config-temp/qemu-conf.c:2:2: error: #error __linux__ not defined
#error __linux__ not defined
^~~~~
funcs: do_compiler do_cc compile_object check_define main
lines: 92 119 608 627 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c
funcs: do_compiler do_cc compile_object check_define main
lines: 92 119 608 677 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c config-temp/qemu-conf.c:2:2: error: #error __i386__ not defined
#error __i386__ not defined
^~~~~
funcs: do_compiler do_cc compile_object check_define main
lines: 92 119 608 679 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c
funcs: do_compiler do_cc compile_object check_define main
lines: 92 119 608 680 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c config-temp/qemu-conf.c:2:2: error: #error __ILP32__ not defined
#error __ILP32__ not defined
^~~~~
funcs: do_compiler do_cc compile_object check_include main
lines: 92 119 616 771 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c
funcs: do_compiler do_cc compile_prog main
lines: 92 125 907 0
x86_64-w64-mingw32-gcc -mthreads -D__USE_MINGW_ANSI_STDIO=1 -DWIN32_LEAN_AND_MEAN -DWINVER=0x501 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -g -liberty /usr/lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
Failed to run 'configure'
Traceback (most recent call last):
File "./tests/docker/docker.py", line 563, in <module>
sys.exit(main())
File "./tests/docker/docker.py", line 560, in main
return args.cmdobj.run(args, argv)
File "./tests/docker/docker.py", line 306, in run
return Docker().run(argv, args.keep, quiet=args.quiet)
File "./tests/docker/docker.py", line 274, in run
quiet=quiet)
File "./tests/docker/docker.py", line 181, in _do_check
return subprocess.check_call(self._command + cmd, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=5bcf7f1ce1a911e88b3152540069c830', '-u', '1000', '--security-opt', 'seccomp=unconfined', '--rm', '--net=none', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=8', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-j_cwgv70/src/docker-src.2018-11-06-04.49.59.28947:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-mingw']' returned non-zero exit status 1 make[1]: *** [tests/docker/Makefile.include:217: docker-run] Error 1
make[1]: Leaving directory '/var/tmp/patchew-tester-tmp-j_cwgv70/src'
make: *** [tests/docker/Makefile.include:251: docker-run-test-mingw@fedora] Error 2
real 0m37.093s
user 0m5.048s
sys 0m3.799s
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Quoted 1 line · On Tue, 11/06 01:50, [email protected] wrote:
ERROR: unknown option --with-gtkabi=3.0
Patchew is testing old series branches of which are heavily lagging behind. This configure option in the mingw docker testing is recently dropped, so it's a false positive.
Fam
Quoted 73 lines
Try '
/tmp/qemu-test/src/configure--help' for more information
# QEMU configure log Tue Nov 6 09:50:16 UTC 2018
# Configured with: '/tmp/qemu-test/src/configure' '--enable-werror' '--target-list=x86_64-softmmu,aarch64-softmmu' '--prefix=/tmp/qemu-test/install' '--python=/usr/bin/python3' '--cross-prefix=x86_64-w64-mingw32-' '--enable-trace-backends=simple' '--enable-gnutls' '--enable-nettle' '--enable-curl' '--enable-vnc' '--enable-bzip2' '--enable-guest-agent' '--with-sdlabi=2.0' '--with-gtkabi=3.0' #funcs:
do_compilerdo_cccompile_objectcheck_definemain
lines: 92 119 608 625 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -oconfig-temp/qemu-conf.oconfig-temp/qemu-conf.cconfig-temp/qemu-conf.c:2:2: error: #error__linux__not defined
#error__linux__not defined
^~~~~funcs:
do_compilerdo_cccompile_objectcheck_definemain
lines: 92 119 608 627 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -oconfig-temp/qemu-conf.oconfig-temp/qemu-conf.cfuncs:
do_compilerdo_cccompile_objectcheck_definemain
lines: 92 119 608 677 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -oconfig-temp/qemu-conf.oconfig-temp/qemu-conf.cconfig-temp/qemu-conf.c:2:2: error: #error__i386__not defined
#error__i386__not defined
^~~~~funcs:
do_compilerdo_cccompile_objectcheck_definemain
lines: 92 119 608 679 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -oconfig-temp/qemu-conf.oconfig-temp/qemu-conf.cfuncs:
do_compilerdo_cccompile_objectcheck_definemain
lines: 92 119 608 680 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -oconfig-temp/qemu-conf.oconfig-temp/qemu-conf.cconfig-temp/qemu-conf.c:2:2: error: #error__ILP32__not defined
#error__ILP32__not defined
^~~~~funcs:
do_compilerdo_cccompile_objectcheck_includemain
lines: 92 119 616 771 0
x86_64-w64-mingw32-gcc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -c -oconfig-temp/qemu-conf.oconfig-temp/qemu-conf.cfuncs:
do_compilerdo_cccompile_progmain
lines: 92 125 907 0
x86_64-w64-mingw32-gcc -mthreads -D__USE_MINGW_ANSI_STDIO=1 -DWIN32_LEAN_AND_MEAN -DWINVER=0x501 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -o config-temp/qemu-conf.execonfig-temp/qemu-conf.c-g -liberty/usr/lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -liberty
collect2: error: ld returned 1 exit status
Failed to run 'configure'
Traceback (most recent call last):
File "./tests/docker/docker.py", line 563, in <module>sys.exit(main())File "
./tests/docker/docker.py", line 560, in main
returnargs.cmdobj.run(args, argv)
File "./tests/docker/docker.py", line 306, in run
return Docker().run(argv, args.keep, quiet=args.quiet)
File "./tests/docker/docker.py", line 274, in run
quiet=quiet)
File "./tests/docker/docker.py", line 181, in_do_check
returnsubprocess.check_call(self._command + cmd, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 186, incheck_call
raiseCalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=5bcf7f1ce1a911e88b3152540069c830', '-u', '1000', '--security-opt', 'seccomp=unconfined', '--rm', '--net=none', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=8', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-j_cwgv70/src/docker-src.2018-11-06-04.49.59.28947:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-mingw']' returned non-zero exit status 1 make[1]: *** [tests/docker/Makefile.include:217: docker-run] Error 1
make[1]: Leaving directory '/var/tmp/patchew-tester-tmp-j_cwgv70/src'
make: *** [tests/docker/Makefile.include:251: docker-run-test-mingw@fedora] Error 2real 0m37.093s
user 0m5.048s
sys 0m3.799s
=== OUTPUT END ===Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]