Re: Access unprivileged regions from OS
Andrew Waterman
On Fri, Oct 30, 2020 at 4:25 AM Andrea Mondelli <andrea.mondelli@...> wrote:
My experience has been that, in the grand scheme of the cost of the syscall, the sstatus writes don't have a major effect on performance. (Also, many syscalls don't need to access user memory, since args are passed and returned in registers; and many syscalls that do access user memory do so in bulk, amortizing the cost of the sstatus writes across many memory accesses, cache misses, etc.)
At the time, we felt it was best to conserve opcode space and keep the ISA simpler. (For somewhat different reasons, the hypervisor extension has chosen to add new instructions for accessing guest OS memory.) |
|