Re: [RFC PATCH 05/16] KVM: arm: Add arch init/uninit hooks

2018-07-09 Thread Dave Martin
On Fri, Jul 06, 2018 at 11:02:20AM +0100, Alex Bennée wrote: > > Dave Martin writes: > > > In preparation for adding support for SVE in guests on arm64, hooks > > for allocating and freeing additional per-vcpu memory are needed. > > > > kvm_arch_vcpu_setup() could be used for allocation, but

Re: [RFC PATCH 05/16] KVM: arm: Add arch init/uninit hooks

2018-07-06 Thread Alex Bennée
Dave Martin writes: > In preparation for adding support for SVE in guests on arm64, hooks > for allocating and freeing additional per-vcpu memory are needed. > > kvm_arch_vcpu_setup() could be used for allocation, but this > function is not clearly balanced by un "unsetup" function, making

[RFC PATCH 05/16] KVM: arm: Add arch init/uninit hooks

2018-06-21 Thread Dave Martin
In preparation for adding support for SVE in guests on arm64, hooks for allocating and freeing additional per-vcpu memory are needed. kvm_arch_vcpu_setup() could be used for allocation, but this function is not clearly balanced by un "unsetup" function, making it unclear where memory allocated in