From nobody Thu Apr 25 15:16:05 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1560143837; cv=none; d=zoho.com; s=zohoarc; b=HgHG7zjKt0XTnF1RjNtCQxQWjZpDe9Jps/L3B9kgcWA+Ty1/G2u2ggKw8ThnER6iTyV3tloxSpaNHphpC5QI1f9Hw6+NhJGXsX9rNyS23DiC0NA8s8fnpX8fb4UXdD1+NJ36/GpOm7x9zcHpf3lBx+F2+/2CR8Ohj3Cwiithdto= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560143837; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=aEVsIzEbkIcqrbHzQa2poufqKERBS8JkjT/6PVh9Dio=; b=kpUX0BFkbk8dRfEhIC9B0nPQEYpvfXdRzRueVIFYKzjxWY62e5RWLk+yEvcUiKhbeqPrWM1aI4urId0bl793voDPzxNRgzqaeDClzyH8GOVxDwVQYbDIkFzs7dIuEDKBpyq3U1xV4A2CRwnIcTOKuYePFJkYReJXAOg+3CCkHXc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1560143837405754.7030725917995; Sun, 9 Jun 2019 22:17:17 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1haCf7-0006I8-MK; Mon, 10 Jun 2019 05:16:05 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1haCf6-0006I3-Ov for xen-devel@lists.xenproject.org; Mon, 10 Jun 2019 05:16:04 +0000 Received: from mxnavi-mail.mxnavi.com (unknown [116.90.87.199]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id d25bcde0-8b3e-11e9-a047-abdf9327b909; Mon, 10 Jun 2019 05:15:57 +0000 (UTC) Received: from localhost.localdomain (61.161.186.150) by mxnavi-mail.mxnavi.com (116.90.87.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Mon, 10 Jun 2019 13:12:44 +0800 X-Inumbo-ID: d25bcde0-8b3e-11e9-a047-abdf9327b909 From: Baodong Chen To: Date: Mon, 10 Jun 2019 13:15:47 +0800 Message-ID: <1560143748-11027-1-git-send-email-chenbaodong@mxnavi.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [61.161.186.150] X-ClientProxiedBy: mxnavi-mail.mxnavi.com (116.90.87.199) To mxnavi-mail.mxnavi.com (116.90.87.199) Subject: [Xen-devel] [PATCH] xen/arm: domain: remove redundant memset for arch's saved_context when creating vcpu X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Baodong Chen , Julien Grall , Stefano Stabellini Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Already done by clear_page() in alloc_vcpu_struct() Signed-off-by: Baodong Chen --- xen/arch/arm/domain.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c index ff330b3..ad1b106 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -557,7 +557,6 @@ int arch_vcpu_create(struct vcpu *v) - sizeof(struct cpu_info)); memset(v->arch.cpu_info, 0, sizeof(*v->arch.cpu_info)); =20 - memset(&v->arch.saved_context, 0, sizeof(v->arch.saved_context)); v->arch.saved_context.sp =3D (register_t)v->arch.cpu_info; v->arch.saved_context.pc =3D (register_t)continue_new_vcpu; =20 --=20 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel