Re: [PATCH kernel v2 6/6] KVM: PPC: Remove redundand permission bits removal

2018-09-10 Thread David Gibson
On Mon, Sep 10, 2018 at 06:29:12PM +1000, Alexey Kardashevskiy wrote: > The kvmppc_gpa_to_ua() helper itself takes care of the permission > bits in the TCE and yet every single caller removes them. > > This changes semantics of kvmppc_gpa_to_ua() so it takes TCEs > (which are GPAs + TCE

[PATCH kernel v2 6/6] KVM: PPC: Remove redundand permission bits removal

2018-09-10 Thread Alexey Kardashevskiy
The kvmppc_gpa_to_ua() helper itself takes care of the permission bits in the TCE and yet every single caller removes them. This changes semantics of kvmppc_gpa_to_ua() so it takes TCEs (which are GPAs + TCE permission bits) to make the callers simpler. This should cause no behavioural change.