Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752983AbbEBTJW (ORCPT ); Sat, 2 May 2015 15:09:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44341 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752884AbbEBTJT (ORCPT ); Sat, 2 May 2015 15:09:19 -0400 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ekaterina Tumanova , David Hildenbrand , Christian Borntraeger Subject: [PATCH 4.0 029/220] KVM: s390: Zero out current VMDB of STSI before including level3 data. Date: Sat, 2 May 2015 20:59:04 +0200 Message-Id: <20150502185855.646099396@linuxfoundation.org> X-Mailer: git-send-email 2.3.7 In-Reply-To: <20150502185854.333748961@linuxfoundation.org> References: <20150502185854.333748961@linuxfoundation.org> User-Agent: quilt/0.64 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1288 Lines: 37 4.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ekaterina Tumanova 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 Reviewed-by: David Hildenbrand Signed-off-by: Christian Borntraeger Signed-off-by: Greg Kroah-Hartman --- arch/s390/kvm/priv.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c @@ -476,6 +476,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; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/