]> Git Repo - qemu.git/blobdiff - target-i386/kvm.c
target-i386: set eflags prior to calling svm_load_seg_cache() in svm_helper.c
[qemu.git] / target-i386 / kvm.c
index 4389959f610ddc83bb60c67b37bd867050263e09..d17eea3186a8a86b765052fa091a52b090b6d314 100644 (file)
@@ -130,14 +130,13 @@ static const struct kvm_para_features {
     { KVM_CAP_NOP_IO_DELAY, KVM_FEATURE_NOP_IO_DELAY },
     { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP },
     { KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
-    { -1, -1 }
 };
 
 static int get_para_features(KVMState *s)
 {
     int i, features = 0;
 
-    for (i = 0; i < ARRAY_SIZE(para_features) - 1; i++) {
+    for (i = 0; i < ARRAY_SIZE(para_features); i++) {
         if (kvm_check_extension(s, para_features[i].cap)) {
             features |= (1 << para_features[i].feature);
         }
This page took 0.023871 seconds and 4 git commands to generate.