Revision f6584ee2 target-i386/machine.c

b/target-i386/machine.c
373 373
    return 0;
374 374
}
375 375

  
376
static bool async_pf_msr_needed(void *opaque)
377
{
378
    CPUState *cpu = opaque;
379

  
380
    return cpu->async_pf_en_msr != 0;
381
}
382

  
383
static const VMStateDescription vmstate_async_pf_msr = {
384
    .name = "cpu/async_pf_msr",
385
    .version_id = 1,
386
    .minimum_version_id = 1,
387
    .minimum_version_id_old = 1,
388
    .fields      = (VMStateField []) {
389
        VMSTATE_UINT64(async_pf_en_msr, CPUState),
390
        VMSTATE_END_OF_LIST()
391
    }
392
};
393

  
376 394
static const VMStateDescription vmstate_cpu = {
377 395
    .name = "cpu",
378 396
    .version_id = CPU_SAVE_VERSION,
......
475 493
        VMSTATE_YMMH_REGS_VARS(ymmh_regs, CPUState, CPU_NB_REGS, 12),
476 494
        VMSTATE_END_OF_LIST()
477 495
        /* The above list is not sorted /wrt version numbers, watch out! */
496
    },
497
    .subsections = (VMStateSubsection []) {
498
        {
499
            .vmsd = &vmstate_async_pf_msr,
500
            .needed = async_pf_msr_needed,
501
        } , {
502
            /* empty */
503
        }
478 504
    }
479 505
};
480 506

  

Also available in: Unified diff