Skip to content

Commit

Permalink
kvmvapic: fix state change handler
Browse files Browse the repository at this point in the history
This patch fixes kvmvapic state change handler.
It clears vmsentry field to allow recreating it
at further vmstate loads.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20160915090127.6440.48793.stgit@PASHA-ISP>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Dovgalyuk authored and bonzini committed Sep 15, 2016
1 parent 927d5a1 commit 46f5fea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/i386/kvmvapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ static void kvmvapic_vm_state_change(void *opaque, int running,
}

qemu_del_vm_change_state_handler(s->vmsentry);
s->vmsentry = NULL;
}

static int vapic_post_load(void *opaque, int version_id)
Expand Down

0 comments on commit 46f5fea

Please sign in to comment.