Re: [Qemu-devel] [PATCH 4/9] target-mips: Check memory permissions with mem_idx

2017-07-06 Thread James Hogan
On Fri, Oct 07, 2016 at 04:48:31PM +0100, Yongbok Kim wrote: > On 06/09/2016 12:03, James Hogan wrote: > > diff --git a/target-mips/helper.c b/target-mips/helper.c > > index 29ebf391cb94..2065fc3ec119 100644 > > --- a/target-mips/helper.c > > +++ b/target-mips/helper.c > > @@ -413,11 +413,12 @@ st

Re: [Qemu-devel] [PATCH 4/9] target-mips: Check memory permissions with mem_idx

2016-10-07 Thread Yongbok Kim
On 06/09/2016 12:03, James Hogan wrote: > When performing virtual to physical address translation, check the > required privilege level based on the mem_idx rather than the mode in > the hflags. This will allow EVA loads & stores to operate safely only on > user memory from kernel mode. > > For

[Qemu-devel] [PATCH 4/9] target-mips: Check memory permissions with mem_idx

2016-09-06 Thread James Hogan
When performing virtual to physical address translation, check the required privilege level based on the mem_idx rather than the mode in the hflags. This will allow EVA loads & stores to operate safely only on user memory from kernel mode. For the cases where the mmu_idx doesn't need to be overrid