]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: kvm: initialize feature MSRs very early
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jan 2020 18:21:42 +0000 (19:21 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 22 Jun 2020 17:48:19 +0000 (12:48 -0500)
commitcd8ecfb19cbbdd13f2b2e210c88485bf5f15c51c
tree95c7627dccc59b97f2e3b4009e985c4d6b03ec36
parentabf9ffa7b3dd0d621c0cf5596cd59949ad66d81a
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>
(cherry picked from commit 420ae1fc51c99abfd03b1c590f55617edd2a2bed)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/i386/kvm.c
target/i386/kvm_i386.h