[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH for-4.22] x86/hvm: Introduce force_x2apic flag
- To: Jan Beulich <jbeulich@xxxxxxxx>, Grygorii Strashko <grygorii_strashko@xxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Tue, 11 Nov 2025 13:36:07 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=/th7md/mSVFlOCeAT4rakNbxkj07LGvOhqct4OOUx9s=; b=cCTjl8HcokEkeaVLVesp7nJ071XbrJRxJGXHlH7zWQE39cWDn99XPnglMd6itHaVsM7wCvPAFHWlaQqkooymqqTbqyWviucgiofEy0hw1C/e7ln7WKKHnFmTdpbNuaImnaSIL5TIZtRtEukvbiYha+JeY7vYRhNzpNC+bYUp5bETYPbuGBYGmU5oD1vljj/DYnSu/8rjHGsSCGsOXJJTdpojnO5YN4tJGc/TNe6MjDf68JAEIzDM4fQEI2pUZsI7+cEpm+CDxntbA6SnNGOuY/2Z0DUwoRkbJfR//2IFaaQdM99zOabXD+2LYanDsOEY4+aoSUh4Lu/nkHSQ9d7tmg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=svA9MudBrAETWZFIoYZy7r8X32fSETE/CkxaKkZILBqHiawJW8KNrFFx3y8TWkdtGbHHenmhONt3NiRcaDitsDxV/SVZJs1HaY2CRLxJofdT04JyO/ytnze7alwBtCrE0gcPBtWgvggF0fMwel6nQy7XfvwIZOqz5lW+35bhHslvMtwq7QF1LfmPVw3ydAui67C7k6qI4ubbfHK21rkZIV9AArrcmAyxMzCccQpWsqU2YwlyC67GaL6Vd4f5jk5RQPGpDnS0RACYF/giQdO2aKGcTD8qtRVIe3YTN98a6qZKIQ5TN+S2cRfsOtNGyJ4KJE0BOStFW2hRaw+YJmaFHw==
- Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, "Alejandro.GarciaVallejo@xxxxxxx" <Alejandro.GarciaVallejo@xxxxxxx>, Jason Andryuk <Jason.Andryuk@xxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Tue, 11 Nov 2025 12:36:24 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu Oct 30, 2025 at 8:46 AM CET, Jan Beulich wrote:
> On 30.10.2025 00:08, Grygorii Strashko wrote:
>> On 29.10.25 20:26, Teddy Astie wrote:
>>> --- a/xen/arch/x86/include/asm/domain.h
>>> +++ b/xen/arch/x86/include/asm/domain.h
>>> @@ -509,6 +509,8 @@ struct arch_domain
>>> #define has_pirq(d) (!!((d)->arch.emulation_flags &
>>> X86_EMU_USE_PIRQ))
>>> #define has_vpci(d) (!!((d)->arch.emulation_flags & X86_EMU_VPCI))
>>>
>>> +#define has_force_x2apic(d) ((d)->arch.hvm.force_x2apic)
>>
>> Would it be possible for you to consider having Kconfig option to make
>> such configuration global, static?
>
> Especially considering the post-commit-message remarks I don't think this can
> be
> other than a per-guest setting.
>
> Jan
It'd certainly be of use to us to compile out the entirety of xAPIC emulation
in favour of x2APIC.
Granted, it imposes restrictions on what guests are able to run and how, but
that might be acceptable in the interest of a leaner hypervisor.
It is fairly annoying there's no architectural means to signal it.
Cheers,
Alejandro
|