diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-20 19:21:42 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-24 20:59:09 +0100 |
commit | 420ae1fc51c99abfd03b1c590f55617edd2a2bed (patch) | |
tree | a7ccaa34289e2c546e9acdd6cb33462950c0764d /target/i386/kvm_i386.h | |
parent | eab967935eef840cf778937f5627146b27fa26e4 (diff) |
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>
Diffstat (limited to 'target/i386/kvm_i386.h')
-rw-r--r-- | target/i386/kvm_i386.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/kvm_i386.h b/target/i386/kvm_i386.h index 7d0242f5fb..00bde7acaf 100644 --- a/target/i386/kvm_i386.h +++ b/target/i386/kvm_i386.h @@ -46,4 +46,5 @@ bool kvm_enable_x2apic(void); bool kvm_has_x2apic_api(void); bool kvm_hv_vpindex_settable(void); + #endif |