]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
KVM: x86: Add support for save/load MSR_SMI_COUNT
authorLiran Alon <liran.alon@oracle.com>
Tue, 27 Feb 2018 10:22:12 +0000 (12:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Mar 2018 11:04:03 +0000 (12:04 +0100)
commite13713db5b609d9a83c9cfc8ba389d4215d4ba29
tree8fc8f5eeda5725a52c82d08e8eb4676292ef97b8
parent9f2d175db5c29b23bc1a560041043d0b10ee57dc
KVM: x86: Add support for save/load MSR_SMI_COUNT

This MSR returns the number of #SMIs that occurred on
CPU since boot.

KVM commit 52797bf9a875 ("KVM: x86: Add emulation of MSR_SMI_COUNT")
introduced support for emulating this MSR.

This commit adds support for QEMU to save/load this
MSR for migration purposes.

Signed-off-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm.c
target/i386/machine.c