Move notdirty handling to cputlb
v2 cover Move notdirty handling to cputlb
RFC because it *still* doesn't work, just like v1.
However this time the changes are extremely minimal, and now I really *really* don't understand why they don't work, because as far as I can tell the new locking is *identical* with the current i/o path.
In particular, the actual access happens between _prepare and _complete, just like before. Indeed, since this doesn't work as-is, then I can't believe the atomic path works either.
I have included the TLB_BSWAP stuff just so that the patch set is self-contained.
I did experiment with qemu_ram_addr_from_host_nofail(), but an assertion for equality with addr + iotlbentry->addr does not trigger. As expected, really, since that's what the i/o path uses. One more cleanup for the atomics path...
Ideas?
r~
Richard Henderson (5):
cputlb: Disable __always_inline__ without optimization
cputlb: Replace switches in load/store_helper with callback
cputlb: Introduce TLB_BSWAP
exec: Adjust notdirty tracing
cputlb: Move NOTDIRTY handling from I/O path to TLB path
include/exec/cpu-all.h | 2 + include/exec/cpu-common.h | 1 - include/qemu/compiler.h | 11 ++ accel/tcg/cputlb.c | 243 +++++++++++++++++++++----------------- exec.c | 57 +-------- memory.c | 20 ---- trace-events | 4 +- 7 files changed, 157 insertions(+), 181 deletions(-)
Signature · 1 line
2.17.1
RFC v2 1/5 cputlb: Disable __always_inline__ without optimization
This forced inlining can result in missing symbols, which makes a debugging build harder to follow.
--- include/qemu/compiler.h | 11 +++++++++++ accel/tcg/cputlb.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-)
include/qemu/compiler.h +11 -0
@@ -170,6 +170,17 @@# define QEMU_NONSTRING #endif +/* +* Forced inlining may be desired to encourage constant propagation +* of function parameters. However, it can also make debugging harder, +* so disable it for a non-optimizing build. +*/ +#if defined(__OPTIMIZE__) &&__has_attribute (always_inline) +#define QEMU_ALWAYS_INLINE __attribute__((always_inline)) +#else +#define QEMU_ALWAYS_INLINE +#endif +/* Implement C11 _Generic via GCC builtins. Example: * * QEMU_GENERIC(x, (float, sinf), (long double, sinl), sin) (x)
accel/tcg/cputlb.c +2 -2
@@ -1281,7 +1281,7 @@ static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr,typedef uint64_t FullLoadHelper (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr); -static inline uint64_t __attribute__((always_inline)) +static inline uint64_t QEMU_ALWAYS_INLINEload_helper (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr,MemOp op,bool code_read,FullLoadHelper *full_load)
@@ -1530,7 +1530,7 @@ tcg_target_ulong helper_be_ldsl_mmu(CPUArchState *env, target_ulong addr,* Store Helpers */ -static inline void __attribute__((always_inline)) +static inline void QEMU_ALWAYS_INLINEstore_helper (CPUArchState *env,target_ulong addr,uint64_t val,TCGMemOpIdx oi,uintptr_t retaddr,MemOp op) {
Signature · 1 line
2.17.1
Re: [RFC v2 1/5] cputlb: Disable __always_inline__ without optimization
Quoted 47 lines · Richard Henderson
This forced inlining can result in missing symbols, which makes a debugging build harder to follow.
Reported-by Peter Maydell <[email protected]>Signed-off-by Richard Henderson <[email protected]>--- include/qemu/compiler.h | 11 +++++++++++ accel/tcg/cputlb.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-)include/qemu/compiler.h +11
-0@@ -170,6 +170,17 @@# define QEMU_NONSTRING #endif +/* +* Forced inlining may be desired to encourage constant propagation +* of function parameters. However, it can also make debugging harder, +* so disable it for a non-optimizing build. +*/ +#if defined(__OPTIMIZE__) &&__has_attribute (always_inline) +#define QEMU_ALWAYS_INLINE __attribute__((always_inline)) +#else +#define QEMU_ALWAYS_INLINE +#endif +/* Implement C11 _Generic via GCC builtins. Example: * * QEMU_GENERIC(x, (float, sinf), (long double, sinl), sin) (x) accel/tcg/cputlb.c +1
-1@@ -1281,7 +1281,7 @@ static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr,typedef uint64_t FullLoadHelper (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr); -static inline uint64_t __attribute__((always_inline)) +static inline uint64_t QEMU_ALWAYS_INLINEload_helper (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr,MemOp op,bool code_read,FullLoadHelper *full_load)
accel/tcg/cputlb.c tcg_target_ulong helper_be_ldsl_mmu(CPUArchState *env, target_ulong addr, · line 1536
Quoted 8 lines
accel/tcg/cputlb.c +1
-1@@ -1530,7 +1530,7 @@ tcg_target_ulong helper_be_ldsl_mmu(CPUArchState *env, target_ulong addr,* Store Helpers */ -static inline void __attribute__((always_inline)) +static inline void QEMU_ALWAYS_INLINEstore_helper (CPUArchState *env,target_ulong addr,uint64_t val,TCGMemOpIdx oi,uintptr_t retaddr,MemOp op) {
Signature · 3 lines
Thanks, David / dhildenb
RFC v2 2/5 cputlb: Replace switches in load/store_helper with callback
In reply to Richard HendersonAdd a function parameter to perform the actual load/store to ram. With optimization, this results in identical code.
--- accel/tcg/cputlb.c | 159 +++++++++++++++++++++++---------------------- 1 file changed, 83 insertions(+), 76 deletions(-)
accel/tcg/cputlb.c +83 -76
@@ -1280,11 +1280,38 @@ static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr,typedef uint64_t FullLoadHelper (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr); +typedef uint64_t LoadHelper (const void *); + +/* Wrap the unaligned load helpers to that they have a common signature. */ +static inline uint64_t wrap_ldub (const void *haddr) +{ +return ldub_p (haddr); +} + +static inline uint64_t wrap_lduw_be (const void *haddr) +{ +return lduw_be_p (haddr); +} + +static inline uint64_t wrap_lduw_le (const void *haddr) +{ +return lduw_le_p (haddr); +} + +static inline uint64_t wrap_ldul_be (const void *haddr) +{ +return (uint32_t )ldl_be_p (haddr); +} + +static inline uint64_t wrap_ldul_le (const void *haddr) +{ +return (uint32_t )ldl_le_p (haddr); +} static inline uint64_t QEMU_ALWAYS_INLINEload_helper (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr,MemOp op,bool code_read, -FullLoadHelper *full_load) +FullLoadHelper *full_load,LoadHelper *direct) {uintptr_t mmu_idx =get_mmuidx (oi);uintptr_t index =tlb_index (env, mmu_idx, addr);
@@ -1373,33 +1400,7 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, do_aligned_access: haddr = (void *)((uintptr_t )addr + entry->addend); -switch (op) { -case MO_UB : - res =ldub_p (haddr); -break ; -case MO_BEUW : - res =lduw_be_p (haddr); -break ; -case MO_LEUW : - res =lduw_le_p (haddr); -break ; -case MO_BEUL : - res = (uint32_t )ldl_be_p (haddr); -break ; -case MO_LEUL : - res = (uint32_t )ldl_le_p (haddr); -break ; -case MO_BEQ : - res =ldq_be_p (haddr); -break ; -case MO_LEQ : - res =ldq_le_p (haddr); -break ; -default : -g_assert_not_reached (); - } - -return res; +return direct (haddr); }/*
@@ -1415,7 +1416,8 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi,static uint64_t full_ldub_mmu (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr) { -return load_helper (env, addr, oi, retaddr,MO_UB , false, full_ldub_mmu); +return load_helper (env, addr, oi, retaddr,MO_UB , false, + full_ldub_mmu, wrap_ldub); } tcg_target_ulong helper_ret_ldub_mmu(CPUArchState *env, target_ulong addr,
@@ -1428,7 +1430,7 @@ static uint64_t full_le_lduw_mmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_LEUW , false, - full_le_lduw_mmu); + full_le_lduw_mmu, wrap_lduw_le); } tcg_target_ulong helper_le_lduw_mmu(CPUArchState *env, target_ulong addr,
@@ -1441,7 +1443,7 @@ static uint64_t full_be_lduw_mmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_BEUW , false, - full_be_lduw_mmu); + full_be_lduw_mmu, wrap_lduw_be); } tcg_target_ulong helper_be_lduw_mmu(CPUArchState *env, target_ulong addr,
@@ -1454,7 +1456,7 @@ static uint64_t full_le_ldul_mmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_LEUL , false, - full_le_ldul_mmu); + full_le_ldul_mmu, wrap_ldul_le); } tcg_target_ulong helper_le_ldul_mmu(CPUArchState *env, target_ulong addr,
@@ -1467,7 +1469,7 @@ static uint64_t full_be_ldul_mmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_BEUL , false, - full_be_ldul_mmu); + full_be_ldul_mmu, wrap_ldul_be); } tcg_target_ulong helper_be_ldul_mmu(CPUArchState *env, target_ulong addr,
@@ -1480,14 +1482,14 @@ uint64_t helper_le_ldq_mmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_LEQ , false, - helper_le_ldq_mmu); + helper_le_ldq_mmu, ldq_le_p); }uint64_t helper_be_ldq_mmu (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_BEQ , false, - helper_be_ldq_mmu); + helper_be_ldq_mmu, ldq_be_p); }/*
@@ -1530,9 +1532,38 @@ tcg_target_ulong helper_be_ldsl_mmu(CPUArchState *env, target_ulong addr,* Store Helpers */ +typedef void StoreHelper (void *,uint64_t ); + +/* Wrap the unaligned store helpers to that they have a common signature. */ +static inline void wrap_stb (void *haddr,uint64_t val) +{ +stb_p (haddr, val); +} + +static inline void wrap_stw_be (void *haddr,uint64_t val) +{ +stw_be_p (haddr, val); +} + +static inline void wrap_stw_le (void *haddr,uint64_t val) +{ +stw_le_p (haddr, val); +} + +static inline void wrap_stl_be (void *haddr,uint64_t val) +{ +stl_be_p (haddr, val); +} + +static inline void wrap_stl_le (void *haddr,uint64_t val) +{ +stl_le_p (haddr, val); +} + static inline void QEMU_ALWAYS_INLINEstore_helper (CPUArchState *env,target_ulong addr,uint64_t val, -TCGMemOpIdx oi,uintptr_t retaddr,MemOp op) +TCGMemOpIdx oi,uintptr_t retaddr,MemOp op, +StoreHelper *direct) {uintptr_t mmu_idx =get_mmuidx (oi);uintptr_t index =tlb_index (env, mmu_idx, addr);
@@ -1657,74 +1688,49 @@ store_helper(CPUArchState *env, target_ulong addr, uint64_t val, do_aligned_access: haddr = (void *)((uintptr_t )addr + entry->addend); -switch (op) { -case MO_UB : -stb_p (haddr, val); -break ; -case MO_BEUW : -stw_be_p (haddr, val); -break ; -case MO_LEUW : -stw_le_p (haddr, val); -break ; -case MO_BEUL : -stl_be_p (haddr, val); -break ; -case MO_LEUL : -stl_le_p (haddr, val); -break ; -case MO_BEQ : -stq_be_p (haddr, val); -break ; -case MO_LEQ : -stq_le_p (haddr, val); -break ; -default : -g_assert_not_reached (); -break ; - } +direct (haddr, val); }void helper_ret_stb_mmu (CPUArchState *env,target_ulong addr,uint8_t val,TCGMemOpIdx oi,uintptr_t retaddr) { -store_helper (env, addr, val, oi, retaddr,MO_UB ); +store_helper (env, addr, val, oi, retaddr,MO_UB , wrap_stb); }void helper_le_stw_mmu (CPUArchState *env,target_ulong addr,uint16_t val,TCGMemOpIdx oi,uintptr_t retaddr) { -store_helper (env, addr, val, oi, retaddr,MO_LEUW ); +store_helper (env, addr, val, oi, retaddr,MO_LEUW , wrap_stw_le); }void helper_be_stw_mmu (CPUArchState *env,target_ulong addr,uint16_t val,TCGMemOpIdx oi,uintptr_t retaddr) { -store_helper (env, addr, val, oi, retaddr,MO_BEUW ); +store_helper (env, addr, val, oi, retaddr,MO_BEUW , wrap_stw_be); }void helper_le_stl_mmu (CPUArchState *env,target_ulong addr,uint32_t val,TCGMemOpIdx oi,uintptr_t retaddr) { -store_helper (env, addr, val, oi, retaddr,MO_LEUL ); +store_helper (env, addr, val, oi, retaddr,MO_LEUL , wrap_stl_le); }void helper_be_stl_mmu (CPUArchState *env,target_ulong addr,uint32_t val,TCGMemOpIdx oi,uintptr_t retaddr) { -store_helper (env, addr, val, oi, retaddr,MO_BEUL ); +store_helper (env, addr, val, oi, retaddr,MO_BEUL , wrap_stl_be); }void helper_le_stq_mmu (CPUArchState *env,target_ulong addr,uint64_t val,TCGMemOpIdx oi,uintptr_t retaddr) { -store_helper (env, addr, val, oi, retaddr,MO_LEQ ); +store_helper (env, addr, val, oi, retaddr,MO_LEQ , stq_le_p); }void helper_be_stq_mmu (CPUArchState *env,target_ulong addr,uint64_t val,TCGMemOpIdx oi,uintptr_t retaddr) { -store_helper (env, addr, val, oi, retaddr,MO_BEQ ); +store_helper (env, addr, val, oi, retaddr,MO_BEQ , stq_be_p); }/* First set of helpers allows passing in of OI and RETADDR. This makes
@@ -1789,7 +1795,8 @@ void helper_be_stq_mmu(CPUArchState *env, target_ulong addr, uint64_t val,static uint64_t full_ldub_cmmu (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr) { -return load_helper (env, addr, oi, retaddr,MO_8 , true, full_ldub_cmmu); +return load_helper (env, addr, oi, retaddr,MO_8 , true, + full_ldub_cmmu, wrap_ldub); } uint8_t helper_ret_ldb_cmmu(CPUArchState *env, target_ulong addr,
@@ -1802,7 +1809,7 @@ static uint64_t full_le_lduw_cmmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_LEUW , true, - full_le_lduw_cmmu); + full_le_lduw_cmmu, wrap_lduw_le); } uint16_t helper_le_ldw_cmmu(CPUArchState *env, target_ulong addr,
@@ -1815,7 +1822,7 @@ static uint64_t full_be_lduw_cmmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_BEUW , true, - full_be_lduw_cmmu); + full_be_lduw_cmmu, wrap_lduw_be); } uint16_t helper_be_ldw_cmmu(CPUArchState *env, target_ulong addr,
@@ -1828,7 +1835,7 @@ static uint64_t full_le_ldul_cmmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_LEUL , true, - full_le_ldul_cmmu); + full_le_ldul_cmmu, wrap_ldul_le); } uint32_t helper_le_ldl_cmmu(CPUArchState *env, target_ulong addr,
@@ -1841,7 +1848,7 @@ static uint64_t full_be_ldul_cmmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_BEUL , true, - full_be_ldul_cmmu); + full_be_ldul_cmmu, wrap_ldul_be); } uint32_t helper_be_ldl_cmmu(CPUArchState *env, target_ulong addr,
@@ -1854,12 +1861,12 @@ uint64_t helper_le_ldq_cmmu(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_LEQ , true, - helper_le_ldq_cmmu); + helper_le_ldq_cmmu, ldq_le_p); }uint64_t helper_be_ldq_cmmu (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr) {return load_helper (env, addr, oi, retaddr,MO_BEQ , true, - helper_be_ldq_cmmu); + helper_be_ldq_cmmu, ldq_be_p); }
Signature · 1 line
2.17.1
Re: [RFC v2 2/5] cputlb: Replace switches in load/store_helper with callback
Quoted 7 lines · Richard Henderson
Add a function parameter to perform the actual load/store to ram. With optimization, this results in identical code.
Signed-off-by Richard Henderson <[email protected]>--- accel/tcg/cputlb.c | 159 +++++++++++++++++++++++---------------------- 1 file changed, 83 insertions(+), 76 deletions(-)
I would have guessed the compiler propagates the constant and eliminates the switch completely for the variants. After all, we now have more LOC ...
I would have moved the actual read/write to a separate function containing the switch statement instead.
But I am pretty sure you know what you're doing here :)
Quoted 6 lines
accel/tcg/cputlb.c +0
-0
accel/tcg/cputlb.c static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr, · line 1288
Quoted 9 lines
accel/tcg/cputlb.c +6
-0@@ -1280,11 +1280,38 @@ static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr,typedef uint64_t FullLoadHelper (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr); +typedef uint64_t LoadHelper (const void *); + +/* Wrap the unaligned load helpers to that they have a common signature. */ +static inline uint64_t wrap_ldub (const void *haddr) +{ +return ldub_p (haddr);
I wonder if you should just add proper type cast to all of the < uint64_t accessors (e.g., here (uint8_t) ). Shouldn't hurt and makes people wonder less how the conversion from the int these accessors return to uint64_t will turn out.
But yeah, you're simply moving code here.
Quoted 11 lines
accel/tcg/cputlb.c +11
-0+} + +static inline uint64_t wrap_lduw_be (const void *haddr) +{ +return lduw_be_p (haddr); +} + +static inline uint64_t wrap_lduw_le (const void *haddr) +{ +return lduw_le_p (haddr); +}
accel/tcg/cputlb.c static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr, · line 1309
Quoted 10 lines
accel/tcg/cputlb.c +10
-0+ +static inline uint64_t wrap_ldul_be (const void *haddr) +{ +return (uint32_t )ldl_be_p (haddr); +} + +static inline uint64_t wrap_ldul_le (const void *haddr) +{ +return (uint32_t )ldl_le_p (haddr); +}
Looks sane to me!
Signature · 3 lines
Thanks, David / dhildenb
Re: [RFC v2 2/5] cputlb: Replace switches in load/store_helper with callback
Quoted 9 lines · David Hildenbrand
Quoted 7 lines · Richard Henderson
Add a function parameter to perform the actual load/store to ram. With optimization, this results in identical code.
Signed-off-by Richard Henderson <[email protected]>--- accel/tcg/cputlb.c | 159 +++++++++++++++++++++++---------------------- 1 file changed, 83 insertions(+), 76 deletions(-)
Quoted 5 lines
I would have guessed the compiler propagates the constant and eliminates the switch completely for the variants. After all, we now have more LOC ...
I would have moved the actual read/write to a separate function containing the switch statement instead.
I tried that.
The compiler does fold away the constant and eliminate the switch for the code as-is. But it somehow fails to do so for op ^ MO_BSWAP, where op is constant.
I don't know why.
These little inline functions were the third try and the only one for which all of the indirection folded away. Not so much here, but in the next patch which passes in the reverse-endian function as well.
Quoted 11 lines
accel/tcg/cputlb.c static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr, · line 1288
Quoted 4 lines
accel/tcg/cputlb.c +4
-0+/* Wrap the unaligned load helpers to that they have a common signature. */ +static inline uint64_t wrap_ldub (const void *haddr) +{ +return ldub_p (haddr);I wonder if you should just add proper type cast to all of the <
uint64_taccessors (e.g., here (uint8_t) ). Shouldn't hurt and makes people wonder less how the conversion from the int these accessors return touint64_twill turn out.But yeah, you're simply moving code here.
Perhaps. I'm not really a fan of redundant casts.
r~
RFC v2 3/5 cputlb: Introduce TLB_BSWAP
In reply to Richard HendersonHandle bswap on ram directly in load/store_helper. This fixes a bug with the previous implementation in that one cannot use the I/O path for RAM.
--- include/exec/cpu-all.h | 2 + accel/tcg/cputlb.c | 105 +++++++++++++++++++++-------------------- 2 files changed, 57 insertions(+), 50 deletions(-)
include/exec/cpu-all.h +2 -0
@@ -331,6 +331,8 @@ CPUArchState *cpu_copy(CPUArchState *env);#define TLB_MMIO (1 << (TARGET_PAGE_BITS - 3))/* Set if TLB entry contains a watchpoint. */ #define TLB_WATCHPOINT (1 << (TARGET_PAGE_BITS - 4)) +/* Set if TLB entry requires byte swap. */ +#define TLB_BSWAP (1 << (TARGET_PAGE_BITS - 5))/* Use this mask to check interception with an alignment mask * in a TCG backend.
accel/tcg/cputlb.c +55 -50
283 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [RFC v2 3/5] cputlb: Introduce TLB_BSWAP
Quoted 16 lines · Richard Henderson
Handle bswap on ram directly in load/store_helper. This fixes a bug with the previous implementation in that one cannot use the I/O path for RAM.
Fixes a26fc6f5152b47f1Signed-off-by Richard Henderson <[email protected]>--- include/exec/cpu-all.h | 2 + accel/tcg/cputlb.c | 105 +++++++++++++++++++++-------------------- 2 files changed, 57 insertions(+), 50 deletions(-)include/exec/cpu-all.h +0
-0
include/exec/cpu-all.h CPUArchState *cpu_copy(CPUArchState *env); · line 335
Quoted 5 lines
include/exec/cpu-all.h +2
-0@@ -331,6 +331,8 @@ CPUArchState *cpu_copy(CPUArchState *env);#define TLB_MMIO (1 << (TARGET_PAGE_BITS - 3))/* Set if TLB entry contains a watchpoint. */ #define TLB_WATCHPOINT (1 << (TARGET_PAGE_BITS - 4)) +/* Set if TLB entry requires byte swap. */ +#define TLB_BSWAP (1 << (TARGET_PAGE_BITS - 5))
Shouldn't you also take care of TLB_BSWAP in probe_access?
Quoted 67 lines
include/exec/cpu-all.h +0
-0/* Use this mask to check interception with an alignment mask * in a TCG backend. accel/tcg/cputlb.c +6
-19@@ -737,8 +737,7 @@ void tlb_set_page_with_attrs(CPUState *cpu, target_ulong vaddr, address |=TLB_INVALID_MASK ; }if (attrs.byte_swap) { -/* Force the access through the I/O slow path. */ - address |=TLB_MMIO ; + address |=TLB_BSWAP ; }if (!memory_region_is_ram (section->mr) && !memory_region_is_romd (section->mr)) {@@ -901,10 +900,6 @@ static uint64_t io_readx(CPUArchState *env, CPUIOTLBEntry *iotlbentry,bool locked = false;MemTxResult r; -if (iotlbentry->attrs.byte_swap) { - op ^=MO_BSWAP ; - } - section =iotlb_to_section (cpu, iotlbentry->addr, iotlbentry->attrs); mr = section->mr; mr_offset = (iotlbentry->addr &TARGET_PAGE_MASK ) + addr;@@ -947,10 +942,6 @@ static void io_writex(CPUArchState *env, CPUIOTLBEntry *iotlbentry,bool locked = false;MemTxResult r; -if (iotlbentry->attrs.byte_swap) { - op ^=MO_BSWAP ; - } - section =iotlb_to_section (cpu, iotlbentry->addr, iotlbentry->attrs); mr = section->mr; mr_offset = (iotlbentry->addr &TARGET_PAGE_MASK ) + addr;@@ -1311,7 +1302,8 @@ static inline uint64_t wrap_ldul_le(const void *haddr) static inline uint64_t QEMU_ALWAYS_INLINEload_helper (CPUArchState *env,target_ulong addr,TCGMemOpIdx oi,uintptr_t retaddr,MemOp op,bool code_read, -FullLoadHelper *full_load,LoadHelper *direct) +FullLoadHelper *full_load,LoadHelper *direct, +LoadHelper *direct_swap) {uintptr_t mmu_idx =get_mmuidx (oi);uintptr_t index =tlb_index (env, mmu_idx, addr);@@ -1361,17 +1353,22 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi,/* On watchpoint hit, this will longjmp out. */ cpu_check_watchpoint (env_cpu (env), addr, size, iotlbentry->attrs,BP_MEM_READ , retaddr); - -/* The backing page may or may not require I/O. */ - tlb_addr &= ~TLB_WATCHPOINT ; -if ((tlb_addr & ~TARGET_PAGE_MASK ) ==0 ) { - goto do_aligned_access; - } }/* Handle I/O access. */ -return io_readx (env, iotlbentry, mmu_idx, addr, - retaddr, access_type, op); +if (likely (tlb_addr &TLB_MMIO )) { + return io_readx(env, iotlbentry, mmu_idx, addr, + retaddr, access_type,
accel/tcg/cputlb.c load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, · line 1371
Quoted 10 lines
accel/tcg/cputlb.c +10
-0+ op ^ (tlb_addr & TLB_BSWAP ? MO_BSWAP : 0)); + } + + haddr = (void *)((uintptr_t )addr + entry->addend); + +if (unlikely (tlb_addr &TLB_BSWAP )) { +return direct_swap (haddr); + }else { +return direct (haddr); + }
You can drop the else statement and just return.
[...]
I assume this patch does not yet result in the issues you are experiencing, right?
Looks in general sane to me ...
Signature · 3 lines
Thanks, David / dhildenb
Re: [RFC v2 3/5] cputlb: Introduce TLB_BSWAP
Quoted 12 lines · David Hildenbrand
Quoted 11 lines · Richard Henderson
Handle bswap on ram directly in load/store_helper. This fixes a bug with the previous implementation in that one cannot use the I/O path for RAM.
Fixes a26fc6f5152b47f1Signed-off-by Richard Henderson <[email protected]>--- include/exec/cpu-all.h | 2 + accel/tcg/cputlb.c | 105 +++++++++++++++++++++-------------------- 2 files changed, 57 insertions(+), 50 deletions(-)
Quoted 12 lines
include/exec/cpu-all.h CPUArchState *cpu_copy(CPUArchState *env); · line 335
Quoted 10 lines
include/exec/cpu-all.h +2
-0@@ -331,6 +331,8 @@ CPUArchState *cpu_copy(CPUArchState *env);#define TLB_MMIO (1 << (TARGET_PAGE_BITS - 3))/* Set if TLB entry contains a watchpoint. */ #define TLB_WATCHPOINT (1 << (TARGET_PAGE_BITS - 4)) +/* Set if TLB entry requires byte swap. */ +#define TLB_BSWAP (1 << (TARGET_PAGE_BITS - 5))Shouldn't you also take care of
TLB_BSWAPinprobe_access?
Yes, I should. I guess like TLB_MMIO and return NULL. Thanks.
Quoted 7 lines
include/exec/cpu-all.h CPUArchState *cpu_copy(CPUArchState *env);
Quoted 5 lines
include/exec/cpu-all.h +5
-0+if (unlikely (tlb_addr &TLB_BSWAP )) { +return direct_swap (haddr); + }else { +return direct (haddr); + }You can drop the else statement and just return.
Sure.
Quoted 2 lines
I assume this patch does not yet result in the issues you are experiencing, right?
Correct. It is only the last patch here that has problems.
r~
RFC v2 4/5 exec: Adjust notdirty tracing
In reply to Richard HendersonThe memory_region_tb_read tracepoint is unreachable, since notdirty is supposed to apply only to writes. The memory_region_tb_write tracepoint is mis-named, because notdirty is not only used for TB invalidation. It is also used for e.g. VGA RAM updates and migration.
Replace memory_region_tb_write with memory_notdirty_write_access, and place it in memory_notdirty_write_prepare where it can catch all of the instances. Add memory_notdirty_set_dirty to log when we no longer intercept writes to a page.
---
v2: Rename new tracepoints as suggested (David)
--- exec.c | 3 +++ memory.c | 4 ---- trace-events | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-)
exec.c +3 -0
@@ -2755,6 +2755,8 @@ void memory_notdirty_write_prepare(NotDirtyInfo *ndi, ndi->size = size; ndi->pages =NULL ; +trace_memory_notdirty_write_access (mem_vaddr, ram_addr, size); +assert (tcg_enabled ());if (!cpu_physical_memory_get_dirty_flag (ram_addr,DIRTY_MEMORY_CODE )) { ndi->pages =page_collection_lock (ram_addr, ram_addr + size);
@@ -2779,6 +2781,7 @@ void memory_notdirty_write_complete(NotDirtyInfo *ndi)/* we remove the notdirty callback only if the code has been flushed */ if (!cpu_physical_memory_is_clean (ndi->ram_addr)) { +trace_memory_notdirty_set_dirty (ndi->mem_vaddr);tlb_set_dirty (ndi->cpu, ndi->mem_vaddr); } }
memory.c +0 -4
@@ -438,7 +438,6 @@ static MemTxResult memory_region_read_accessor(MemoryRegion *mr,/* Accesses to code which has previously been translated into a TB show * up in the MMIO path, as accesses to the io_mem_notdirty * MemoryRegion. */ -trace_memory_region_tb_read (get_cpu_index (), addr, tmp, size); }else if (TRACE_MEMORY_REGION_OPS_READ_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_read (get_cpu_index (), mr, abs_addr, tmp, size);
@@ -465,7 +464,6 @@ static MemTxResult memory_region_read_with_attrs_accessor(MemoryRegion *mr,/* Accesses to code which has previously been translated into a TB show * up in the MMIO path, as accesses to the io_mem_notdirty * MemoryRegion. */ -trace_memory_region_tb_read (get_cpu_index (), addr, tmp, size); }else if (TRACE_MEMORY_REGION_OPS_READ_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_read (get_cpu_index (), mr, abs_addr, tmp, size);
@@ -490,7 +488,6 @@ static MemTxResult memory_region_write_accessor(MemoryRegion *mr,/* Accesses to code which has previously been translated into a TB show * up in the MMIO path, as accesses to the io_mem_notdirty * MemoryRegion. */ -trace_memory_region_tb_write (get_cpu_index (), addr, tmp, size); }else if (TRACE_MEMORY_REGION_OPS_WRITE_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_write (get_cpu_index (), mr, abs_addr, tmp, size);
@@ -515,7 +512,6 @@ static MemTxResult memory_region_write_with_attrs_accessor(MemoryRegion *mr,/* Accesses to code which has previously been translated into a TB show * up in the MMIO path, as accesses to the io_mem_notdirty * MemoryRegion. */ -trace_memory_region_tb_write (get_cpu_index (), addr, tmp, size); }else if (TRACE_MEMORY_REGION_OPS_WRITE_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_write (get_cpu_index (), mr, abs_addr, tmp, size);
trace-events +2 -2
@@ -52,14 +52,14 @@ dma_map_wait(void *dbs) "dbs=%p" find_ram_offset(uint64_t size, uint64_t offset) "size: 0x%" PRIx64 " @ 0x%" PRIx64 find_ram_offset_loop(uint64_t size, uint64_t candidate, uint64_t offset, uint64_t next, uint64_t mingap) "trying size: 0x%" PRIx64 " @ 0x%" PRIx64 ", offset: 0x%" PRIx64" next: 0x%" PRIx64 " mingap: 0x%" PRIx64 ram_block_discard_range(const char *rbname, void *hva, size_t length, bool need_madvise, bool need_fallocate, int ret) "%s@%p + 0x%zx: madvise: %d fallocate: %d ret: %d" +memory_notdirty_write_access(uint64_t vaddr, uint64_t ram_addr, unsigned size) "0x%" PRIx64 " ram_addr 0x%" PRIx64 " size %u" +memory_notdirty_set_dirty(uint64_t vaddr) "0x%" PRIx64 # memory.c memory_region_ops_read(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_ops_write(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_subpage_read(int cpu_index, void *mr, uint64_t offset, uint64_t value, unsigned size) "cpu %d mr %p offset 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_subpage_write(int cpu_index, void *mr, uint64_t offset, uint64_t value, unsigned size) "cpu %d mr %p offset 0x%"PRIx64" value 0x%"PRIx64" size %u" -memory_region_tb_read(int cpu_index, uint64_t addr, uint64_t value, unsigned size) "cpu %d addr 0x%"PRIx64" value 0x%"PRIx64" size %u" -memory_region_tb_write(int cpu_index, uint64_t addr, uint64_t value, unsigned size) "cpu %d addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_ram_device_read(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_ram_device_write(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" flatview_new(void *view, void *root) "%p (root %p)"
Signature · 1 line
2.17.1
Re: [RFC v2 4/5] exec: Adjust notdirty tracing
Quoted 88 lines · Richard Henderson
The
memory_region_tb_readtracepoint is unreachable, since notdirty is supposed to apply only to writes. Thememory_region_tb_writetracepoint is mis-named, because notdirty is not only used for TB invalidation. It is also used for e.g. VGA RAM updates and migration.Replace
memory_region_tb_writewithmemory_notdirty_write_access, and place it inmemory_notdirty_write_preparewhere it can catch all of the instances. Addmemory_notdirty_set_dirtyto log when we no longer intercept writes to a page.Signed-off-by Richard Henderson <[email protected]>---
v2: Rename new tracepoints as suggested (David)--- exec.c | 3 +++ memory.c | 4 ---- trace-events | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-)exec.c +3
-0@@ -2755,6 +2755,8 @@ void memory_notdirty_write_prepare(NotDirtyInfo *ndi, ndi->size = size; ndi->pages =NULL ; +trace_memory_notdirty_write_access (mem_vaddr, ram_addr, size); +assert (tcg_enabled ());if (!cpu_physical_memory_get_dirty_flag (ram_addr,DIRTY_MEMORY_CODE )) { ndi->pages =page_collection_lock (ram_addr, ram_addr + size);@@ -2779,6 +2781,7 @@ void memory_notdirty_write_complete(NotDirtyInfo *ndi)/* we remove the notdirty callback only if the code has been flushed */ if (!cpu_physical_memory_is_clean (ndi->ram_addr)) { +trace_memory_notdirty_set_dirty (ndi->mem_vaddr);tlb_set_dirty (ndi->cpu, ndi->mem_vaddr); } }memory.c +0
-4@@ -438,7 +438,6 @@ static MemTxResult memory_region_read_accessor(MemoryRegion *mr,/* Accesses to code which has previously been translated into a TB show * up in the MMIO path, as accesses to the io_mem_notdirty * MemoryRegion. */ -trace_memory_region_tb_read (get_cpu_index (), addr, tmp, size); }else if (TRACE_MEMORY_REGION_OPS_READ_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_read (get_cpu_index (), mr, abs_addr, tmp, size);@@ -465,7 +464,6 @@ static MemTxResult memory_region_read_with_attrs_accessor(MemoryRegion *mr,/* Accesses to code which has previously been translated into a TB show * up in the MMIO path, as accesses to the io_mem_notdirty * MemoryRegion. */ -trace_memory_region_tb_read (get_cpu_index (), addr, tmp, size); }else if (TRACE_MEMORY_REGION_OPS_READ_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_read (get_cpu_index (), mr, abs_addr, tmp, size);@@ -490,7 +488,6 @@ static MemTxResult memory_region_write_accessor(MemoryRegion *mr,/* Accesses to code which has previously been translated into a TB show * up in the MMIO path, as accesses to the io_mem_notdirty * MemoryRegion. */ -trace_memory_region_tb_write (get_cpu_index (), addr, tmp, size); }else if (TRACE_MEMORY_REGION_OPS_WRITE_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_write (get_cpu_index (), mr, abs_addr, tmp, size);@@ -515,7 +512,6 @@ static MemTxResult memory_region_write_with_attrs_accessor(MemoryRegion *mr,/* Accesses to code which has previously been translated into a TB show * up in the MMIO path, as accesses to the io_mem_notdirty * MemoryRegion. */ -trace_memory_region_tb_write (get_cpu_index (), addr, tmp, size); }else if (TRACE_MEMORY_REGION_OPS_WRITE_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_write (get_cpu_index (), mr, abs_addr, tmp, size);trace-events +2
-0@@ -52,14 +52,14 @@ dma_map_wait(void *dbs) "dbs=%p" find_ram_offset(uint64_t size, uint64_t offset) "size: 0x%" PRIx64 " @ 0x%" PRIx64 find_ram_offset_loop(uint64_t size, uint64_t candidate, uint64_t offset, uint64_t next, uint64_t mingap) "trying size: 0x%" PRIx64 " @ 0x%" PRIx64 ", offset: 0x%" PRIx64" next: 0x%" PRIx64 " mingap: 0x%" PRIx64 ram_block_discard_range(const char *rbname, void *hva, size_t length, bool need_madvise, bool need_fallocate, int ret) "%s@%p + 0x%zx: madvise: %d fallocate: %d ret: %d" +memory_notdirty_write_access(uint64_t vaddr, uint64_t ram_addr, unsigned size) "0x%" PRIx64 " ram_addr 0x%" PRIx64 " size %u" +memory_notdirty_set_dirty(uint64_t vaddr) "0x%" PRIx64
trace-events dma_map_wait(void *dbs) "dbs=%p" · line 65
Quoted 10 lines
trace-events +0
-2# memory.c memory_region_ops_read(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_ops_write(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_subpage_read(int cpu_index, void *mr, uint64_t offset, uint64_t value, unsigned size) "cpu %d mr %p offset 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_subpage_write(int cpu_index, void *mr, uint64_t offset, uint64_t value, unsigned size) "cpu %d mr %p offset 0x%"PRIx64" value 0x%"PRIx64" size %u" -memory_region_tb_read(int cpu_index, uint64_t addr, uint64_t value, unsigned size) "cpu %d addr 0x%"PRIx64" value 0x%"PRIx64" size %u" -memory_region_tb_write(int cpu_index, uint64_t addr, uint64_t value, unsigned size) "cpu %d addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_ram_device_read(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" memory_region_ram_device_write(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" flatview_new(void *view, void *root) "%p (root %p)"
Signature · 3 lines
Thanks, David / dhildenb
RFC v2 5/5 cputlb: Move NOTDIRTY handling from I/O path to TLB path
In reply to Richard HendersonPages that we want to track for NOTDIRTY are RAM. We do not really need to go through the I/O path to handle them.
--- include/exec/cpu-common.h | 1 - accel/tcg/cputlb.c | 23 ++++++++++++++--- exec.c | 54 +++------------------------------------ memory.c | 16 ------------ 4 files changed, 23 insertions(+), 71 deletions(-)
include/exec/cpu-common.h +0 -1
@@ -101,7 +101,6 @@ void qemu_flush_coalesced_mmio_buffer(void);void cpu_flush_icache_range (hwaddr start,hwaddr len);extern struct MemoryRegion io_mem_rom; -extern struct MemoryRegion io_mem_notdirty;typedef int (RAMBlockIterFunc )(RAMBlock *rb,void *opaque);
accel/tcg/cputlb.c +20 -3
@@ -904,7 +904,7 @@ static uint64_t io_readx(CPUArchState *env, CPUIOTLBEntry *iotlbentry, mr = section->mr; mr_offset = (iotlbentry->addr &TARGET_PAGE_MASK ) + addr; cpu->mem_io_pc = retaddr; -if (mr != &io_mem_rom && mr != &io_mem_notdirty && !cpu->can_do_io) { +if (mr != &io_mem_rom && !cpu->can_do_io) {cpu_io_recompile (cpu, retaddr); }
@@ -945,7 +945,7 @@ static void io_writex(CPUArchState *env, CPUIOTLBEntry *iotlbentry, section =iotlb_to_section (cpu, iotlbentry->addr, iotlbentry->attrs); mr = section->mr; mr_offset = (iotlbentry->addr &TARGET_PAGE_MASK ) + addr; -if (mr != &io_mem_rom && mr != &io_mem_notdirty && !cpu->can_do_io) { +if (mr != &io_mem_rom && !cpu->can_do_io) {cpu_io_recompile (cpu, retaddr); } cpu->mem_io_vaddr = addr;
@@ -1607,7 +1607,7 @@ store_helper(CPUArchState *env, target_ulong addr, uint64_t val, }/* Handle I/O access. */ -if (likely (tlb_addr & (TLB_MMIO |TLB_NOTDIRTY ))) { +if (tlb_addr &TLB_MMIO ) {io_writex (env, iotlbentry, mmu_idx, val, addr, retaddr, op ^ (tlb_addr &TLB_BSWAP ?MO_BSWAP :0 ));return ;
@@ -1615,6 +1615,23 @@ store_helper(CPUArchState *env, target_ulong addr, uint64_t val, haddr = (void *)((uintptr_t )addr + entry->addend); +/* Handle clean RAM pages. */ +if (tlb_addr &TLB_NOTDIRTY ) { +NotDirtyInfo ndi; + +memory_notdirty_write_prepare (&ndi,env_cpu (env), addr, + addr + iotlbentry->addr, size); + +if (unlikely (tlb_addr &TLB_BSWAP )) { +direct_swap (haddr, val); + }else { +direct (haddr, val); + } + +memory_notdirty_write_complete (&ndi); +return ; + } +if (unlikely (tlb_addr &TLB_BSWAP )) {direct_swap (haddr, val); }else {
exec.c +3 -51
90 lines not on this page · raw message
memory.c +0 -16
@@ -434,10 +434,6 @@ static MemTxResult memory_region_read_accessor(MemoryRegion *mr, tmp = mr->ops->read (mr->opaque, addr, size);if (mr->subpage) {trace_memory_region_subpage_read (get_cpu_index (), mr, addr, tmp, size); - }else if (mr == &io_mem_notdirty) { -/* Accesses to code which has previously been translated into a TB show -* up in the MMIO path, as accesses to the io_mem_notdirty -* MemoryRegion. */ }else if (TRACE_MEMORY_REGION_OPS_READ_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_read (get_cpu_index (), mr, abs_addr, tmp, size);
@@ -460,10 +456,6 @@ static MemTxResult memory_region_read_with_attrs_accessor(MemoryRegion *mr, r = mr->ops->read_with_attrs (mr->opaque, addr, &tmp, size, attrs);if (mr->subpage) {trace_memory_region_subpage_read (get_cpu_index (), mr, addr, tmp, size); - }else if (mr == &io_mem_notdirty) { -/* Accesses to code which has previously been translated into a TB show -* up in the MMIO path, as accesses to the io_mem_notdirty -* MemoryRegion. */ }else if (TRACE_MEMORY_REGION_OPS_READ_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_read (get_cpu_index (), mr, abs_addr, tmp, size);
@@ -484,10 +476,6 @@ static MemTxResult memory_region_write_accessor(MemoryRegion *mr,if (mr->subpage) {trace_memory_region_subpage_write (get_cpu_index (), mr, addr, tmp, size); - }else if (mr == &io_mem_notdirty) { -/* Accesses to code which has previously been translated into a TB show -* up in the MMIO path, as accesses to the io_mem_notdirty -* MemoryRegion. */ }else if (TRACE_MEMORY_REGION_OPS_WRITE_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_write (get_cpu_index (), mr, abs_addr, tmp, size);
@@ -508,10 +496,6 @@ static MemTxResult memory_region_write_with_attrs_accessor(MemoryRegion *mr,if (mr->subpage) {trace_memory_region_subpage_write (get_cpu_index (), mr, addr, tmp, size); - }else if (mr == &io_mem_notdirty) { -/* Accesses to code which has previously been translated into a TB show -* up in the MMIO path, as accesses to the io_mem_notdirty -* MemoryRegion. */ }else if (TRACE_MEMORY_REGION_OPS_WRITE_ENABLED ) {hwaddr abs_addr =memory_region_to_absolute_addr (mr, addr);trace_memory_region_ops_write (get_cpu_index (), mr, abs_addr, tmp, size);
Signature · 1 line
2.17.1
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
=== TEST SCRIPT BEGIN ===
#!/bin/bash
make docker-image-centos7 V=1 NETWORK=1
time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1 === TEST SCRIPT END ===
libpmem support no libudev no default devices yes
warning: Python 2 support is deprecated
warning: Python 3 will be required for building future versions of QEMU
cross containers no
---
TEST iotest-qcow2: 265
Passed all 107 iotests
**
ERROR:/tmp/qemu-test/src/tests/boot-sector.c:161:boot_sector_test: assertion failed (signature == SIGNATURE): (0x00000000 == 0x0000dead) ERROR - Bail out! ERROR:/tmp/qemu-test/src/tests/boot-sector.c:161:boot_sector_test: assertion failed (signature == SIGNATURE): (0x00000000 == 0x0000dead)
make: *** [check-qtest-x86_64] Error 1
Traceback (most recent call last):
File "./tests/docker/docker.py", line 664, in <module>
The full log is available at
http://patchew.org/logs/[email protected]/testing.docker-quick@centos7/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
=== TEST SCRIPT BEGIN ===
#!/bin/bash
export ARCH=x86_64
make docker-image-fedora V=1 NETWORK=1
time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1 === TEST SCRIPT END ===
PASS 1 fdc-test /x86_64/fdc/cmos
PASS 2 fdc-test /x86_64/fdc/no_media_on_start
PASS 3 fdc-test /x86_64/fdc/read_without_media
==11380==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 fdc-test /x86_64/fdc/media_change
PASS 5 fdc-test /x86_64/fdc/sense_interrupt
PASS 6 fdc-test /x86_64/fdc/relative_seek
---
PASS 32 test-opts-visitor /visitor/opts/range/beyond
PASS 33 test-opts-visitor /visitor/opts/dict/unvisited
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-coroutine -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-coroutine"
==11451==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-coroutine /basic/no-dangling-access
==11451==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe0881a000; bottom 0x7f2efb5f8000; size: 0x00cf0d222000 (889278570496)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 2 test-coroutine /basic/lifecycle
---
PASS 11 test-aio /aio/event/wait
PASS 12 test-aio /aio/event/flush
PASS 13 test-aio /aio/event/wait/no-flush-cb
==11470==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 14 test-aio /aio/timer/schedule
PASS 15 test-aio /aio/coroutine/queue-chaining
PASS 16 test-aio /aio-gsource/flush
---
PASS 28 test-aio /aio-gsource/timer/schedule
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-aio-multithread -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-aio-multithread"
PASS 1 test-aio-multithread /aio/multi/lifecycle
==11481==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 test-aio-multithread /aio/multi/schedule
==11494==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 ide-test /x86_64/ide/identify
PASS 3 test-aio-multithread /aio/multi/mutex/contended
==11505==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 ide-test /x86_64/ide/flush
==11516==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 ide-test /x86_64/ide/bmdma/simple_rw
==11522==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 ide-test /x86_64/ide/bmdma/trim
==11528==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 5 ide-test /x86_64/ide/bmdma/short_prdt
PASS 4 test-aio-multithread /aio/multi/mutex/handoff
==11534==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 6 ide-test /x86_64/ide/bmdma/one_sector_short_prdt
==11545==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 5 test-aio-multithread /aio/multi/mutex/mcs
PASS 7 ide-test /x86_64/ide/bmdma/long_prdt
==11556==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==11556==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff95131000; bottom 0x7f3856998000; size: 0x00c73e799000 (855746646016)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 8 ide-test /x86_64/ide/bmdma/no_busmaster
PASS 6 test-aio-multithread /aio/multi/mutex/pthread
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-throttle -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-throttle"
==11565==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-throttle /throttle/leak_bucket
PASS 2 test-throttle /throttle/compute_wait
PASS 3 test-throttle /throttle/init
---
PASS 14 test-throttle /throttle/config/max
PASS 15 test-throttle /throttle/config/iops_size
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-thread-pool -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-thread-pool"
==11573==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-thread-pool /thread-pool/submit
PASS 2 test-thread-pool /thread-pool/submit-aio
PASS 3 test-thread-pool /thread-pool/submit-co
PASS 4 test-thread-pool /thread-pool/submit-many
PASS 9 ide-test /x86_64/ide/flush/nodev
==11578==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 10 ide-test /x86_64/ide/flush/empty_drive
==11583==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 11 ide-test /x86_64/ide/flush/retry_pci
PASS 5 test-thread-pool /thread-pool/cancel
==11590==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 12 ide-test /x86_64/ide/flush/retry_isa
==11659==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 13 ide-test /x86_64/ide/cdrom/pio
PASS 6 test-thread-pool /thread-pool/cancel-async
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-hbitmap -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-hbitmap"
---
PASS 2 test-hbitmap /hbitmap/size/0
PASS 3 test-hbitmap /hbitmap/size/unaligned
PASS 4 test-hbitmap /hbitmap/iter/empty
==11665==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 5 test-hbitmap /hbitmap/iter/partial
PASS 6 test-hbitmap /hbitmap/iter/granularity
PASS 7 test-hbitmap /hbitmap/iter/iter_and_reset
---
PASS 14 ide-test /x86_64/ide/cdrom/pio_large
PASS 15 test-hbitmap /hbitmap/set/overlap
PASS 16 test-hbitmap /hbitmap/reset/empty
==11676==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 17 test-hbitmap /hbitmap/reset/general
PASS 15 ide-test /x86_64/ide/cdrom/dma
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 QTEST_QEMU_IMG=qemu-img tests/ahci-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="ahci-test"
---
PASS 28 test-hbitmap /hbitmap/truncate/shrink/medium
PASS 29 test-hbitmap /hbitmap/truncate/shrink/large
PASS 30 test-hbitmap /hbitmap/meta/zero
==11690==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 ahci-test /x86_64/ahci/sanity
==11696==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 ahci-test /x86_64/ahci/pci_spec
==11702==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 ahci-test /x86_64/ahci/pci_enable
==11708==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 ahci-test /x86_64/ahci/hba_spec
==11714==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 31 test-hbitmap /hbitmap/meta/one
PASS 32 test-hbitmap /hbitmap/meta/byte
PASS 33 test-hbitmap /hbitmap/meta/word
PASS 5 ahci-test /x86_64/ahci/hba_enable
==11720==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 34 test-hbitmap /hbitmap/meta/sector
PASS 6 ahci-test /x86_64/ahci/identify
PASS 35 test-hbitmap /hbitmap/serialize/align
==11726==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 7 ahci-test /x86_64/ahci/max
==11732==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 36 test-hbitmap /hbitmap/serialize/basic
PASS 37 test-hbitmap /hbitmap/serialize/part
PASS 38 test-hbitmap /hbitmap/serialize/zeroes
---
PASS 44 test-hbitmap /hbitmap/next_dirty_area/next_dirty_area_4
PASS 45 test-hbitmap /hbitmap/next_dirty_area/next_dirty_area_after_truncate
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-bdrv-drain -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-bdrv-drain"
==11739==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-bdrv-drain /bdrv-drain/nested
PASS 2 test-bdrv-drain /bdrv-drain/multiparent
PASS 3 test-bdrv-drain /bdrv-drain/set_aio_context
---
PASS 41 test-bdrv-drain /bdrv-drain/bdrv_drop_intermediate/poll
PASS 42 test-bdrv-drain /bdrv-drain/replace_child/mid-drain
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-bdrv-graph-mod -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-bdrv-graph-mod"
==11778==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==11781==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-bdrv-graph-mod /bdrv-graph-mod/update-perm-tree
PASS 2 test-bdrv-graph-mod /bdrv-graph-mod/should-update-child
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-blockjob -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-blockjob"
==11778==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc9b9a0000; bottom 0x7f6af71fe000; size: 0x0091a47a2000 (625529724928)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
==11790==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-blockjob /blockjob/ids
PASS 2 test-blockjob /blockjob/cancel/created
PASS 3 test-blockjob /blockjob/cancel/running
---
PASS 8 test-blockjob /blockjob/cancel/concluded
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-blockjob-txn -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-blockjob-txn"
PASS 9 ahci-test /x86_64/ahci/io/pio/lba28/simple/zero
==11796==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-blockjob-txn /single/success
PASS 2 test-blockjob-txn /single/failure
PASS 3 test-blockjob-txn /single/cancel
---
PASS 6 test-blockjob-txn /pair/cancel
PASS 7 test-blockjob-txn /pair/fail-cancel-race
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-block-backend -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-block-backend"
==11802==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-block-backend /block-backend/drain_aio_error
PASS 2 test-block-backend /block-backend/drain_all_aio_error
==11799==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-block-iothread -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-block-iothread"
==11811==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-block-iothread /sync-op/pread
PASS 2 test-block-iothread /sync-op/pwrite
PASS 3 test-block-iothread /sync-op/load_vmstate
---
PASS 14 test-block-iothread /propagate/basic
PASS 15 test-block-iothread /propagate/diamond
PASS 16 test-block-iothread /propagate/mirror
==11799==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffef91ea000; bottom 0x7f886b5fe000; size: 0x00768dbec000 (509184229376)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-image-locking -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-image-locking"
==11832==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-image-locking /image-locking/basic
PASS 2 test-image-locking /image-locking/set-perm-abort
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-x86-cpuid -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-x86-cpuid"
---
PASS 3 test-xbzrle /xbzrle/encode_decode_unchanged
PASS 4 test-xbzrle /xbzrle/encode_decode_1_byte
PASS 5 test-xbzrle /xbzrle/encode_decode_overflow
==11841==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==11841==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fffc00c7000; bottom 0x7f2047ffe000; size: 0x00df780c9000 (959791796224)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 6 test-xbzrle /xbzrle/encode_decode
---
PASS 1 test-shift128 /host-utils/test_lshift
PASS 2 test-shift128 /host-utils/test_rshift
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-mul64 -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-mul64"
==11856==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-mul64 /host-utils/mulu64
PASS 2 test-mul64 /host-utils/muls64
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-int128 -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-int128"
==11856==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe21cbc000; bottom 0x7f63691fe000; size: 0x009ab8abe000 (664523235328)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 1 test-int128 /int128/int128_and
---
PASS 10 test-int128 /int128/int128_rshift
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/rcutorture -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="rcutorture"
PASS 12 ahci-test /x86_64/ahci/io/pio/lba28/double/zero
==11889==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==11889==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd5100d000; bottom 0x7f08d21fe000; size: 0x00f47ee0f000 (1050100690944)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 1 rcutorture /rcu/torture/1reader
PASS 13 ahci-test /x86_64/ahci/io/pio/lba28/double/low
==11911==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==11911==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffcabdad000; bottom 0x7f44dcffe000; size: 0x00b7cedaf000 (789449469952)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 2 rcutorture /rcu/torture/10readers
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-rcu-list -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-rcu-list"
PASS 14 ahci-test /x86_64/ahci/io/pio/lba28/double/high
==11924==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-rcu-list /rcu/qlist/single-threaded
==11924==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffcbacb5000; bottom 0x7f09c4124000; size: 0x00f2f6b91000 (1043521409024)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 15 ahci-test /x86_64/ahci/io/pio/lba28/long/zero
PASS 2 test-rcu-list /rcu/qlist/short-few
==11936==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==11936==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd1aa5d000; bottom 0x7f5d7a924000; size: 0x009fa0139000 (685585436672)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 16 ahci-test /x86_64/ahci/io/pio/lba28/long/low
==11963==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==11963==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffcf8eb7000; bottom 0x7fec3c57c000; size: 0x0010bc93b000 (71883272192)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 3 test-rcu-list /rcu/qlist/long-many
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-rcu-simpleq -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-rcu-simpleq"
PASS 17 ahci-test /x86_64/ahci/io/pio/lba28/long/high
PASS 1 test-rcu-simpleq /rcu/qsimpleq/single-threaded
==11976==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 18 ahci-test /x86_64/ahci/io/pio/lba28/short/zero
PASS 2 test-rcu-simpleq /rcu/qsimpleq/short-few
==11988==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 19 ahci-test /x86_64/ahci/io/pio/lba28/short/low
==12015==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 20 ahci-test /x86_64/ahci/io/pio/lba28/short/high
PASS 3 test-rcu-simpleq /rcu/qsimpleq/long-many
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-rcu-tailq -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-rcu-tailq"
==12021==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12021==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc638f6000; bottom 0x7eff8bbfe000; size: 0x00fcd7cf8000 (1085952458752)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 21 ahci-test /x86_64/ahci/io/pio/lba48/simple/zero
PASS 1 test-rcu-tailq /rcu/qtailq/single-threaded
==12034==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12034==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffcdec45000; bottom 0x7f9e90dfe000; size: 0x005e4de47000 (405033742336)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 22 ahci-test /x86_64/ahci/io/pio/lba48/simple/low
PASS 2 test-rcu-tailq /rcu/qtailq/short-few
==12046==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12046==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffccf7cc000; bottom 0x7f3128dfe000; size: 0x00cba69ce000 (874673659904)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 23 ahci-test /x86_64/ahci/io/pio/lba48/simple/high
==12073==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12073==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fffb3981000; bottom 0x7f89b81fe000; size: 0x0075fb783000 (506730131456)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 24 ahci-test /x86_64/ahci/io/pio/lba48/double/zero
PASS 3 test-rcu-tailq /rcu/qtailq/long-many
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qdist -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qdist"
==12079==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-qdist /qdist/none
PASS 2 test-qdist /qdist/pr
PASS 3 test-qdist /qdist/single/empty
---
PASS 7 test-qdist /qdist/binning/expand
PASS 8 test-qdist /qdist/binning/shrink
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qht -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qht"
==12079==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd8240b000; bottom 0x7f3edaffe000; size: 0x00bea740d000 (818849828864)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 25 ahci-test /x86_64/ahci/io/pio/lba48/double/low
==12094==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12094==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fffa5ec1000; bottom 0x7f034f7fe000; size: 0x00fc566c3000 (1083781689344)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 26 ahci-test /x86_64/ahci/io/pio/lba48/double/high
==12100==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12100==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc95b31000; bottom 0x7f1cdfb7c000; size: 0x00dfb5fb5000 (960830853120)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 27 ahci-test /x86_64/ahci/io/pio/lba48/long/zero
==12106==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12106==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd9afff000; bottom 0x7fede7bfe000; size: 0x000fb3401000 (67431829504)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 28 ahci-test /x86_64/ahci/io/pio/lba48/long/low
==12112==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12112==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff1cf74000; bottom 0x7fe52dd24000; size: 0x0019ef250000 (111386361856)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 29 ahci-test /x86_64/ahci/io/pio/lba48/long/high
==12118==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 30 ahci-test /x86_64/ahci/io/pio/lba48/short/zero
==12124==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 31 ahci-test /x86_64/ahci/io/pio/lba48/short/low
==12130==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 32 ahci-test /x86_64/ahci/io/pio/lba48/short/high
==12136==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 33 ahci-test /x86_64/ahci/io/dma/lba28/fragmented
==12142==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 34 ahci-test /x86_64/ahci/io/dma/lba28/retry
==12148==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 35 ahci-test /x86_64/ahci/io/dma/lba28/simple/zero
==12154==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 36 ahci-test /x86_64/ahci/io/dma/lba28/simple/low
==12160==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 37 ahci-test /x86_64/ahci/io/dma/lba28/simple/high
==12166==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 38 ahci-test /x86_64/ahci/io/dma/lba28/double/zero
PASS 1 test-qht /qht/mode/default
PASS 2 test-qht /qht/mode/resize
==12172==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qht-par -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qht-par"
PASS 39 ahci-test /x86_64/ahci/io/dma/lba28/double/low
PASS 1 test-qht-par /qht/parallel/2threads-0%updates-1s
==12188==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 test-qht-par /qht/parallel/2threads-20%updates-1s
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-bitops -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-bitops"
PASS 40 ahci-test /x86_64/ahci/io/dma/lba28/double/high
---
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qdev-global-props -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qdev-global-props"
PASS 1 test-qdev-global-props /qdev/properties/static/default
PASS 2 test-qdev-global-props /qdev/properties/static/global
==12207==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 test-qdev-global-props /qdev/properties/dynamic/global
PASS 4 test-qdev-global-props /qdev/properties/global/subclass
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/check-qom-interface -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="check-qom-interface"
---
PASS 26 test-crypto-cipher /crypto/cipher/aes-ctr-256
PASS 27 test-crypto-cipher /crypto/cipher/null-iv
PASS 28 test-crypto-cipher /crypto/cipher/short-plaintext
==12255==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-secret -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-secret"
PASS 1 test-crypto-secret /crypto/secret/direct
PASS 2 test-crypto-secret /crypto/secret/indirect/good
---
PASS 16 test-crypto-secret /crypto/secret/crypt/badiv
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-tlscredsx509 -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-tlscredsx509"
PASS 42 ahci-test /x86_64/ahci/io/dma/lba28/long/low
==12279==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/perfectserver
PASS 2 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/perfectclient
PASS 3 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodca1
PASS 43 ahci-test /x86_64/ahci/io/dma/lba28/long/high
==12285==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 44 ahci-test /x86_64/ahci/io/dma/lba28/short/zero
==12291==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodca2
PASS 5 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodca3
PASS 6 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/badca1
PASS 7 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/badca2
PASS 8 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/badca3
PASS 45 ahci-test /x86_64/ahci/io/dma/lba28/short/low
==12297==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 46 ahci-test /x86_64/ahci/io/dma/lba28/short/high
PASS 9 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver1
PASS 10 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver2
==12303==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 11 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver3
PASS 12 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver4
PASS 47 ahci-test /x86_64/ahci/io/dma/lba48/simple/zero
==12309==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 13 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver5
PASS 48 ahci-test /x86_64/ahci/io/dma/lba48/simple/low
PASS 14 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver6
==12315==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 49 ahci-test /x86_64/ahci/io/dma/lba48/simple/high
==12321==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 15 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver7
PASS 16 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/badserver1
PASS 17 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/badserver2
---
PASS 39 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/missingclient
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-tlssession -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-tlssession"
PASS 50 ahci-test /x86_64/ahci/io/dma/lba48/double/zero
==12332==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-crypto-tlssession /qcrypto/tlssession/psk
PASS 51 ahci-test /x86_64/ahci/io/dma/lba48/double/low
PASS 2 test-crypto-tlssession /qcrypto/tlssession/basicca
PASS 3 test-crypto-tlssession /qcrypto/tlssession/differentca
==12338==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 test-crypto-tlssession /qcrypto/tlssession/altname1
PASS 5 test-crypto-tlssession /qcrypto/tlssession/altname2
PASS 52 ahci-test /x86_64/ahci/io/dma/lba48/double/high
==12344==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 53 ahci-test /x86_64/ahci/io/dma/lba48/long/zero
PASS 6 test-crypto-tlssession /qcrypto/tlssession/altname3
==12350==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 7 test-crypto-tlssession /qcrypto/tlssession/altname4
PASS 54 ahci-test /x86_64/ahci/io/dma/lba48/long/low
==12356==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 55 ahci-test /x86_64/ahci/io/dma/lba48/long/high
PASS 8 test-crypto-tlssession /qcrypto/tlssession/altname5
==12362==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 9 test-crypto-tlssession /qcrypto/tlssession/altname6
PASS 10 test-crypto-tlssession /qcrypto/tlssession/wildcard1
PASS 56 ahci-test /x86_64/ahci/io/dma/lba48/short/zero
==12368==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 11 test-crypto-tlssession /qcrypto/tlssession/wildcard2
PASS 57 ahci-test /x86_64/ahci/io/dma/lba48/short/low
==12374==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 12 test-crypto-tlssession /qcrypto/tlssession/wildcard3
PASS 58 ahci-test /x86_64/ahci/io/dma/lba48/short/high
PASS 13 test-crypto-tlssession /qcrypto/tlssession/wildcard4
==12380==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 14 test-crypto-tlssession /qcrypto/tlssession/wildcard5
PASS 59 ahci-test /x86_64/ahci/io/ncq/simple
==12386==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 60 ahci-test /x86_64/ahci/io/ncq/retry
==12392==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 15 test-crypto-tlssession /qcrypto/tlssession/wildcard6
PASS 16 test-crypto-tlssession /qcrypto/tlssession/cachain
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qga -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qga"
PASS 61 ahci-test /x86_64/ahci/flush/simple
==12404==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-qga /qga/sync-delimited
PASS 2 test-qga /qga/sync
PASS 3 test-qga /qga/ping
---
PASS 16 test-qga /qga/invalid-args
PASS 17 test-qga /qga/fsfreeze-status
PASS 62 ahci-test /x86_64/ahci/flush/retry
==12411==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 18 test-qga /qga/blacklist
PASS 19 test-qga /qga/config
PASS 20 test-qga /qga/guest-exec
PASS 21 test-qga /qga/guest-exec-invalid
==12416==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 22 test-qga /qga/guest-get-osinfo
PASS 23 test-qga /qga/guest-get-host-name
PASS 24 test-qga /qga/guest-get-timezone
---
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-authz-simple -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-authz-simple"
PASS 1 test-authz-simple /authz/simple
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-authz-list -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-authz-list"
==12446==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-authz-list /auth/list/complex
PASS 2 test-authz-list /auth/list/add-remove
PASS 3 test-authz-list /auth/list/default/deny
---
PASS 4 test-io-task /crypto/task/thread_complete
PASS 5 test-io-task /crypto/task/thread_failure
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-io-channel-socket -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-io-channel-socket"
==12468==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-io-channel-socket /io/channel/socket/ipv4-sync
PASS 2 test-io-channel-socket /io/channel/socket/ipv4-async
PASS 3 test-io-channel-socket /io/channel/socket/ipv4-fd
---
PASS 16 test-crypto-pbkdf /crypto/pbkdf/nonrfc/sha224/iter1200
PASS 17 test-crypto-pbkdf /crypto/pbkdf/nonrfc/sha384/iter1200
PASS 18 test-crypto-pbkdf /crypto/pbkdf/nonrfc/ripemd160/iter1200
==12555==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-ivgen -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-ivgen"
PASS 1 test-crypto-ivgen /crypto/ivgen/plain/1
PASS 2 test-crypto-ivgen /crypto/ivgen/plain/1f2e3d4c
---
PASS 3 test-crypto-afsplit /crypto/afsplit/sha256/big
PASS 4 test-crypto-afsplit /crypto/afsplit/sha1/1000
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-xts -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-xts"
==12574==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-crypto-xts /crypto/xts/t-1-key-32-ptx-32/basic
PASS 2 test-crypto-xts /crypto/xts/t-1-key-32-ptx-32/split
PASS 3 test-crypto-xts /crypto/xts/t-1-key-32-ptx-32/unaligned
---
PASS 1 test-logging /logging/parse_range
PASS 2 test-logging /logging/parse_path
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-replication -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-replication"
==12601==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-replication /replication/primary/read
PASS 2 test-replication /replication/primary/write
PASS 65 ahci-test /x86_64/ahci/migrate/dma/simple
---
PASS 4 test-replication /replication/primary/stop
PASS 5 test-replication /replication/primary/do_checkpoint
PASS 6 test-replication /replication/primary/get_error_all
==12607==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12612==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 7 test-replication /replication/secondary/read
PASS 8 test-replication /replication/secondary/write
PASS 66 ahci-test /x86_64/ahci/migrate/dma/halted
==12621==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12626==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12601==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe813fa000; bottom 0x7f5188efc000; size: 0x00acf84fe000 (742900359168)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 9 test-replication /replication/secondary/start
PASS 67 ahci-test /x86_64/ahci/migrate/ncq/simple
==12652==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12657==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 68 ahci-test /x86_64/ahci/migrate/ncq/halted
PASS 10 test-replication /replication/secondary/stop
==12667==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 69 ahci-test /x86_64/ahci/cdrom/eject
==12673==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 70 ahci-test /x86_64/ahci/cdrom/dma/single
PASS 11 test-replication /replication/secondary/do_checkpoint
==12679==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 71 ahci-test /x86_64/ahci/cdrom/dma/multi
==12685==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 12 test-replication /replication/secondary/get_error_all
PASS 72 ahci-test /x86_64/ahci/cdrom/pio/single
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-bufferiszero -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-bufferiszero"
==12692==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==12692==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff6481b000; bottom 0x7fee705fe000; size: 0x0010f421d000 (72815333376)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 73 ahci-test /x86_64/ahci/cdrom/pio/multi
==12701==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 74 ahci-test /x86_64/ahci/cdrom/pio/bcl
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 QTEST_QEMU_IMG=qemu-img tests/hd-geo-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="hd-geo-test" PASS 1 hd-geo-test /x86_64/hd-geo/ide/none
==12715==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 hd-geo-test /x86_64/hd-geo/ide/drive/cd_0
==12721==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 hd-geo-test /x86_64/hd-geo/ide/drive/mbr/blank
==12727==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 hd-geo-test /x86_64/hd-geo/ide/drive/mbr/lba
==12733==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 5 hd-geo-test /x86_64/hd-geo/ide/drive/mbr/chs
==12739==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 6 hd-geo-test /x86_64/hd-geo/ide/device/mbr/blank
==12745==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 7 hd-geo-test /x86_64/hd-geo/ide/device/mbr/lba
==12751==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 8 hd-geo-test /x86_64/hd-geo/ide/device/mbr/chs
==12757==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 9 hd-geo-test /x86_64/hd-geo/ide/device/user/chs
==12762==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 10 hd-geo-test /x86_64/hd-geo/ide/device/user/chst
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 QTEST_QEMU_IMG=qemu-img tests/boot-order-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="boot-order-test" PASS 1 boot-order-test /x86_64/boot-order/pc
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12830==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP'
Using expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12836==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-bufferiszero /cutils/bufferiszero
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-uuid -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-uuid" PASS 1 test-uuid /uuid/is_null
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12859==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.bridge'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12865==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.ipmikcs'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12871==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.cphp'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12878==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.memhp'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12884==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.numamem'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12890==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.dimmpxm'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12899==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.bridge'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12905==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.mmio64'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12911==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.ipmibt'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12917==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.cphp'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12924==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.memhp'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12930==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.numamem'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
==12936==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.dimmpxm'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
qemu-system-x86_64: failed to initialize KVM: No such file or directory
qemu-system-x86_64: Back to tcg accelerator
**
ERROR:/tmp/qemu-test/src/tests/boot-sector.c:161:boot_sector_test: assertion failed (signature == SIGNATURE): (0x00000000 == 0x0000dead) ERROR - Bail out! ERROR:/tmp/qemu-test/src/tests/boot-sector.c:161:boot_sector_test: assertion failed (signature == SIGNATURE): (0x00000000 == 0x0000dead)
make: *** [/tmp/qemu-test/src/tests/Makefile.include:900: check-qtest-x86_64] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
The full log is available at
http://patchew.org/logs/[email protected]/testing.asan/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the 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.
=== TEST SCRIPT BEGIN ===
#! /bin/bash
export ARCH=x86_64
make docker-image-fedora V=1 NETWORK=1
time make docker-test-mingw@fedora J=14 NETWORK=1
=== TEST SCRIPT END ===
The full log is available at
http://patchew.org/logs/[email protected]/testing.docker-mingw@fedora/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Quoted 4 lines · Richard Henderson
However this time the changes are extremely minimal, and now I really *really* don't understand why they don't work, because as far as I can tell the new locking is *identical* with the current i/o path.
The difference was failing to set cpu->mem_io_pc, so that TARGET_HAS_PRECISE_SMC within tb_invalidate_phys_page_range__locked could look up the current TB, and potentially restore state and exit to the main loop.
Version 3 will have this fixed.
r~