Revision f6584ee2 target-i386/kvm.c

b/target-i386/kvm.c
162 162
#ifdef KVM_CAP_PV_MMU
163 163
        { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP },
164 164
#endif
165
#ifdef KVM_CAP_ASYNC_PF
166
        { KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
167
#endif
165 168
        { -1, -1 }
166 169
};
167 170

  
......
838 841
        kvm_msr_entry_set(&msrs[n++], MSR_KVM_SYSTEM_TIME,
839 842
                          env->system_time_msr);
840 843
        kvm_msr_entry_set(&msrs[n++], MSR_KVM_WALL_CLOCK, env->wall_clock_msr);
844
#ifdef KVM_CAP_ASYNC_PF
845
        kvm_msr_entry_set(&msrs[n++], MSR_KVM_ASYNC_PF_EN, env->async_pf_en_msr);
846
#endif
841 847
    }
842 848
#ifdef KVM_CAP_MCE
843 849
    if (env->mcg_cap) {
......
1064 1070
#endif
1065 1071
    msrs[n++].index = MSR_KVM_SYSTEM_TIME;
1066 1072
    msrs[n++].index = MSR_KVM_WALL_CLOCK;
1073
#ifdef KVM_CAP_ASYNC_PF
1074
    msrs[n++].index = MSR_KVM_ASYNC_PF_EN;
1075
#endif
1067 1076

  
1068 1077
#ifdef KVM_CAP_MCE
1069 1078
    if (env->mcg_cap) {
......
1135 1144
            }
1136 1145
#endif
1137 1146
            break;
1147
#ifdef KVM_CAP_ASYNC_PF
1148
        case MSR_KVM_ASYNC_PF_EN:
1149
            env->async_pf_en_msr = msrs[i].data;
1150
            break;
1151
#endif
1138 1152
        }
1139 1153
    }
1140 1154

  

Also available in: Unified diff