Subject: Re: [PATCH v3 05/10] VAS: Define helpers to init window context

From: Michael Neuling <[email-masked]>
Date: Sat, 25 Mar 2017 14:34:44 +1100

> > > +	val =3D 0ULL;
> > > +	if (user_win) {
> > > +		val =3D SET_FIELD(VAS_XLATE_MSR_DR, val, true);
> > > +		val =3D SET_FIELD(VAS_XLATE_MSR_TA, val, false);
> > > +		val =3D SET_FIELD(VAS_XLATE_MSR_PR, val, true);
> > > +		val =3D SET_FIELD(VAS_XLATE_MSR_US, val, false);
> > > +		val =3D SET_FIELD(VAS_XLATE_MSR_HV, val, true);
> > > +		val =3D SET_FIELD(VAS_XLATE_MSR_SF, val, true);
> > > +		val =3D SET_FIELD(VAS_XLATE_MSR_UV, val, false);
> > > +	} else {
> > > +		val =3D SET_FIELD(VAS_XLATE_MSR_DR, val, false);
> >=20
> > kernel contexts don't go through the nestmmu?
>=20
> I think so, but will check with Alistair/Ben.

Well it's kinda up to you.  Do you want to use the kernel mapping or not?  =
I
probably would unless there are issues.

Mikey