aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-i386/kvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index d8c89ba093..2412ae4340 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -100,6 +100,7 @@ static int kvm_has_msr_star(CPUState *env)
if (kvm_msr_list == NULL)
return 0;
+ kvm_msr_list->nmsrs = msr_list.nmsrs;
ret = kvm_ioctl(env->kvm_state, KVM_GET_MSR_INDEX_LIST, kvm_msr_list);
if (ret >= 0) {
int i;