machine.c (45a505d0a4b396a013ab086948a8ba6e76096bf4) machine.c (606c34bfd57a0ecda67b395bea022bb307a5384e)
1#include "qemu/osdep.h"
2#include "qemu-common.h"
3#include "cpu.h"
4#include "exec/exec-all.h"
5#include "hw/hw.h"
6#include "hw/boards.h"
7#include "hw/i386/pc.h"
8#include "hw/isa/isa.h"
9#include "migration/cpu.h"
1#include "qemu/osdep.h"
2#include "qemu-common.h"
3#include "cpu.h"
4#include "exec/exec-all.h"
5#include "hw/hw.h"
6#include "hw/boards.h"
7#include "hw/i386/pc.h"
8#include "hw/isa/isa.h"
9#include "migration/cpu.h"
10#include "hyperv.h"
10
11#include "sysemu/kvm.h"
12
13#include "qemu/error-report.h"
14
15static const VMStateDescription vmstate_segment = {
16 .name = "segment",
17 .version_id = 1,

--- 649 unchanged lines hidden (view full) ---

667 if (env->msr_hv_synic_sint[i] != 0) {
668 return true;
669 }
670 }
671
672 return false;
673}
674
11
12#include "sysemu/kvm.h"
13
14#include "qemu/error-report.h"
15
16static const VMStateDescription vmstate_segment = {
17 .name = "segment",
18 .version_id = 1,

--- 649 unchanged lines hidden (view full) ---

668 if (env->msr_hv_synic_sint[i] != 0) {
669 return true;
670 }
671 }
672
673 return false;
674}
675
676static int hyperv_synic_post_load(void *opaque, int version_id)
677{
678 X86CPU *cpu = opaque;
679 hyperv_x86_synic_update(cpu);
680 return 0;
681}
682
675static const VMStateDescription vmstate_msr_hyperv_synic = {
676 .name = "cpu/msr_hyperv_synic",
677 .version_id = 1,
678 .minimum_version_id = 1,
679 .needed = hyperv_synic_enable_needed,
683static const VMStateDescription vmstate_msr_hyperv_synic = {
684 .name = "cpu/msr_hyperv_synic",
685 .version_id = 1,
686 .minimum_version_id = 1,
687 .needed = hyperv_synic_enable_needed,
688 .post_load = hyperv_synic_post_load,
680 .fields = (VMStateField[]) {
681 VMSTATE_UINT64(env.msr_hv_synic_control, X86CPU),
682 VMSTATE_UINT64(env.msr_hv_synic_evt_page, X86CPU),
683 VMSTATE_UINT64(env.msr_hv_synic_msg_page, X86CPU),
684 VMSTATE_UINT64_ARRAY(env.msr_hv_synic_sint, X86CPU, HV_SINT_COUNT),
685 VMSTATE_END_OF_LIST()
686 }
687};

--- 398 unchanged lines hidden ---
689 .fields = (VMStateField[]) {
690 VMSTATE_UINT64(env.msr_hv_synic_control, X86CPU),
691 VMSTATE_UINT64(env.msr_hv_synic_evt_page, X86CPU),
692 VMSTATE_UINT64(env.msr_hv_synic_msg_page, X86CPU),
693 VMSTATE_UINT64_ARRAY(env.msr_hv_synic_sint, X86CPU, HV_SINT_COUNT),
694 VMSTATE_END_OF_LIST()
695 }
696};

--- 398 unchanged lines hidden ---