On Fri, Jul 31, 2020 at 10:42:19AM +0800, Robert Hoo wrote: > Add below functions, whose aggregation equals kvm_update_cpuid_runtime() and > kvm_vcpu_after_set_cpuid(). > > void kvm_osxsave_update_cpuid(struct kvm_vcpu *vcpu, bool set) > void kvm_pke_update_cpuid(struct kvm_vcpu *vcpu, bool set) > void kvm_apic_base_update_cpuid(struct kvm_vcpu *vcpu, bool set) > void kvm_mwait_update_cpuid(struct kvm_vcpu *vcpu, bool set) > void kvm_xcr0_update_cpuid(struct kvm_vcpu *vcpu) > static void kvm_pv_unhalt_update_cpuid(struct kvm_vcpu *vcpu) > static void kvm_update_maxphyaddr(struct kvm_vcpu *vcpu) > static void kvm_update_lapic_timer_mode(struct kvm_vcpu *vcpu) Ugh, I just reread this, you're adding functions with no callers. This patch should replace the existing code so that there are callers, and more importantly so that we can verify old==new.