lkml.org 
[lkml]   [2015]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.10 08/65] KVM: s390: Zero out current VMDB of STSI before including level3 data.
    Date
    3.10-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Ekaterina Tumanova <tumanova@linux.vnet.ibm.com>

    commit b75f4c9afac2604feb971441116c07a24ecca1ec upstream.

    s390 documentation requires words 0 and 10-15 to be reserved and stored as
    zeros. As we fill out all other fields, we can memset the full structure.

    Signed-off-by: Ekaterina Tumanova <tumanova@linux.vnet.ibm.com>
    Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
    Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/s390/kvm/priv.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/arch/s390/kvm/priv.c
    +++ b/arch/s390/kvm/priv.c
    @@ -328,6 +328,7 @@ static void handle_stsi_3_2_2(struct kvm
    for (n = mem->count - 1; n > 0 ; n--)
    memcpy(&mem->vm[n], &mem->vm[n - 1], sizeof(mem->vm[0]));

    + memset(&mem->vm[0], 0, sizeof(mem->vm[0]));
    mem->vm[0].cpus_total = cpus;
    mem->vm[0].cpus_configured = cpus;
    mem->vm[0].cpus_standby = 0;



    \
     
     \ /
      Last update: 2015-05-02 22:21    [W:3.295 / U:0.580 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site