KVM: PPC: Initialize linears with zeros
RMAs and HPT preallocated spaces should be zeroed, so we don't accidently leak information from previous VM executions. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
b4e706111d
commit
b7f5d0114c
1 changed files with 1 additions and 0 deletions
|
@ -152,6 +152,7 @@ static struct kvmppc_linear_info *kvm_alloc_linear(int type)
|
|||
break;
|
||||
}
|
||||
spin_unlock(&linear_lock);
|
||||
memset(ri->base_virt, 0, ri->npages << PAGE_SHIFT);
|
||||
return ri;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue