Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp533478pxb; Fri, 29 Oct 2021 14:51:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqLpH8yHh5XTyhJof/yFMqC8VzIciFNONlxoHzlj+t9dfr4acclJmmTY72MCtcg+rY+UYO X-Received: by 2002:a05:6402:50cd:: with SMTP id h13mr18734744edb.27.1635544298062; Fri, 29 Oct 2021 14:51:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635544298; cv=pass; d=google.com; s=arc-20160816; b=ufFnvIUAU5Msr0/Nuru3BeW7AjfAuR8WzCthT5YKsCQJjcAV/IgdukZol3J4nE5X2F U0y6QMpAmnvxQim077S+GzSagGbSZj5leonlsGWq6qL1Dct8jrLInTfvK8Vh1w3+eGPn K7G58LuEJBpXIEscQLcUXTTDAOCHXkkZnaT0a/SuY828Y8/0Syaj9/X837WaNTnLUOUN 2uYNjPX5BtUU3ZSfgcGHLtunMH650Q/3LlC9OmZeSSenhv5i/2PTw6yvo31Zahkkfm+e IVbWe5uhiDHivzK5rAoaiIwBopSMJRf9+ei6d+no5qmGx0QWHSanSJabBbGzjkHJ5CZJ c1IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=xjh3VCLoupmxIzgdO5BP3ClEi4fylUi0ij0RRkludyQ=; b=0355QVXCFgAAv99HiMj4UPEWjxjDQTDAhVfN8PafMQbLE9yLi9ZRF+fx+7BOun9QNz +v7nNzKQN2YklTJrbUiNKQxyfOlvkQsOaib2GhrObwCuuXzosx4MSFIt0CxGrPNa9YbN GusLPcd9OnXkeHUh5cO6yNLslacdU4lisq7b+bV6GO/Q/miQA3uNeT0NgCP0veeG8sJ9 eDIhQwX3YVG/ZHDmrcJigJmA+2XZCvpVkDQ0Pv0c+QFSsZvb1+EuAsgh/ihnfFPH7Cc2 FqPy0W/t/7p7y116ylcubp7o++Q3O1OomEIjn/7OdLtIxPJljpso6sWDCmvrifNd74IB DK3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Gp17FPRX; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qGmbuGoo; 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 js8si13059249ejc.754.2021.10.29.14.51.14; Fri, 29 Oct 2021 14:51:38 -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-2021-07-09 header.b=Gp17FPRX; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qGmbuGoo; 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 S229441AbhJ2VtJ (ORCPT + 99 others); Fri, 29 Oct 2021 17:49:09 -0400 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:20352 "EHLO mx0a-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbhJ2VtI (ORCPT ); Fri, 29 Oct 2021 17:49:08 -0400 Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19TJjaXG028580; Fri, 29 Oct 2021 21:46:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=xjh3VCLoupmxIzgdO5BP3ClEi4fylUi0ij0RRkludyQ=; b=Gp17FPRXp9tPnuppIVk/2SUjCHFJ90mxmzGudoYSfevJ3Dpk1D8Kk6zkjX2Qy+F/T0e7 pM+5S6pTl4AtOVKkpKOFFHBpWaiWFelpMQxImkga/+kzvB3dVXLNBmEfDBYvVYvP9r3a pB6dA/rl4qew2RpLlJkooHsBremeML+B8LonCxAJb0pNd3aJnJASn4DKC9GxBRDldKyF C6bw+Nmykh9dpEJxFB2YulOtoF5C4vUXYNjw8QY2yQhitVWsRgEU1SSKQuRSTfGg+8kI 8aD4b754EMNrZF4LWf8hvwX30CG3A4meTlXmxEVycoESeagS6XfUhOZW6TJuGcuOdXyL og== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3byhqrhr12-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Oct 2021 21:46:30 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 19TLeAsS030561; Fri, 29 Oct 2021 21:46:27 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by userp3030.oracle.com with ESMTP id 3bx4h6fff8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Oct 2021 21:46:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bbl6W8qXkjHACMMgc+vQoBdnDOQoOAEQb3ODicDzs2QRn2Q7H8JWBzLRauMLL+rHLcyZT+5K6+lHeR9jdX7Vq3r/ftDJzox4SxtSMrFhljbvNOx7xztFzIANaUtC4ptCo0OnHXQ8VpNk9b8uMzZ5JawfB/46/H2tgjnjTI+LbzEDEkzytXGxlobqy4Ueg2XK7XJ65KQTINDXgaQF87CcEqt90AiwMfAKThtNbpSFcBGHO6xmn+UcRodqOE+DYjqyK1ZPpps1crL7/bm9zDBvbXr7vdqou3ELctPfLTwfu28d+C1tfNgxRwQinwPxsL+Epew3Yie7cXk5OBL1fNRuiA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xjh3VCLoupmxIzgdO5BP3ClEi4fylUi0ij0RRkludyQ=; b=AI3a45GK2ikizd/bdYzKsCDj+i8S6AO/KU/morV6KQ5efzZP3/vV5sK7zlT/TKnmtptHrADJpGV6d7p0MzIszfafJa0SL7YIjpA24rygGk/CLMUfJPw0UkFqeZ8g0C+azqk11OfUZofNcPFO/kq9PZ2TQGaIyaZ0jr172wwut8uhWXT3vTCNvY2kY3nwu8WB+fFLZVz8S0FXq9s8ZNVaVfqHPukyQcZALzT3iqCgY5vz9OWA+RSMlQO9gt/XZ3SfSuzpKd5a+gMRysu5spzwwMlpgiZibgZypDCnp0hFgek7IucCQWIIzWTcbYfx7GpgVnS0IpEuHqf5G8C4/+sqVQ== 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=xjh3VCLoupmxIzgdO5BP3ClEi4fylUi0ij0RRkludyQ=; b=qGmbuGooXZYYV4vZ/+Mhhz78eqxHDya/tWsIQqr4+HkOMtQOhuXrel25QZFf6io/lCTyuRb57x0Xrgf/OKIgKEjiCAK9R28IQUXijZ5qalYBIcwss+zSrHl2RT1Q5bjfX98nk7mvdt65NzQP6q2XO5eCPCZJoY15tCwA3eRs8vA= 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 MN2PR10MB4029.namprd10.prod.outlook.com (2603:10b6:208:186::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Fri, 29 Oct 2021 21:46:25 +0000 Received: from BLAPR10MB5009.namprd10.prod.outlook.com ([fe80::3c49:46aa:83e1:a329]) by BLAPR10MB5009.namprd10.prod.outlook.com ([fe80::3c49:46aa:83e1:a329%6]) with mapi id 15.20.4649.015; Fri, 29 Oct 2021 21:46:25 +0000 Message-ID: <11956c14-f1f7-70f0-40a6-aad31a264af6@oracle.com> Date: Fri, 29 Oct 2021 17:46:18 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH v3] xen/balloon: add late_initcall_sync() for initial ballooning done Content-Language: en-US To: Juergen Gross , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: Stefano Stabellini , stable@vger.kernel.org, =?UTF-8?Q?Marek_Marczykowski-G=c3=b3recki?= References: <20211029142049.25198-1-jgross@suse.com> From: Boris Ostrovsky In-Reply-To: <20211029142049.25198-1-jgross@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN6PR2101CA0016.namprd21.prod.outlook.com (2603:10b6:805:106::26) To BLAPR10MB5009.namprd10.prod.outlook.com (2603:10b6:208:321::10) MIME-Version: 1.0 Received: from [10.74.111.7] (138.3.200.7) by SN6PR2101CA0016.namprd21.prod.outlook.com (2603:10b6:805:106::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.2 via Frontend Transport; Fri, 29 Oct 2021 21:46:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fe358997-26eb-43c5-55ed-08d99b258df1 X-MS-TrafficTypeDiagnostic: MN2PR10MB4029: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +nJA+QETYhBnlRxj5tSRSqTkjAdo0LMIMhmfch55DYbEXpuvGu9/y1UOLZz9MutEtm/Gs8qWXCc59kJJ5RQ2D0kCnHvT3K19WkOFXHZUPhBCnttvi7GaLSX9IeosMy8jTYYoK6U3aHM6r1G4lPWC4YmDHOatOcfEnMXqvPnOJHSMw1DnSt7vLwnEPoJfDCareNHHKYIpsm0Iw5GY/vBIw3dd5VEz9PcJO1BmiRvBhBUx9OD+Lr267noXeFaJJX/nOV3RxXa4RHtpyfMBO2rB4uh70wOB6QVTlyl7hy8Kav68f1YGc4+lcNXGDvrU3YJTY7WlmQ7k4rAXTA73OuGncWjIhNsJzcHzNQ8LMFpuqN3TmXRPH6QEnbPfT+UjETb+aaSrQM4assQIng8JdYXFpKDr4YFeW2p3Tj+wRpkVFrP/XG/ItKVHbTy2dgHxfdyhWbfjvd3q0+nem1HODLTkxvIgKa52BO8XCVvyf2TQTAa/X/q3SJvskFTuhMuoMm8vN+dxy1JVvxjbdpdOxLVaP/UfW3Qu5yZgmiZ1aNBd+Dik1OyNq88y6qVH1zZZomMewy8xhvlpOFtDyNTciX5uGYINBFg3MTQusa69/+lfCS2CbYbJ3+TmjUt4HGbt600VsHewLxdedwQx1G2R6Xr0Bx80wz68RipZbUvXxxCI4DdZRqvD79vuLmaKO6EOivaE5wAn5yKgO3ZyvGCMSGR2nSyA8FkAnlWpbF1MpEVMM4uWG/hqBTcqYl4/x0hi/oe9 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:(366004)(6486002)(53546011)(36756003)(26005)(186003)(31686004)(2906002)(4326008)(508600001)(8936002)(2616005)(44832011)(83380400001)(66946007)(66476007)(66556008)(86362001)(956004)(5660300002)(16576012)(38100700002)(54906003)(31696002)(8676002)(6666004)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MHFCdE1CZDdYRlI4eWhxUWNGZytNWTNMbXgxa0p6Q01vM0VOVDBFOFNmK0x5?= =?utf-8?B?eE84TU0xN3B4cklxRVR6YjZpRy9ndGl1M0laWW9WbnRsdVM2SzAvK2pKb3li?= =?utf-8?B?S2RqUTE4WmFuajhxQjcwZHZxYVZIcVJUUW1IdFZycmdlWTBlUDZxcWdNWG9n?= =?utf-8?B?d0Zhb1pWWkV2SUd6aVFCMHpCMExEcnBBeVFvSitCZDkra2RQeHNCcDk5T08r?= =?utf-8?B?dWlheVRiNm02bHE5U25RM2thKzBHTktrVmlmd0w0ZWFMaGNVYXREMGQ2dTlJ?= =?utf-8?B?OU5aUVpCUER2cDhsQlhpbmpnTFpHelZTV3FVZDhUMVJFUkYybUJSdWxqWS82?= =?utf-8?B?NnBXZERORnRtZnlOMEdCS2hhQTNLVXJReXZmQ25sVmx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USTFvQWJRR0dhOURzTXZRckJXWXRCYm9mMm5s?= =?utf-8?B?SDB4bHFCOXJQODZrVFFwY2NkRktnPT0=?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe358997-26eb-43c5-55ed-08d99b258df1 X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5009.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2021 21:46:24.8389 (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: VT2TRdoxL967hFSaEZq4CDhXZgCUmSQJBUD59+lMzOvDaJdBdEbVobwct9yPUdc8wEdBpVm7VLvBfvmopjyePVRhFLb655fcrcoxz9kt0kQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4029 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10152 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 suspectscore=0 mlxscore=0 adultscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2110290120 X-Proofpoint-GUID: ih75n44LEzAuxc5fujNyjz6BAbENJBSn X-Proofpoint-ORIG-GUID: ih75n44LEzAuxc5fujNyjz6BAbENJBSn Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/29/21 10:20 AM, Juergen Gross wrote: > --- a/Documentation/ABI/stable/sysfs-devices-system-xen_memory > +++ b/Documentation/ABI/stable/sysfs-devices-system-xen_memory > @@ -84,3 +84,13 @@ Description: > Control scrubbing pages before returning them to Xen for others domains > use. Can be set with xen_scrub_pages cmdline > parameter. Default value controlled with CONFIG_XEN_SCRUB_PAGES_DEFAULT. > + > +What: /sys/devices/system/xen_memory/xen_memory0/boot_timeout > +Date: November 2021 > +KernelVersion: 5.16 > +Contact: xen-devel@lists.xenproject.org > +Description: > + The time (in seconds) to wait before giving up to boot in case > + initial ballooning fails to free enough memory. Applies only > + when running as HVM or PVH guest and started with less memory > + configured than allowed at max. How is this going to be used? We only need this during boot. > > - state = update_schedule(state); > + balloon_state = update_schedule(balloon_state); Now that balloon_state has whole file scope it can probably be updated inside update_schedule(). > + while ((credit = current_credit()) < 0) { > + if (credit != last_credit) { > + last_changed = jiffies; > + last_credit = credit; > + } > + if (balloon_state == BP_ECANCELED) { What about other states? We are really waiting for BP_DONE, aren't we? -boris > + pr_warn_once("Initial ballooning failed, %ld pages need to be freed.\n", > + -credit); > + if (jiffies - last_changed >= > + HZ * balloon_stats.boot_timeout) > + panic("Initial ballooning failed!\n"); > + } > +