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

Re: [PATCH RESEND v10 2/2] x86/xen: Allow per-domain usage of hardware virtualized APIC


  • To: Jane Malalane <Jane.Malalane@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 11 Jul 2022 10:26:31 +0200
  • 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=SSd7oNfivnMJE+omTLKeRVu6AOBoJecHJZhcH44Ew5U=; b=aRX8ooFhnaRUjY/46ZadA6NffEnWwMsAysajBnutHfrvJbd70k/FnDu2Fj++q7GCFhCzoVpZvnKmVogk+gBkK8USw+HwXMnBb1APgu+lfYu8mXyPGtd43Pj5EThmZdu+43ol9DEuhijF43e5ROKGRGYiJbsJykBRiKfTFBr3nJcxmdlP45dLAGeMFXwzbWGP9wQ8yZdsOI+XvUzRQhhBAahcoS/4BtRhCskJDIgkFrkIZmibFaRrLTM88nCnjwn7qu7f/6dbkJ/vx2SJw+Gt9+VZiXjBdKo4cRBHsp+LC/aJbHo2St2ZxypGK85bsoe9CiOIvUCjkK8HNNamgkW3KA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kFXppaNp0EzHbPHm5OpKx8GaFyfenLM9+2/e2rDJyNXTn5zeEBBJmhcDOco7FTXGVMJ+IQBqASObqa2DZ49iz1QrC3l7z9LxDRxXEK+crV4i0K4tNf0M7/odzSdm2A5geXPbFs8g5MIOwbiAVL7lXlaRwhkEmMM5cLF7gyOQg0vvC/JapxHKI1hGEE14/RIJX0qOb1aAt5qsSCrrDTPzKSL15OA9Kzr1D+XvvfrAP547Y/njLMSvYP3+h/ldrG1K6NTQvmtQSeRqCVH45blnktbusunxKXaHt0z1BfCXZ/J7KKRvSrmcnjQLVLRUxo9dPCnN34XU7IlPw4hBvI9q/w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxx>, "Gross, Jurgen" <jgross@xxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 11 Jul 2022 08:27:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 11.07.2022 10:00, Jane Malalane wrote:
> On 30/06/2022 07:03, Jan Beulich wrote:
>> On 30.06.2022 05:25, Tian, Kevin wrote:
>>>> From: Jane Malalane <jane.malalane@xxxxxxxxxx>
>>>> Sent: Wednesday, June 29, 2022 9:56 PM
>>>>
>>>> Introduce a new per-domain creation x86 specific flag to
>>>> select whether hardware assisted virtualization should be used for
>>>> x{2}APIC.
>>>>
>>>> A per-domain option is added to xl in order to select the usage of
>>>> x{2}APIC hardware assisted virtualization, as well as a global
>>>> configuration option.
>>>>
>>>> Having all APIC interaction exit to Xen for emulation is slow and can
>>>> induce much overhead. Hardware can speed up x{2}APIC by decoding the
>>>> APIC access and providing a VM exit with a more specific exit reason
>>>> than a regular EPT fault or by altogether avoiding a VM exit.
>>>
>>> Above is obvious and could be removed.
>>>
>>> I think the key is just the next paragraph for why we
>>> want this per-domain control.
>>
>> Indeed, but the paragraph above sets the context. It might be possible
>> to shorten it, but ...
>>
>>> Apart from that:
>>>
>>> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>
>>>
>>>>
>>>> On the other hand, being able to disable x{2}APIC hardware assisted
>>>> virtualization can be useful for testing and debugging purposes.
>>
>> ... I think it is desirable for this sentence to start with "Otoh" or
>> alike.
>>
>> JanHello Jan,
> 
> In the previous email, I was referring to this discussion about the 
> commit message. I haven't sent out a v11 because there was no change 
> other than this one suggested. What I said earlier was that I thought 
> the "Having all APIC interaction exit to Xen for emulation is slow..." 
> paragraph provided context for what I say after but I am happy to remove it.

I'd be fine for it to be kept as you had it, but you really should have
sent out both patches. There are rare cases where sending out individual
updates within a series is reasonable (e.g. to avoid spamming the list
with a large amount of unchanged patches), but I think here you want to
make things easy for committers and not have them hunt down the earlier
version.

Jan



 


Rackspace

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