From patchwork Thu Nov 23 10:25:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 13466059 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 97E6FC5AD4C for ; Thu, 23 Nov 2023 10:26:07 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.639502.996950 (Exim 4.92) (envelope-from ) id 1r66tw-0005Ql-9H; Thu, 23 Nov 2023 10:25:40 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 639502.996950; Thu, 23 Nov 2023 10:25:40 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r66tw-0005Qe-4y; Thu, 23 Nov 2023 10:25:40 +0000 Received: by outflank-mailman (input) for mailman id 639502; Thu, 23 Nov 2023 10:25:39 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r66tv-0005QY-Mh for xen-devel@lists.xenproject.org; Thu, 23 Nov 2023 10:25:39 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062d.outbound.protection.outlook.com [2a01:111:f400:7d00::62d]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id a51e94bc-89ea-11ee-98e2-6d05b1d4d9a1; Thu, 23 Nov 2023 11:25:38 +0100 (CET) Received: from DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) by DU2PR04MB8951.eurprd04.prod.outlook.com (2603:10a6:10:2e2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19; Thu, 23 Nov 2023 10:25:36 +0000 Received: from DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::eb8e:fa24:44c1:5d44]) by DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::eb8e:fa24:44c1:5d44%3]) with mapi id 15.20.7046.012; Thu, 23 Nov 2023 10:25:36 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: a51e94bc-89ea-11ee-98e2-6d05b1d4d9a1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iNr7GJsaB1NdIdKxAnW8x1zAIWEVSPoIdgmjLoK2vnJfmr0B8x/LhS0dQ8ejsWwz8CCkfMuhTudUYKRHsk6NiIerT8H1tmvVREXGkmXAjW9PbDEV1d0BdGk4hN1LYEEuviKpVIWQIosES/yElccvMd3qByNlRqFR62+PJe2DZ76qdH4gShl4TFzbmr4xgPSlL49nz4vVO1eS/6Y0HYX1yP3aCYB72RusTooxptF37hC9iHrH3P7E79yPHkVxyoS7jTTZewA16DmAIsbYwTAasl/G3j8NmR1aAdJNtTXVGbVjWvJZkHMP5pJxtS/e6p45G+JZHhBN/Q5b8CTO89+Saw== 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=BnC3OyozHE33/JAUMUxXZfR33+rkJvqVx1YnwNe1zTI=; b=S7uAmw2iTv+uasOD96cqxD0Qhdeq9BhCRpO8efGX9oZDQvAAxvsbVw9LLo3+Pm9URDN4tIWW03XeKe8+hNTIZ1YfhZZyWmTl2DvcpVj3vuEjWsS3eNSXEmfVDYXt9EXzoQ/uU9+FLkdEGxYHYeYjcX88EjnpEUbNukAb1uETOOggxkPagrxheN6KcZiYIrLhEVlRDMALuy6k/n2MlK55NwELKctxtU7onBwsNbSq3NoiC9rnrdmnrC0cerVAfohkTMbD2bEw9Gd7aZwluLLEXguAfLv5wqWs6+0VgPKau/PpjBzjp37B8FcI8sHF15xeBuUeZQrHTDzCjLvp8XoRfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BnC3OyozHE33/JAUMUxXZfR33+rkJvqVx1YnwNe1zTI=; b=4mOiFrXZ5jpaxWEvu6GWkXdakwAVDUIc+SAivbL8HdSjhFzs9O/OVkv9eFIxG7SmeEZObEKG6kyfFL8WJjWkxacyjOQO65QVPb+Q1adRdjxPkvQST/ytEBx9186pU05g7j0FCOltzFCg3wG1JK7DgbRebuzqsg0+HYEIewc7spx62Jd7SXbhC8jTfSSG2xEhsCG6i1/ZXF4UC/npsUS9ZPtfK0edp6CrT1rSPTGbHtW7BiaU5lttZlVt+5IE1RYqgPljP5pLdIZ6KLgx/QVeHv6+dn81S7EZ/I2JSUwIreMG2SAAH56AuXZmGxnKebu0gI2xkviOySEMDc8Rv3Mn8g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Message-ID: <8efe0fed-8533-474c-9893-e6fcb38b93ca@suse.com> Date: Thu, 23 Nov 2023 11:25:34 +0100 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , Wei Liu , =?utf-8?q?Roger_Pau_Monn=C3=A9?= From: Jan Beulich Subject: [PATCH] x86/HVM: limit upcall vector related verbosity Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL X-ClientProxiedBy: FR2P281CA0110.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9c::20) To DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8790:EE_|DU2PR04MB8951:EE_ X-MS-Office365-Filtering-Correlation-Id: e3f1d4ee-56c5-4599-7376-08dbec0e8814 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mDb+Xap7w337/WHBYiiJt3iwnDVrrFpmVV6xrODMXosOI+wVbi3sHzsJUUAYiy9/tTPkZSN5OumG9OESlM6cC25Aszu1HELzCLQqNgWe7RBDErF6O8XDm2auk/Kvpm0Mjc7i4tlc1Mkrw13vlIlxWVBeYMCycuOZsTVoUi6j7liqx/AedYdF+zU5J2vQodGBvCMktx+X/5FUkFGuXSiiH1cvAScGfjpeAA5cio8Foly2n8fn7yRruhbBjqJvZT5D9tr78Mu27yqa6TQDJjCm0vVB1Tvv5iqlQ93Wsr1lz8xQrqCB3Uy2l33+KyN6hbbHDAQDq/ZTvnuU5YFwp9UlCCQBpP8C7JZxOiemnVjuSA2BycxEdOyTwwcbqLZVM6E//8dm3vGwdgWNxqO2QejIR6jBV3kFHRWH7/FkR2dxbXgp5R7UIlkXh4zJ/KLuR2LaL9uuR45hV2AaM22v+AaCNwXmSphZ0IlrxAeyxeixp8nh97R+1Nuekfv7sSAsmv9CL97bWdjaQf4GlvWcQAmSgaMpojrJFZ29NwLo8IpkrO6gF6uXRYOUGjNkGkZUVpCJZAw/V+Y8o32A0cSrt0P9sCk1MkAQOqsIIWI6P6MPvU/lH9fIIo0prWRiAR24dB5KI6nQS1tQodljyTwhRXWvPA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8790.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(346002)(136003)(376002)(39860400002)(366004)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(83380400001)(2616005)(26005)(6512007)(6506007)(2906002)(5660300002)(41300700001)(66556008)(66946007)(6486002)(66476007)(8936002)(316002)(54906003)(4326008)(6916009)(8676002)(478600001)(38100700002)(31696002)(86362001)(36756003)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?P9xyUnjnGD4stlckf5iFv9haPCN3?= =?utf-8?q?wguWCKzEXqSYCRQ982j5pD/TGEK3TdtqgLkURks/LWZU9Ix0ltah+rG3dEsy37s6z?= =?utf-8?q?D1Mt2VUW/zG8Q+myffbEoCeFawTLmA3B2jTvwRF4v70F4yeZfUO6YA8FWFRkqAKIc?= =?utf-8?q?VY+ILB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qZgM3FA/nti+5dwy9Dl4++SeTUxfrcurEkT80W4zt5nb9Ly8ZuM+L70NC?= =?utf-8?q?v25evrveCMuceIrp8bPF6zCeTxAJ+7T3PwmLWXLRliR+558hk7/hDxtofJy0/zmPE?= =?utf-8?q?9U1qmtJXjxj2G5I5c+/IPgX4llKfSkvyFmQwrkcAAiFnLC+ZcpmqC6OtbairXSUII?= =?utf-8?q?aDLelUoaA33YjwOXTB9QAiMhMQvk4muAb3uFTHfqbaC9TaaTThR5Gt8llf/vBxGvf?= =?utf-8?q?FGKc7FULLQP40LB9M2PeSrquTnGnFFvasKeE8iaii0c1+PViQzq0zKBgpSVZ7h9Es?= =?utf-8?q?bpYNqdU/0Xrz9a/B5Tf+8e0GuNM7lLbaRgJMm5IE88UhoozkHATz7LE7yPtypwHFn?= =?utf-8?q?6GeXcHrsu9D7joYd+OD6jAqbXVWO9RQlRbJ5KO6mLjksfMZ8qUVV2bcfc4HEumcc/?= =?utf-8?q?huXJbYB/4r18kgbwU2BGzCuS8zi/q/EFAzV4uH5QLd619gbwN8C+mxeXbUuyq4CWN?= =?utf-8?q?y6YxZR8glqT3?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3f1d4ee-56c5-4599-7376-08dbec0e8814 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8790.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 10:25:36.0771 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 902IuKINg2fL7MMuLhach/tTgFOOfnaAGSWTVdvkW/EOJdmJzIGnecq4vrpL/79pGWc2FYaO+P+sAKH5Triovg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8951 Avoid logging all-identical messages for every vCPU, but make sure to log unusual events like the vector differing from vCPU 0's (note that the respective condition also makes sure vCPU 0 itself will have the vector setting logged), or it changing after it was once set. (Arguably a downside is that some vCPU not having its vector set would no longer be recognizable from the logs. But I think that's tolerable as sufficiently unlikely outside of people actively fiddling with related code.) Signed-off-by: Jan Beulich --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -4129,7 +4129,10 @@ static int hvmop_set_evtchn_upcall_vecto if ( (v = domain_vcpu(d, op.vcpu)) == NULL ) return -ENOENT; - printk(XENLOG_G_INFO "%pv: upcall vector %02x\n", v, op.vector); + if ( op.vector != d->vcpu[0]->arch.hvm.evtchn_upcall_vector || + (v->arch.hvm.evtchn_upcall_vector && + op.vector != v->arch.hvm.evtchn_upcall_vector) ) + printk(XENLOG_G_INFO "%pv: upcall vector %02x\n", v, op.vector); v->arch.hvm.evtchn_upcall_vector = op.vector; hvm_assert_evtchn_irq(v);