Re: [PATCH 1/1] KVM: arm64: Use a separate function for hyp stage-1 walks

2022-11-15 Thread Oliver Upton
Hey Will, On Tue, Nov 15, 2022 at 01:25:34PM +, Will Deacon wrote: [...] > On Mon, Nov 14, 2022 at 08:11:27PM +, Oliver Upton wrote: > > +int kvm_pgtable_hyp_walk(struct kvm_pgtable *pgt, u64 addr, u64 size, > > +struct kvm_pgtable_walker *walker); > > Hmm, this feel

Re: [PATCH 1/1] KVM: arm64: Use a separate function for hyp stage-1 walks

2022-11-15 Thread Will Deacon
On Mon, Nov 14, 2022 at 08:11:27PM +, Oliver Upton wrote: > A subsequent change to the page table walkers adds RCU protection for > walking stage-2 page tables. KVM uses a global lock to serialize hyp > stage-1 walks, meaning RCU protection is quite meaningless for > protecting hyp stage-1 walk

[PATCH 1/1] KVM: arm64: Use a separate function for hyp stage-1 walks

2022-11-14 Thread Oliver Upton
A subsequent change to the page table walkers adds RCU protection for walking stage-2 page tables. KVM uses a global lock to serialize hyp stage-1 walks, meaning RCU protection is quite meaningless for protecting hyp stage-1 walkers. Add a new helper, kvm_pgtable_hyp_walk(), for use when walking h