Re: [PATCH v3 6/9] KVM: x86: Copy kvm_x86_ops by value to eliminate layer of indirection

2020-03-23 Thread Sean Christopherson
On Mon, Mar 23, 2020 at 01:44:46PM +0100, Vitaly Kuznetsov wrote: > (OK, I have to admit I trust the fact that GCC is still able to build > KVM modules more than my own eyes) Ha, yep, I trust gcc far more than my grep skills. ___ kvmarm mailing list

Re: [PATCH v3 6/9] KVM: x86: Copy kvm_x86_ops by value to eliminate layer of indirection

2020-03-23 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Replace the kvm_x86_ops pointer in common x86 with an instance of the > struct to save one memory instance when invoking function. Copy the > struct by value to set the ops during kvm_init(). > > Arbitrarily use kvm_x86_ops.hardware_enable to track whether or not

[PATCH v3 6/9] KVM: x86: Copy kvm_x86_ops by value to eliminate layer of indirection

2020-03-21 Thread Sean Christopherson
Replace the kvm_x86_ops pointer in common x86 with an instance of the struct to save one memory instance when invoking function. Copy the struct by value to set the ops during kvm_init(). Arbitrarily use kvm_x86_ops.hardware_enable to track whether or not the ops have been initialized, i.e. a