Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp549408pxb; Sat, 20 Feb 2021 12:37:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXklC1KrWv9Ewqkzx9Eo4FwObCI+GOOfzYul0NLQxliicRFnisu4hX6fyDcSFENfsk1Kxg X-Received: by 2002:a17:907:20e8:: with SMTP id rh8mr14658735ejb.119.1613853475884; Sat, 20 Feb 2021 12:37:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613853475; cv=pass; d=google.com; s=arc-20160816; b=Dtk/wjSJRvQYj701SrpXFhqztYtXa8NglreVGkeEGUJMzd19w4GiAe2hVavGhr+gNc E5gBkpevlpxLAMyXm6c+eITxIq5whcWOnghoABbLhG+4Wm4DKd65f42pWJXWzzxOaNtc KxdtMv15IGMrv6HMPHUt70MH14XZ9eIvzpqKUlxi5MFGstXjlKTwwegyEkaGx/CeWGKC Rn/DywPUlGKqVAiyFRy8vQUgDCcT10GRb/x43H97v9wBl5oONdZbQ/HNGAe8IorcLjzq rnYj360L/Wi1yb64Om3IdkWOaerqHnqn3u7lM65uGj5jdcZxjTdhFovThTqkzOaFdSJT ZnVQ== 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=Ttjp2TZJU+U2UIOOLpcWd1iIjWpC5sFOUFSHTnkE3mU=; b=Qv9/XhAmuXy5r3/SY9z6r7g5m3ipsl9T3A4zQM3x4ZYn9yPdIF+nMsr4Zw7/IPGfGh WoTpsR6PEyUkOlPuM3+H+8Bmt4FTHQqGydE/ggcJM8K4K6IXhR0MKcvhs+wfTpjQnhef DdyoqXj42R7dvQEBOdruD8QY0Qn1TgXo1zwDh6FlbuHqHe3ES5e5Ya/KCI5suijElXFh wjho8ABXV6zTf6057Rp3lkf56mDfTSnOE53B7bcEZAnoUvwAygduVGlLaKkfEdsv3dQM M85/oLmEd3uT44LF4WUXPAdQ2CUjWjKFXF6LT5tR4rTOuq3vC2YCVajcX7z2Em+mmGsN tlfg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="Mkj+XBr/"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HdDmoWIP; 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 r15si7346887edb.401.2021.02.20.12.37.33; Sat, 20 Feb 2021 12:37:55 -0800 (PST) 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="Mkj+XBr/"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HdDmoWIP; 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 S229838AbhBTUgu (ORCPT + 99 others); Sat, 20 Feb 2021 15:36:50 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:52696 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbhBTUgt (ORCPT ); Sat, 20 Feb 2021 15:36:49 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11KKYvIL099809; Sat, 20 Feb 2021 20:36:02 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=Ttjp2TZJU+U2UIOOLpcWd1iIjWpC5sFOUFSHTnkE3mU=; b=Mkj+XBr/1YTpPlMd+xsWqx3WOG0CI3Cu9sUzdnaG6M+/axHOrIc5hNQs9POEa3UWUeZK tIbHaosC+hfiY+ISKn4fTQfoS8u+9LtPdDC0FvSnKTQ0I8pqf2qS1/kWIoybjANsN+lM wpQlobBLTz/WcLmo3oacHaGMu0Luz31GkyjoeRWwN8G8caFJho7bqy3mAETvDPVY68hz Be878R8WJaJH26sObVpooLhzlbCZClRB27jCX4vG3pX67LRX559Kdy69WhL+A+7uJVP3 WyAVnKtrbCPRuXkzi3nOTZfg0RiKkyMMJNC8AH6ISF2GyvMtgAyjzKovWV0n7MqhNKbC 3A== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 36tqxb8ydu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 20 Feb 2021 20:36:01 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11KKYZGL001838; Sat, 20 Feb 2021 20:36:01 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam08lp2049.outbound.protection.outlook.com [104.47.73.49]) by aserp3030.oracle.com with ESMTP id 36trf9rxwg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 20 Feb 2021 20:36:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ENV4ehp03eIj0SSnQAs96rP91js2iu9jrzg41p7haHcRXOJiQIXF47u9HVUUPe8ySYf+XPhyCWVeXulOFZZRLKYjBGYRil+1Rt6NoSOCmMJhdQyIh++dr/VW1ZxBt31n/d0AuHgBL14XGNurj0cBNTpOdSY3vc36u54vZ7fmwm1DaoSizSA2BSoKFo/XpGt8SQqF39Wt2yi2WE1ayV3ZF1t8It8EzqPLkfcqhgcTCiPOMZB1x4isxAgiR2Bj2V/I+gmpjepeq/CLz8umgm6iyr78LM2GcAJ0n2jxpzMF8qH+Tf553q0KaA7//vC99XR3Y+O87Gkak9C9E6Lv7nv+RA== 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=Ttjp2TZJU+U2UIOOLpcWd1iIjWpC5sFOUFSHTnkE3mU=; b=XJPWrLwzVhhCjt6dB1iFqZXSDq8/UyvQPPvWGP1q7jMg4G/Y08GQACLs6CCcg7RWCGTU4KCEwJSl25TFQs5j6OqpIS2E4SzkEhEa9wG5tmCkD59ntyEG9LSdeI3tx84+sgtjDNOBs7zDo3YsJ8NypYjD4nCMCQ1C34GGdqsAl5vVowVBa+czHpwjBKcudyEqL99bugwqtu7scq1pnbfn64cKYOgOC561fj+wSkWOAP8l1ZXSkIoBLrjqy8daP2g2glFLx/3s2RmfMi2JyonygmyAAv1C95x7H8OPOCfQRO3Ndj4VJO8q3+DozDUQCiS6c6L4LIhqbeQ4lugsMqG77g== 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=Ttjp2TZJU+U2UIOOLpcWd1iIjWpC5sFOUFSHTnkE3mU=; b=HdDmoWIPSsjmQzb4UN2wxkzdCLK+mAo/TPEJvsbRq3Hx5sb/HFiasbo8cvmgMdmqv5h+Uxve0NBJePG+gt2qVWdndwK6dHOJUjG59/1P45/VNXw4DTMdtuNog3f3GPZ6CC6azmILWXjxVui+TfVgErhNdXpmWX0k6KDIHVS2LkQ= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oracle.com; Received: from BYAPR10MB3288.namprd10.prod.outlook.com (2603:10b6:a03:156::21) by BYAPR10MB3064.namprd10.prod.outlook.com (2603:10b6:a03:8c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.38; Sat, 20 Feb 2021 20:35:58 +0000 Received: from BYAPR10MB3288.namprd10.prod.outlook.com ([fe80::f489:4e25:63e0:c721]) by BYAPR10MB3288.namprd10.prod.outlook.com ([fe80::f489:4e25:63e0:c721%7]) with mapi id 15.20.3868.031; Sat, 20 Feb 2021 20:35:58 +0000 Subject: Re: [PATCH v3 8/8] xen/evtchn: use READ/WRITE_ONCE() for accessing ring indices To: Juergen Gross , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: Stefano Stabellini References: <20210219154030.10892-1-jgross@suse.com> <20210219154030.10892-9-jgross@suse.com> From: Boris Ostrovsky Message-ID: <3d3016a1-d1c8-32fe-40e5-e86e9c39b8cd@oracle.com> Date: Sat, 20 Feb 2021 15:35:53 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 In-Reply-To: <20210219154030.10892-9-jgross@suse.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [138.3.200.52] X-ClientProxiedBy: SN2PR01CA0064.prod.exchangelabs.com (2603:10b6:800::32) To BYAPR10MB3288.namprd10.prod.outlook.com (2603:10b6:a03:156::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.74.103.244] (138.3.200.52) by SN2PR01CA0064.prod.exchangelabs.com (2603:10b6:800::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Sat, 20 Feb 2021 20:35:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 38e3ba5d-f69d-4496-64ea-08d8d5df210e X-MS-TrafficTypeDiagnostic: BYAPR10MB3064: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1107; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JmNur/r+mfPuFR3uy7HQfIY4dJMDm32K+tC4fkVYY9O/h2j1eDhPN/u3vO38ZBmFrROe1U8MSmaIVvug4hSv7ftvTf8F7zZDW+XymXVm7TruEP4taT4joTMZxc8IimHzziVwa4blm/mrsDTWpt3NwIDzV67PhzycxjoYuaD/vkQfKtaFIxXiS9pNkWzKRN0k9hG89ysb2lo+qjew78eG2eaXc1x6pbyfsTsKdhM0Y26tWU0WUCo+PlcLiFZUF03WHMY0cZ8McXbpRge4zKIVdV3HjZoTVcFLC/n+YTjLB52+I6/lJOsDsdS8MgkNGKwkFegEyjGfjIDKpn7ZOSnSOt6qAVbKJ8Y0xxAuXlJykUqdzibJzot4RwrLEIFu90++DTSurHvECkYc4c6Dce2BpqJFOFeGGjIkehxQD9bVLyRucFEFAWr8GVgJD5g+hbiYKu2bhCHk8KRg3D1/klzO0vW8nI7msa01YvOrTmBRUgKTOYMu6JdWQBVzaCZ+oPbqqBsKrstlSeGqpyiB950UtJb8aIUCcUIWDu7vZoGpyoPkH9a/1vzPUj4aIhOPtFhEbWZJtSuNJe33+bYazOQqRw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB3288.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(39860400002)(396003)(376002)(366004)(346002)(136003)(36756003)(31686004)(66946007)(6666004)(53546011)(86362001)(66476007)(31696002)(4326008)(558084003)(478600001)(26005)(8676002)(83380400001)(2906002)(5660300002)(6486002)(956004)(316002)(186003)(2616005)(16526019)(16576012)(8936002)(44832011)(66556008)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?SFV3RW1TaldZZW9vamYvckZibjhWVllSU0RNaEQvTGZBNmhGQmhvVWJncmpw?= =?utf-8?B?YmV0MTV4TEV4bm5kbmZDVWpNMEJRamthRDlNSjZBQ01QZ0Nwd1Brb0hCSDdB?= =?utf-8?B?QktWaTNpYVB3dWpnTlZ5ZFdoSmFvRFRZQkVuQmxtWE5qTzZZNVhlRGZ4WTZO?= =?utf-8?B?b1N6SFpGVys3ZFpKQjJKNy9TMDA0aERXYjVpR2VRTU95K3h1UHU2bFRPZDJw?= =?utf-8?B?M09GekhobVpROFFpMDJYZVZLd0tVcTRvOExvMng3V1JxN3llemFtNHF2RllF?= =?utf-8?B?cVluQThNdHU1U1hiaFRlSjlVd01WLzZ2R2VhU1M1TXNxOVVXVk54SWtObVFZ?= =?utf-8?B?RHVOUDB3ekRuVlY5U2dWcUREMUJ3V0hJTVJhWktOODZyaFlyM2xSUEtOS3NQ?= =?utf-8?B?SzFQMkJKU0JRQkM5V1BBRlRUZ3JXN3RKaGN2Um1ya2xhc2w5V1B0RmxHeGJD?= =?utf-8?B?Y1JaYkV1ZjFHR3pWK1dIOW9jdm80QkUzZ2JoL3czRHgyQjVUV2ZYUjlTVnE1?= =?utf-8?B?eEVyWFVNTStmWEFpOUF3WG5VS1QvdDZpdXBhUXhTNXA1c0V3bkFxaE1sK21K?= =?utf-8?B?alE4c2Z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1Gd0dy?= =?utf-8?B?S3ErVC9oTzl6V2RHSk9QTHZ2bXRIRnJwYU41QmFwVkdENDYrZGV1blVPK1Ft?= =?utf-8?B?RE9CSFpLb0tmS3NSMTQ4MjFsTW41d3JQRHVhdDkvRHJYbndqczF3Q3g3d1Bz?= =?utf-8?B?NFdDZXpSRFpHUGNTOS9GZklBRlhwdVQvWmR5ZTNlcEhPVnVvYVpWc0ptNU1u?= =?utf-8?B?VUxNcEpqS1p0V01GTGFyYmRUemtPN2pRWVlDaVZwS0RDRS92VDNJOHBQblVq?= =?utf-8?Q?fWkkz4/Yoe60D6j3l4XfXMt0NZ8JT3C99GPhplB?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38e3ba5d-f69d-4496-64ea-08d8d5df210e X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3288.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2021 20:35:58.3918 (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: JvDUhs5L8jSNwSOs1xb63DldtmsFsyzjGLgwUI4GBh17dxlPrOTsLN1kSQufdCLha1geB5Z96EnRyy5dE7pYDEnSdi03F2kX1OKF0Bc53Q4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3064 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9901 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 phishscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102200192 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9901 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 priorityscore=1501 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102200192 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/21 10:40 AM, Juergen Gross wrote: > For avoiding read- and write-tearing by the compiler use READ_ONCE() > and WRITE_ONCE() for accessing the ring indices in evtchn.c. > > Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky