]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/kvm/kvm.c
target/i386: kvm: initialize feature MSRs very early
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jan 2020 18:21:42 +0000 (19:21 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 19:59:09 +0000 (20:59 +0100)
commit420ae1fc51c99abfd03b1c590f55617edd2a2bed
treea7ccaa34289e2c546e9acdd6cb33462950c0764d
parenteab967935eef840cf778937f5627146b27fa26e4
target/i386: kvm: initialize feature MSRs very early

Some read-only MSRs affect the behavior of ioctls such as
KVM_SET_NESTED_STATE.  We can initialize them once and for all
right after the CPU is realized, since they will never be modified
by the guest.

Reported-by: Qingua Cheng <qcheng@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1579544504-3616-2-git-send-email-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm.c
target/i386/kvm_i386.h