mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
0bed3bba7d
commit
1480b74f9a
|
@ -764,28 +764,23 @@ int kvm_init(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
s->vcpu_events = 0;
|
|
||||||
#ifdef KVM_CAP_VCPU_EVENTS
|
#ifdef KVM_CAP_VCPU_EVENTS
|
||||||
s->vcpu_events = kvm_check_extension(s, KVM_CAP_VCPU_EVENTS);
|
s->vcpu_events = kvm_check_extension(s, KVM_CAP_VCPU_EVENTS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
s->robust_singlestep = 0;
|
|
||||||
#ifdef KVM_CAP_X86_ROBUST_SINGLESTEP
|
#ifdef KVM_CAP_X86_ROBUST_SINGLESTEP
|
||||||
s->robust_singlestep =
|
s->robust_singlestep =
|
||||||
kvm_check_extension(s, KVM_CAP_X86_ROBUST_SINGLESTEP);
|
kvm_check_extension(s, KVM_CAP_X86_ROBUST_SINGLESTEP);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
s->debugregs = 0;
|
|
||||||
#ifdef KVM_CAP_DEBUGREGS
|
#ifdef KVM_CAP_DEBUGREGS
|
||||||
s->debugregs = kvm_check_extension(s, KVM_CAP_DEBUGREGS);
|
s->debugregs = kvm_check_extension(s, KVM_CAP_DEBUGREGS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
s->xsave = 0;
|
|
||||||
#ifdef KVM_CAP_XSAVE
|
#ifdef KVM_CAP_XSAVE
|
||||||
s->xsave = kvm_check_extension(s, KVM_CAP_XSAVE);
|
s->xsave = kvm_check_extension(s, KVM_CAP_XSAVE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
s->xcrs = 0;
|
|
||||||
#ifdef KVM_CAP_XCRS
|
#ifdef KVM_CAP_XCRS
|
||||||
s->xcrs = kvm_check_extension(s, KVM_CAP_XCRS);
|
s->xcrs = kvm_check_extension(s, KVM_CAP_XCRS);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue