aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-06-08 16:11:00 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2011-06-20 15:17:55 -0300
commit1480b74f9a9b13dc3d9bcc4318461b02f86799f8 (patch)
treec81e8675e785fe37510150aeb0ad55a4178439fd /kvm-all.c
parent0bed3bba7d68b35e4b0c63d597b377c49a14e509 (diff)
downloadqemu-1480b74f9a9b13dc3d9bcc4318461b02f86799f8.zip
qemu-1480b74f9a9b13dc3d9bcc4318461b02f86799f8.tar.gz
qemu-1480b74f9a9b13dc3d9bcc4318461b02f86799f8.tar.bz2
kvm: Drop useless zero-initializations
Backing KVMState is alreay zero-initialized. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 106eb3a..4a9910a 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -764,28 +764,23 @@ int kvm_init(void)
}
#endif
- s->vcpu_events = 0;
#ifdef KVM_CAP_VCPU_EVENTS
s->vcpu_events = kvm_check_extension(s, KVM_CAP_VCPU_EVENTS);
#endif
- s->robust_singlestep = 0;
#ifdef KVM_CAP_X86_ROBUST_SINGLESTEP
s->robust_singlestep =
kvm_check_extension(s, KVM_CAP_X86_ROBUST_SINGLESTEP);
#endif
- s->debugregs = 0;
#ifdef KVM_CAP_DEBUGREGS
s->debugregs = kvm_check_extension(s, KVM_CAP_DEBUGREGS);
#endif
- s->xsave = 0;
#ifdef KVM_CAP_XSAVE
s->xsave = kvm_check_extension(s, KVM_CAP_XSAVE);
#endif
- s->xcrs = 0;
#ifdef KVM_CAP_XCRS
s->xcrs = kvm_check_extension(s, KVM_CAP_XCRS);
#endif