[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/8] target-i386: Remove unused data from local array
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 1/8] target-i386: Remove unused data from local array |
Date: |
Sat, 10 May 2014 08:50:45 +0200 |
From: Stefan Weil <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
target-i386/kvm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 7a295f6..114f9e1 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -130,14 +130,13 @@ 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);
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/8] KVM changes for 2014-05-08, Paolo Bonzini, 2014/05/10
- [Qemu-devel] [PULL 1/8] target-i386: Remove unused data from local array,
Paolo Bonzini <=
- [Qemu-devel] [PULL 2/8] kvm: add set_one_reg/get_one_reg helpers, Paolo Bonzini, 2014/05/10
- [Qemu-devel] [PULL 3/8] pci-assign: Fix a bug when map MSI-X table memory failed, Paolo Bonzini, 2014/05/10
- [Qemu-devel] [PULL 4/8] pci-assign: limit # of msix vectors, Paolo Bonzini, 2014/05/10
- [Qemu-devel] [PULL 5/8] target-i386: set eflags prior to calling svm_load_seg_cache() in svm_helper.c, Paolo Bonzini, 2014/05/10
- [Qemu-devel] [PULL 6/8] target-i386: set eflags and cr0 prior to calling cpu_x86_load_seg_cache() in smm_helper.c, Paolo Bonzini, 2014/05/10
- [Qemu-devel] [PULL 7/8] target-i386: set eflags prior to calling cpu_x86_load_seg_cache() in seg_helper.c, Paolo Bonzini, 2014/05/10
- [Qemu-devel] [PULL 8/8] target-i386: the x86 CPL is stored in CS.selector - auto update hflags accordingly., Paolo Bonzini, 2014/05/10
- Re: [Qemu-devel] [PULL 0/8] KVM changes for 2014-05-08, Cornelia Huck, 2014/05/13