[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/5] x86/ioapic: Drop function pointers from __ioapic_{read,write}_entry()


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 12 Nov 2021 11:43:53 +0100
  • 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
  • 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=HthP/7rVFzNQgj/LdVk2wKfFGuSHorRH6kGJH7gWhQ8=; b=O7uVy8744j3axVkO1RN4QdpJWEJg5MjQzIhggQ0OaiWahon2HkYBLpX6atU7w7gIDKp5cj6TH29YzjUFgww/xC2/2aG523fzDipf7ZTk4XGXHgqccnXHNSp7bLTWS277YiwEk2tomtFPeGWxDjFBb5tKAJY7y24jl9Flw1fLUFjIbAgNxFgw33BfQktyMP2oxbxiNavCykArarHAM9LBa+0yo/98QbUISie1EiK4CaWaZ0BHgEeEJ2hUgUSpoKxXn4dWODgVnGzZF6F1s93jVZqgDApQRRk4LUoX3vyzvh/NFHf9zyEnjP5oDn0G2AcvzEJRJiSGXEGfJ99pYC48qg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AkNc1DsB3tOLKRF3gxpUrIsNorWn/+Ov//H7YLQiq9eSn355AeUoHQHjK23cZJJ2l9CM/KFQARHJcbFLplhxxN1UHZ+dV4MoEZ4i1OY0b/cnz49jYaEmNNBL+ToESQbusBfWUibYrKCDleB7D5l0xEPYehT+caD4nJ29oNMHK0fEVGPKCPpuw784az/mUyEn+KzlSd9C4K1H0GO6tV/K19s5I1r6eqPrKl0cYR64kgGx3yMhgq8GqTI94tSPKSplGLHBvVKoD7PsdscyZlk5w8TYjshM58Gc18fXor1HRWcBLwIc9c/H1YyZ07Mksc3QpyeNE2UCDhR2h3A/o6DoCQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 12 Nov 2021 10:44:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 11.11.2021 18:57, Andrew Cooper wrote:
> Function pointers are expensive, and the raw parameter is a constant from all
> callers, meaning that it predicts very well with local branch history.

The code change is fine, but I'm having trouble with "all" here: Both
functions aren't even static, so while callers in io_apic.c may
benefit (perhaps with the exception of ioapic_{read,write}_entry(),
depending on whether the compiler views inlining them as warranted),
I'm in no way convinced this extends to the callers in VT-d code.

Further ISTR clang being quite a bit less aggressive about inlining,
so the effects might not be quite as good there even for the call
sites in io_apic.c.

Can you clarify this for me please?

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.