Revision 9bdbe550 kvm-all.c

b/kvm-all.c
207 207
    return ret;
208 208
}
209 209

  
210
int kvm_put_mp_state(CPUState *env)
211
{
212
    struct kvm_mp_state mp_state = { .mp_state = env->mp_state };
213

  
214
    return kvm_vcpu_ioctl(env, KVM_SET_MP_STATE, &mp_state);
215
}
216

  
217
int kvm_get_mp_state(CPUState *env)
218
{
219
    struct kvm_mp_state mp_state;
220
    int ret;
221

  
222
    ret = kvm_vcpu_ioctl(env, KVM_GET_MP_STATE, &mp_state);
223
    if (ret < 0) {
224
        return ret;
225
    }
226
    env->mp_state = mp_state.mp_state;
227
    return 0;
228
}
229

  
230 210
/*
231 211
 * dirty pages logging control
232 212
 */

Also available in: Unified diff