Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3974255pxj; Tue, 11 May 2021 16:40:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOa42wc9KD5j7mQGvM947P+cgE8QK9XrD9dahAPTJ/XHCOFMsrFZPfqWHbE0srRkc5DaM6 X-Received: by 2002:a4a:8706:: with SMTP id z6mr7667234ooh.41.1620776403800; Tue, 11 May 2021 16:40:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620776403; cv=pass; d=google.com; s=arc-20160816; b=HRYGyFJX/HwdtJ0qbBI+BJYYRHQ4dge89lzVp3htgNVoDW13RFExTjgdzeK2MIvXgO CIIJ7WYSmYi+75BOsw8gXAlh1OHwwYqNyLRA7vBpbIY6BBTQBgwu/WGgBzpjtRi2INGk fC9YR9xYUg+PzdVi4F0y9LsgLH876JCA9YvVy2iUR0euZ4BSF2FvUUhetvLIf4zhJEYK 7yefOKy4ED/aPr+jceBiCuplEmI53JSa0bNx3NwHZ+72feEN1UiaDZQiOg69NMjfKSJy 69WBs5w/EiIiODd7BgQtCT2SKNrnVaUvfhCqTgCAgRiquwXHp1pL7ZnyoBoPT6yzt5uz UPvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature:dkim-signature; bh=irCO4qVBrM4lVCwQYKC+QoX0RJqaChwsrUA4h8A5Qqo=; b=OHoLxrHwGEx53ermqNVvZSwWIfowtz3xRoBN5EGUx+FXU2+bQJZJowS7GTAD2MKNfo NYSbiouBKvlPifh9ujA1OiE7kmX71HPcrICUW5LwvVNjH6BkyD3zEKZpZSuvCKA4lAG1 8yMfSJhUNB0xgrrFsrsLF0reK3qWXCLpnDH2a39GY5PQs1J0t8yhpF1BwUvCGeqY7Ixz 6M2nZJ56yjtjo2IEvQ8OhLqcth1Gg/eiF2x9TTrnU/YfmeGzYxhkpiR8g4FT/wK3YV79 Em8A4wHMLqIWhI6ZpDLp75ARMoN78+vFowX+JDrGSNa8qmzgHSdQgM1pMPvyHKox2n5f VrFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=RY9C9vjQ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=pP9iJ8s2; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 140si19652116oie.186.2021.05.11.16.39.50; Tue, 11 May 2021 16:40:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=RY9C9vjQ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=pP9iJ8s2; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbhEKXjR (ORCPT + 99 others); Tue, 11 May 2021 19:39:17 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:39842 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbhEKXjQ (ORCPT ); Tue, 11 May 2021 19:39:16 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14BNTmml132625; Tue, 11 May 2021 23:37:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=irCO4qVBrM4lVCwQYKC+QoX0RJqaChwsrUA4h8A5Qqo=; b=RY9C9vjQeNi3CEArAhRB3IiJ4my6kG0BLxm9IfNaamE9RdH8i5f+nN8EqQyOWphAqrQF FJJBsXDFe4WLdLzwkBrSqA+CoqEMPNAhWH2PaNSZJvVnB7StC4lDQtKU+cH4hopKfG86 kkLLxkHxbuOQVuOw1skpx/wYQR9VDDw5kVX4q524To9uCqN15K4Mumaokw3+W4z+NWH0 NdegfunNkypw7gr2r0l+lAUJ1GImdEPZCSjihh+yafeLrTpRU74qqVU/CjiHFYbPmGYv 7nO7ZuEkFS627MNRw1y1eczGtIsF7mm30SP9GLNwE4r/gYOAXHC9L2E0br3jvnSVH69y OA== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 38dk9ngd8p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 May 2021 23:37:54 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14BNYfMe123177; Tue, 11 May 2021 23:37:53 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2046.outbound.protection.outlook.com [104.47.66.46]) by aserp3020.oracle.com with ESMTP id 38djfa7752-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 May 2021 23:37:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SQfoalej1RPBYf91mJTpvVqadzgkICCP495QHoDxLx7eHr5JLIvc2c8X18zxcx8NS2vqARAgsLkhkUcZ5oU9HGK6vqYg1yGgYd6algiorog/v4yDX7t5+foEzMrtDGyAnP402r+cG96nAFHlL1zczqe9qNk4fP/Q7EH1uBs09f6wGO7S6ntghlFc6MScVsuHtUX+WvGmHIzmJMUgBwFgoy/ZvDNCk+2WMeMuOCnceMY7DZI+XcZyo7/A63pW91nSjQMeXLbN+LZZ8rBvbx6pfZ+gOUdWPZ+zohwnkk3MBOPcYb8y1uW4Y6Q6hTbHeNhvk4rYUH7WVeO0dV1EsdkVYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=irCO4qVBrM4lVCwQYKC+QoX0RJqaChwsrUA4h8A5Qqo=; b=WzUO2Pj8iCpMFeaRU69b3o6PUuegbozSUwgJl5ioawyuQhhyZmNOQU19fosIxvAsCNJ2Zqu0aEWdqN3BJM0qx+CYxcW2/Xhptgg5ETVSCQSgmS19YRaKeLjZxBxdWMDCaanEYLbcD7INfuD/6GjPXISkoDq8tuY43k74+Wf6TY80r9Q385TfFka0deRJft+MA/ZbPQCGjIWrmoRGKiyDeagU9jHZsqS4DxJFPjo3qOcoQD5U/eTE0KFNAU3MLFzqEHROuooni1f5BBHw8HdMspNvOQ0VOCEhMfSmbBRAsC6Ist+X7MVCzcPamGQz8nkj+jcI6lj/tU7WishlzXrg4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=irCO4qVBrM4lVCwQYKC+QoX0RJqaChwsrUA4h8A5Qqo=; b=pP9iJ8s2hgcnXcQxsKpcZwHjp7c3ISaTQHhaK5ck9xka6mGypd/TGvGa5C/WURpXDuL2QDcxfhZ1ox+fTDKImyZDIPjrHgyd2YKLokQ3Uzfv5TEHUFDVnn1cgutMcK2rmyjjDJGZEHfNsSC7LFVBWKEOJgWBoKCIfAhIRCqfzT4= Authentication-Results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=oracle.com; Received: from BLAPR10MB5009.namprd10.prod.outlook.com (2603:10b6:208:321::10) by BLAPR10MB5203.namprd10.prod.outlook.com (2603:10b6:208:30d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.26; Tue, 11 May 2021 23:37:51 +0000 Received: from BLAPR10MB5009.namprd10.prod.outlook.com ([fe80::78a3:67d:a8ca:93cf]) by BLAPR10MB5009.namprd10.prod.outlook.com ([fe80::78a3:67d:a8ca:93cf%7]) with mapi id 15.20.4129.025; Tue, 11 May 2021 23:37:51 +0000 Subject: Re: [PATCH 2/2] xen/swiotlb: check if the swiotlb has already been initialized To: Stefano Stabellini , xen-devel@lists.xenproject.org Cc: hch@lst.de, linux-kernel@vger.kernel.org, Stefano Stabellini , jgross@suse.com References: <20210511174142.12742-2-sstabellini@kernel.org> From: Boris Ostrovsky Message-ID: <2e5a684b-3c74-5efc-2946-8ca002894ab4@oracle.com> Date: Tue, 11 May 2021 19:37:47 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 In-Reply-To: <20210511174142.12742-2-sstabellini@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [160.34.89.70] X-ClientProxiedBy: SN6PR01CA0014.prod.exchangelabs.com (2603:10b6:805:b6::27) To BLAPR10MB5009.namprd10.prod.outlook.com (2603:10b6:208:321::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.74.101.70] (160.34.89.70) by SN6PR01CA0014.prod.exchangelabs.com (2603:10b6:805:b6::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Tue, 11 May 2021 23:37:50 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cec55a77-a621-4bf3-8fe9-08d914d5caac X-MS-TrafficTypeDiagnostic: BLAPR10MB5203: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1284; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G5MqafTlTjzjlSDUk6SQtohQAGOm9+0w4W/EgVgYQnHDkGyuzVwvQv/4lBqEKIDB0GpDmgL7OcfS15pD8fJfneatMzEemxXODT/fifR6HXKMINRnmNKVQtXSKwswnZkGRJncLf/GKYd7P86zr+5Rg1SUoIJ0sDr1luG/bv6ZiREw+dbRg7x6KOL7ja8IBJY8u4tQ/83dIf3TTlsurrzZFOaWF7gf0qkJRijcRTbn0S+kKG0jgCHVJC/DwyRShXzmKYSHciGKF6ldis/2/y+9M5FMQX6cUnPL6H4AX2vcYHg0tpP6kNcy9tZ2U5mqWTIfkO9RR601BusroAVXX/a4UoZebGT/ETQslg8P/pyh05C59SnOfpbWzAReDQ8Go8RaY3HWdHyVVmkGuJwwB83OqnPs/RrbeeUbFIehjKbbZab1U5HA8Wix4jCdejA4R8RdEtsVguW/fUmdZzIv272RnERBaHQOZMRiSgJImKJNwwLJmkkmT+dW17VMyCjurs7llFWeRgG+g+LiJnH7MEGxdmWRVNjC2GVkjy8M752kfJo/3dNjHrtWqIX0dhlG3JMiep0AL5LqNazUOJgchg+1Zu/6tdGXrQ/GMDaPIAmEDeiYOxaD3sTVzRN4GBRivwLuIZZCo7zutxZOPB02zvqo8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BLAPR10MB5009.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(39860400002)(136003)(366004)(376002)(346002)(396003)(6666004)(2616005)(16576012)(316002)(83380400001)(38100700002)(478600001)(53546011)(2906002)(86362001)(26005)(8676002)(8936002)(186003)(4744005)(956004)(16526019)(31696002)(5660300002)(36756003)(44832011)(4326008)(66476007)(66556008)(6486002)(31686004)(66946007)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?a0pJdzBPc21jWUJPM0p0YmlzZTJmRU1jeHY4VkxZdkNSeHdtekNJd3JCRDBV?= =?utf-8?B?Q1crWmlWdFNFMVZJdTlKQy9zeVNvZzRYdWlGUHV0MG1ZZkhNVFpMajhveDkv?= =?utf-8?B?dHQ3Z3UvMXIvdzhoYUJSWWZZQ2Y3U0JaV1BHOGhtYmVKVDEvWDNIVSs3ZDlv?= =?utf-8?B?T1h6SncyMnFvM3ZZOHhjQTI5MFlBOStibFlwTFpGSkhFOXlaMGgxaHJtZk8y?= =?utf-8?B?cGZqS1VhZUNyQ3hxNGpOZUxLUnpQUFAwVFFjamJsVGMraGZpSk4wa3l0TEsv?= =?utf-8?B?Mm52eHlpdFN5bm5jNFVQbkJBZFMvTWNCU1NFclNTakJSN2dGN3h4T2NzYW50?= =?utf-8?B?TytyKy95S1hqNkZ2M3RHcnByWGFYbXJNMlNzVWpwRDgxbmE1ekpRRzkrc0tH?= =?utf-8?B?TXFickkxMXhMc1kwVnVheUg4SjZremNCclVRQXI2RjlGTHptK2Q0Z2FSU3ZI?= =?utf-8?B?NjRmckVnVTBCNFkvamNOQW9mSURLeWhQbVZpcVhzY1huK2ExLytPQWlvZTdR?= =?utf-8?B?U2J3bUViemluaHJaVDg2ME93S0ZyUStmYkQyc2RiUjdJM3U4all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Ka2hoVEpIUGNzSHFiUGow?= =?utf-8?B?MFBZTkl5UDFwdEEraXlJckIwaEp4T1dxRkExMUdjNDhKSnRoMmZqdDNpUHNK?= =?utf-8?B?NDRWelNBRTJ1L3k3Y0k0OGlxWEV1MWUxSkdlc2Nod21wcEUvMkJmV0hWdjY4?= =?utf-8?B?ZkZKcFdReFp6dW93NmJ5azV1UWVyMUYwUHdGOTNXTkJsd1hoVXZDTnpGSEJm?= =?utf-8?B?VHFQeEZwN0t4SlFoS0llRHJLelFUY09KTnBCbEoreHJhQXdkczNSM21VaEZ0?= =?utf-8?Q?MiaLvFGcerii1s6W4q5WdUz/5GRIcAjm5Ac/KZs?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: cec55a77-a621-4bf3-8fe9-08d914d5caac X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5009.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2021 23:37:51.3170 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: f/jZDIUll8I0QBETjgtHdFjKDxvEW51dCqPQrGrmWSbXqYohrzzBYfN02cA5zYqziDa1lL8CPNXmTa1yUzGQLdr4rMowPqy9zhQJ/RsonbU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5203 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9981 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105110163 X-Proofpoint-ORIG-GUID: KWfdH2ZqUXOLnCS__Dkg-fvavUPeYhp- X-Proofpoint-GUID: KWfdH2ZqUXOLnCS__Dkg-fvavUPeYhp- X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9981 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 adultscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 priorityscore=1501 clxscore=1011 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105110162 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/11/21 1:41 PM, Stefano Stabellini wrote: > --- a/drivers/xen/swiotlb-xen.c > +++ b/drivers/xen/swiotlb-xen.c > @@ -164,6 +164,11 @@ int __ref xen_swiotlb_init(void) > int rc = -ENOMEM; > char *start; > > + if (io_tlb_default_mem != NULL) { > + printk(KERN_WARNING "Xen-SWIOTLB: swiotlb buffer already initialized\n"); pr_warn(). Reviewed-by: Boris Ostrovsky