Re: [PATCH v2 09/13] target/ppc: Improve helper_dcbz for user-only

2024-07-10 Thread Richard Henderson
On 7/10/24 05:25, BALATON Zoltan wrote: On Tue, 9 Jul 2024, Richard Henderson wrote: Mark the reserve_addr check unlikely.  Use tlb_vaddr_to_host instead of probe_write, relying on the memset itself to test for page writability.  Use set/clear_helper_retaddr so that we can properly unwind on seg

Re: [PATCH v2 09/13] target/ppc: Improve helper_dcbz for user-only

2024-07-10 Thread BALATON Zoltan
On Tue, 9 Jul 2024, Richard Henderson wrote: Mark the reserve_addr check unlikely. Use tlb_vaddr_to_host instead of probe_write, relying on the memset itself to test for page writability. Use set/clear_helper_retaddr so that we can properly unwind on segfault. With this, a trivial loop around

[PATCH v2 09/13] target/ppc: Improve helper_dcbz for user-only

2024-07-09 Thread Richard Henderson
Mark the reserve_addr check unlikely. Use tlb_vaddr_to_host instead of probe_write, relying on the memset itself to test for page writability. Use set/clear_helper_retaddr so that we can properly unwind on segfault. With this, a trivial loop around guest memset will spend nearly 50% of runtime w