From nobody Wed Nov 27 04:51:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass(p=quarantine dis=none) header.from=epam.com ARC-Seal: i=2; a=rsa-sha256; t=1700868375; cv=pass; d=zohomail.com; s=zohoarc; b=kKFVpSVsVHU9thhyXo8UVjazIdNfNBlxe/hDbDA48chHQAzPb843ioWoV0gYP2EGKFmvE9kKmrKHXFt9PCiKkYSNAY90uQ0ZkRAhTjF4nYMfIAkrHiGRssnkbeAsvNhqQMk6zBiodFztTVWqmaNA8IQDr7ulFuIbSle9Vlr6I30= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700868375; h=Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=602dKa1VR8fPvQHqtVLjjZVu2RbSyKF63LAUWSpxQ3M=; b=OjMOVNIXiolQ8F4MJHLgSBfJ70/xXPEjBx8HbYySf5Wa7/F210wWd3x6exFD+/xvLdIakqGZoM5SFsaI9cnVWxoLvB1JQbj9VgwErCusl6I5Bwm8cYxQX7WvsfJbIZTwBespTTIEmZwtEY8FRZ10wOFUv2i1Gl8i8CEkrgfDiEI= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=epam.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1700868375274850.2744641001726; Fri, 24 Nov 2023 15:26:15 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6fXL-00039C-5q; Fri, 24 Nov 2023 18:24:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6fXJ-00038e-K9; Fri, 24 Nov 2023 18:24:37 -0500 Received: from mx0b-0039f301.pphosted.com ([148.163.137.242]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6fXI-0003dN-05; Fri, 24 Nov 2023 18:24:37 -0500 Received: from pps.filterd (m0174680.ppops.net [127.0.0.1]) by mx0b-0039f301.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AOMwAPK014042; Fri, 24 Nov 2023 23:24:29 GMT Received: from eur05-vi1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2168.outbound.protection.outlook.com [104.47.17.168]) by mx0b-0039f301.pphosted.com (PPS) with ESMTPS id 3uk2wmr6b0-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Nov 2023 23:24:29 +0000 Received: from VI1PR03MB3710.eurprd03.prod.outlook.com (2603:10a6:803:31::18) by DU0PR03MB8551.eurprd03.prod.outlook.com (2603:10a6:10:3e2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Fri, 24 Nov 2023 23:24:24 +0000 Received: from VI1PR03MB3710.eurprd03.prod.outlook.com ([fe80::8e03:368:1fd7:1822]) by VI1PR03MB3710.eurprd03.prod.outlook.com ([fe80::8e03:368:1fd7:1822%6]) with mapi id 15.20.7025.022; Fri, 24 Nov 2023 23:24:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B8iqL1p9hM7JDy2vjcS3+1q4pA+KmyXHAtyotsorzKcIDmP0ob6nfvSX98zid0DvMR7l3y99NX8mOLLl3E6SofGhenTPj4Nq++3yGMttJ6TKvg+aBaXu7G+qT6TDR9c/xQPQaO7RnxJY211ZdPehy7emA8sBir+Jdk53GWOSaCDfSeIIEERvfaM05moYKoqEu4PRMnVsO/oxyr8jPGNVBjFf23yK3BcqdDpthtOMfqEax8lnMFEG1Qvzbu1Ou1cyCp1BndSb57n0h4K6yAZxIGfUKe2aYD1KxkRBDPaY3RYalU7wBf0Q8ObbdRf+v5fN9S1zQEDkDtZxUB59DkVIZQ== 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=602dKa1VR8fPvQHqtVLjjZVu2RbSyKF63LAUWSpxQ3M=; b=f3noakK5BBcEGsFSEA4/mYkq28nqi+1gu/pWV3cW4jkG4J+2SGwE02wsHbkp77/8iOH70KkJd32iDQYl7Rcp8DnTc3BTpmyg3ovgiubT3dzhRUZUDxXtaXik21cb//uemCkw1VI8SIjDozKIFQqUUha+h49QUhHMAY8XMtOjUt8QwFqllVhkjmbydEZI2gY77Y+qYkH7v0A1NxrnTAUMfhh9GCMflwbO2WnBYKFTe2o5GLMz5zTEDSKt3WH5hBbtJlzVOD9fBI7eTdEUKaEdYQC0/esY3ZysGsSGGyXbkEb7Jh1tihmrq4f2bWT18Fucpq8s1AXRiYSUDA+yRcJNOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=602dKa1VR8fPvQHqtVLjjZVu2RbSyKF63LAUWSpxQ3M=; b=VPagikpJskYrT0a3uKTUr3+4rPtVZIGg8v1bTdj2NahSnqbUbqcrPLbpuZFj2uJOmvR/06Yi89vGgT1u5EDyymtoWS+tM5NIE/X+Gv1X5hjLofM8R/MXueedBat4KFXyEiz3Czo3YM7nSnuix5j/vxKw9qlKa8TyF+c4oWMcjDCtKCEfTszBe77od5W2MyFXzoNU8x4zDqzA1fRAVlOfXRTmPPwt6aObNN1vaUwy3d+Y0qd1fudcoPfYuzRb2tt5nyyEUb0sLvFEJPJufaDh/C3WFWOyycZeoQAfQ/dxuiYlco8sTFTTg3So7VNCpgpQ5Yp/hcyIkoIDtlB9w3C7uQ== From: Volodymyr Babchuk To: "qemu-devel@nongnu.org" CC: David Woodhouse , Stefano Stabellini , Julien Grall , Oleksandr Tyshchenko , Volodymyr Babchuk , =?utf-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= , Peter Maydell , "open list:ARM TCG CPUs" Subject: [PATCH v3 4/5] xen_arm: set mc->max_cpus to GUEST_MAX_VCPUS Thread-Topic: [PATCH v3 4/5] xen_arm: set mc->max_cpus to GUEST_MAX_VCPUS Thread-Index: AQHaHy1bXZxItaI7lEWj7O2d5pS3Rw== Date: Fri, 24 Nov 2023 23:24:23 +0000 Message-ID: <20231124232400.943580-5-volodymyr_babchuk@epam.com> References: <20231124232400.943580-1-volodymyr_babchuk@epam.com> In-Reply-To: <20231124232400.943580-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.42.0 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: VI1PR03MB3710:EE_|DU0PR03MB8551:EE_ x-ms-office365-filtering-correlation-id: 0abb95d0-583f-42ef-b57a-08dbed447eaa x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wV+C2ZR05VHyKijt+4qVUF8aa+iE89gLOX4tmsASRtMPT+0Nz8wS9qJTZ+aXj6jOhMFYSy+qO3FmEq+b5iXH88fmE2v7he8IcZsZZf9cwPbG/L/rtL28XjhniMm2p2XQPkIcAxKZPGzod7Qc1+xb/BCAhQySb6GIHh6EZHEUZTdlW8uKfk4wx0ee8hy/r4RX+6Lo5QkJPphxaC8PZmowkN94tm+rfMpNYCS2e1TAqq+D2RDFwaecSlr3lEIJs8U83FvIe0yoeeSlUJDfBKYoW66aIgBnijByUf3qUWAM58QQ4bOJOUvZr+ud4gqkLMLxe4zsUstsnkZ0Cu2QcBIA9SYRvzqSCtEO6MPnFzDzjcSsJ8MlSQxlCkW7mqdXiRhTOUFkVjaTsjwBxItjDu1GGVr0ZNVFbn28xDNO/itxDbGG3UL75R1J4S7QIM0nAutbrPY8eEGMP5e21IHjBIesaUYnoPjR0MpRrsqJqHJvzhgMlIk0DMfbii870Sjt8VTLBbMyNbTyKpvpGdnDSDx9fhN8A9i1qgbuE3tDekNczNc7l/nwj0PdgSsOUprZBlMvlafaQDLAkozBNDu6uVEMP8dEC5VE6GUGZuaacsrj9/Pcqi8a6PeZpWrVz/M0Zeh5 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR03MB3710.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(346002)(366004)(136003)(376002)(39860400002)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(38100700002)(1076003)(6512007)(83380400001)(2616005)(6506007)(55236004)(71200400001)(41300700001)(8676002)(4326008)(5660300002)(8936002)(26005)(478600001)(6486002)(2906002)(6916009)(316002)(91956017)(66476007)(66446008)(54906003)(64756008)(76116006)(66946007)(66556008)(86362001)(122000001)(36756003)(38070700009); DIR:OU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1dHd4RnM0aWpGYlN6b2tPWkM4?= =?utf-8?B?SnluNzZRU0pBSEZyYjA0dHF2YUMyNTRnQWNkaFNSclN4WndRazNGQVJFcGFj?= =?utf-8?B?ajJoNDJjTEd2YW54QVNKWjBkOTl1cUdLcGovSmFqSVZTMCtCRDhiK2xjdTJR?= =?utf-8?B?SnNDbi9qc21OWVR6SDFiR21RL0xWN0J4V0FDZGRpQVpjM1ppSzBaNEVydE1v?= =?utf-8?B?MzdPWmx1ZlNHcXlueVRPRkFUYzY3ZkZLZmV6NFloTUxPaTBicEtjMFdRb3Aw?= =?utf-8?B?MFc0eFZkb2o0Z2lBYUhtb244a2VhMWY1elV0dDFyRWVMRTRrQk1oOS8vYW1t?= =?utf-8?B?L0E4WmRINzVMLzdKRi9HQnlPekJLWnFGSTlmaDV2U3V4M0JmV0QyTndwcVN3?= =?utf-8?B?YjViNGd2ZDhzS25SVzF5VS9PSE9QL2FLRHlxVUZaSkNKb3RGVVM2dXRZcWdo?= =?utf-8?B?d0E9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR03MB3710.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0abb95d0-583f-42ef-b57a-08dbed447eaa X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2023 23:24:23.2961 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QSgrPViEY6YWF14a4pkIINtrXTP8B5lDYZPKwo/6VSzP5c6qyHyP7I3fqvS+u+biAsZ/+oFhTQkejFCkbSWObCTecV6OAe2akeUrNk4d8xA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR03MB8551 X-Proofpoint-GUID: wlrvwSBVyXrZHTBAcyzmz3LHI6wiypTr X-Proofpoint-ORIG-GUID: wlrvwSBVyXrZHTBAcyzmz3LHI6wiypTr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-24_09,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 spamscore=0 bulkscore=0 suspectscore=0 phishscore=0 mlxlogscore=999 adultscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311240182 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=148.163.137.242; envelope-from=prvs=569229df20=volodymyr_babchuk@epam.com; helo=mx0b-0039f301.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @epam.com) X-ZM-MESSAGEID: 1700868376595100001 From: Oleksandr Tyshchenko The number of vCPUs used for the IOREQ configuration (machine->smp.cpus) should really match the system value as for each vCPU we setup a dedicated evtchn for the communication with Xen at the runtime. This is needed for the IOREQ to be properly configured and work if the involved domain has more than one vCPU assigned. Set the number of current supported guest vCPUs here (128) which is defined in public header arch-arm.h. So when the toolstack pass max_vcpus using "-smp" arg, machine creation will not fail. Signed-off-by: Oleksandr Tyshchenko Signed-off-by: Volodymyr Babchuk Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/xen_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/xen_arm.c b/hw/arm/xen_arm.c index a5631529d0..b9c3ae14b6 100644 --- a/hw/arm/xen_arm.c +++ b/hw/arm/xen_arm.c @@ -231,7 +231,7 @@ static void xen_arm_machine_class_init(ObjectClass *oc,= void *data) MachineClass *mc =3D MACHINE_CLASS(oc); mc->desc =3D "Xen Para-virtualized PC"; mc->init =3D xen_arm_init; - mc->max_cpus =3D 1; + mc->max_cpus =3D GUEST_MAX_VCPUS; mc->default_machine_opts =3D "accel=3Dxen"; /* Set explicitly here to make sure that real ram_size is passed */ mc->default_ram_size =3D 0; --=20 2.42.0