valgrind/i386: avoid false positives on KVM_SET_XCRS ioctl
struct kvm_xcrs contains padding bytes. Let's use a designated initializer to avoid false positives from valgrind/memcheck. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b0a0551283
commit
bdfc8480c5
|
@ -1085,7 +1085,7 @@ static int kvm_put_xsave(X86CPU *cpu)
|
||||||
static int kvm_put_xcrs(X86CPU *cpu)
|
static int kvm_put_xcrs(X86CPU *cpu)
|
||||||
{
|
{
|
||||||
CPUX86State *env = &cpu->env;
|
CPUX86State *env = &cpu->env;
|
||||||
struct kvm_xcrs xcrs;
|
struct kvm_xcrs xcrs = {};
|
||||||
|
|
||||||
if (!kvm_has_xcrs()) {
|
if (!kvm_has_xcrs()) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue