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

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


  • To: Jane Malalane <Jane.Malalane@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 8 Feb 2022 14:52:48 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=vzThoDqH63O1U50rIVwI3pPFBPNpdKBHP0mIpM+R/QI=; b=jf+2IT93kn2D1FsnljDDFGahC6CgjSgNf1u66MfD/moMQVHNmjZRhyPro7F4HaySwiDgLB9uokKV/0hPpwQPDUVY+hVwo+YJ2tQ0GaHDa15vjhgYQCc0+pPF1pILUkdRJMQmJ5Zck9Ws/7dyYc2Xwen7VoLHs90Xe1N1j0wbVY1Juga4hycOpb3Y08YUJZaPuxq+dQUX6KX90hNThmaYHAdzVE/7o7Dja/0dnHzDwQbPw2mZeZe7qrb9Jaz8xLlcWJHadhzJHXa8PKCFvurS9FRI6cel1jNSDi1ZCpGKEa0V9ytcxcZ3LHTNDIHxB3izb7XS3escp04NhLxwQnOgIw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wu8nloiEPtfyHqCXlHdqv8H1Bi1GcSNTOYEnlcZ/Jwk1keUCkfu2ZXUO01XT8IoWQqN6XSaKMZwSakzxcQGnPYibNW8QJ8JDpKq4DPvvSET658h5OZPIWsos+KCa+s+L9mMBs5eSml2FfQe+sr2V/F1tSJkNxCv4U2KnKuikCJBaIs7gActUHYkk4xO8Nm2qv3tSP/s1twdqqPhkJlvU2DYHC3JThcuhz/LpQ409ZYwrPN0Xea9Ebl/esbX4tD2cIAChkI+ojt9nZ/Au8LMnse0qLTfcvxVkjpbTLimThInnGtmC//klSU2pcPA/c2Cy3oksf5JQWPaKTknJhHK0IQ==
  • 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>, Juergen Gross <jgross@xxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 08 Feb 2022 13:52:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 08.02.2022 14:27, Jane Malalane wrote:
> On 31/01/2022 12:05, Jan Beulich wrote:
>> On 27.01.2022 17:01, Jane Malalane wrote:
>>> 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 vitualization, 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 running APIC
>>> read/write accesses without taking a VM exit.
>>
>> This is odd to read for a patch which makes it possible to _turn off_
>> acceleration. Instead it would be interesting to know what problems
>> you have encountered making it desirable to have a way to turn this off.
> 
> After speaking to Andrew he told me of a performance regression that was 
> reported some time ago when enabling apicv related to the pass-through 
> LAPIC timer of a HVM guest causing Xen to intercept the LAPIC timer MSR, 
> making anything that uses the LAPIC timer end up slower than it was 
> before. So, adressing your comment here, other than mentioning how being 
> able to disable acceleration for apicv can be useful when testing and 
> debugging, do you think it's worth mentioning (in more detail) that this 
> perf problem exists, in the commit message.

Yes, I think it would be worth mentioning, as then the purpose of this
change is also to be a workaround there, not just testing/debugging. In
fact this workaround may then be viewed as the primary purpose.

Jan




 


Rackspace

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