Re: [PATCH] tcg: Special case split barriers before/after load

2022-06-07 Thread Redha
Hi Richard and Philippe, I was finally able to test the patch. As expected, the fences generated by TCG with your patch are the same ones as in mine. However, I was not able to reproduce the failure with the ahci-test on my ARM system (2x 28-core Thunder X2, 4 threads per core). I ran 500 tests

Re: [PATCH] tcg: Special case split barriers before/after load

2022-05-30 Thread Philippe Mathieu-Daudé via
Hi Richard, On 1/5/22 01:45, Richard Henderson wrote: When st:ld is not required by the guest but ld:st is, we can put ld:ld+ld:st barriers after loads, and then st:st barriers before stores to enforce all required barriers. The st:st barrier is often special cased by hosts, and that is expecte

[PATCH] tcg: Special case split barriers before/after load

2022-04-30 Thread Richard Henderson
When st:ld is not required by the guest but ld:st is, we can put ld:ld+ld:st barriers after loads, and then st:st barriers before stores to enforce all required barriers. The st:st barrier is often special cased by hosts, and that is expected to be more efficient than a full barrier. Signed-off-b