Re: [kvm-unit-tests PATCH v9 26/31] powerpc: add usermode support

2024-06-04 Thread Thomas Huth
On 04/05/2024 14.28, Nicholas Piggin wrote: The biggest difficulty for user mode is MMU support. Otherwise it is a simple matter of setting and clearing MSR[PR] with rfid and sc respectively. Some common harness operations will fail in usermode, so some workarounds are reqiured (e.g., puts() can

[kvm-unit-tests PATCH v9 26/31] powerpc: add usermode support

2024-05-04 Thread Nicholas Piggin
The biggest difficulty for user mode is MMU support. Otherwise it is a simple matter of setting and clearing MSR[PR] with rfid and sc respectively. Some common harness operations will fail in usermode, so some workarounds are reqiured (e.g., puts() can't be used directly). A usermode privileged i