void (*handle_exit_irqoff)(struct kvm_vcpu *vcpu,
                enum exit_fastpath_completion *exit_fastpath);
 
-       bool (*umip_emulated)(void);
        bool (*pt_supported)(void);
 
        int (*check_nested_events)(struct kvm_vcpu *vcpu);
 
        return boot_cpu_has(X86_FEATURE_RDTSCP);
 }
 
-static bool svm_umip_emulated(void)
-{
-       return false;
-}
-
 static bool svm_pt_supported(void)
 {
        return false;
        .cpuid_update = svm_cpuid_update,
 
        .rdtscp_supported = svm_rdtscp_supported,
-       .umip_emulated = svm_umip_emulated,
        .pt_supported = svm_pt_supported,
 
        .set_supported_cpuid = svm_set_supported_cpuid,
 
 {
        switch (entry->function) {
        case 0x7:
+               /*
+                * UMIP needs to be manually set even though vmx_set_cpu_caps()
+                * also sets UMIP since do_host_cpuid() will drop it.
+                */
                if (vmx_umip_emulated())
                        cpuid_entry_set(entry, X86_FEATURE_UMIP);
                break;
        if (enable_ept && boot_cpu_has(X86_FEATURE_OSPKE))
                kvm_cpu_cap_check_and_set(X86_FEATURE_PKU);
 
+       if (vmx_umip_emulated())
+               kvm_cpu_cap_set(X86_FEATURE_UMIP);
+
        /* CPUID 0xD.1 */
        if (!vmx_xsaves_supported())
                kvm_cpu_cap_clear(X86_FEATURE_XSAVES);
 
        .check_intercept = vmx_check_intercept,
        .handle_exit_irqoff = vmx_handle_exit_irqoff,
-       .umip_emulated = vmx_umip_emulated,
        .pt_supported = vmx_pt_supported,
 
        .request_immediate_exit = vmx_request_immediate_exit,
 
        if (kvm_cpu_cap_has(X86_FEATURE_LA57))
                reserved_bits &= ~X86_CR4_LA57;
 
-       if (kvm_x86_ops->umip_emulated())
+       if (kvm_cpu_cap_has(X86_FEATURE_UMIP))
                reserved_bits &= ~X86_CR4_UMIP;
 
        return reserved_bits;