On Thu, Mar 28, 2019 at 03:28:37PM +0000, Suzuki K Poulose wrote: > On 03/28/2019 10:37 AM, Andrew Murray wrote: > > The virt/arm core allocates a kvm_cpu_context_t percpu, at present this is > > a typedef to kvm_cpu_context and is used to store host cpu context. The > > kvm_cpu_context structure is also used elsewhere to hold vcpu context. > > In order to use the percpu to hold additional future host information we > > encapsulate kvm_cpu_context in a new structure and rename the typedef and > > percpu to match. > > > > Signed-off-by: Andrew Murray <andrew.murray@xxxxxxx> > > --- > > arch/arm/include/asm/kvm_host.h | 8 ++++++-- > > arch/arm64/include/asm/kvm_asm.h | 3 ++- > > arch/arm64/include/asm/kvm_host.h | 16 ++++++++++------ > > arch/arm64/kernel/asm-offsets.c | 1 + > > virt/kvm/arm/arm.c | 14 ++++++++------ > > 5 files changed, 27 insertions(+), 15 deletions(-) > > > > diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h > > index 770d73257ad9..427c28be6452 100644 > > --- a/arch/arm/include/asm/kvm_host.h > > +++ b/arch/arm/include/asm/kvm_host.h > > @@ -150,7 +150,11 @@ struct kvm_cpu_context { > > u32 cp15[NR_CP15_REGS]; > > }; > > -typedef struct kvm_cpu_context kvm_cpu_context_t; > > +struct kvm_host_data { > > + struct kvm_cpu_context host_ctxt; > > +}; > > + > > +typedef struct kvm_host_data kvm_host_data_t; > > static inline void kvm_init_host_cpu_context(kvm_cpu_context_t *cpu_ctxt, > > int cpu) > > We need to fix this function prototype to accept struct kvm_cpu_context, > instead of the now removed kvm_cpu_context_t, to prevent a build break > on arm32 ? Yes this was a breakage, thanks for pointing this out. Thanks, Andrew Murray > > With that : > > Reviewed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx> _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm