[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: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Jane Malalane <Jane.Malalane@xxxxxxxxxx>
  • Date: Tue, 8 Feb 2022 16:00:48 +0000
  • Accept-language: en-US
  • 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=ZNBMT+8cjMEACLKu2VApF6fj8meZ3l30g+HS/RUbY4o=; b=mYYFi/uNjLOQD3TkPY8UehGaLDrvA+l+EJq6WhbrEcrF6+ZSqhaof2iDBzyO/HcAAxayptl7ZQGWztShCKakdsc3Wx1KIgdsyBZjvEre/h1yCvXZo6eAuzIO9oUXpTbQa3jiaPGGhh2t46Ui+kIRQ3rZMZtC8CApHcfsqpwsM/ZCJDMHkby4b3rmLhHe1yCo2OMyf84/hTeyGdvoMriywoZ4nSmOU+owZKixwsuplaMDjthx8mj1omSQAvBL5rvOfGXl9oss/I/OPse4aOm6jQBu40vjfXHtucYUlgjWIVy5Q9HUxSddB8EWN3I6ylItPPyqdNGkXfldooUJN71c+w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EKVY0KHMYNTDDpmWNnJo56lJrpckQpJ6x0e1Pcn2Cuz077vkq7LyWsGajRQ1rKE4Q3A8H2vxL+fDCOEL7q2GBfQMB5AUuAxklJT1KPsS/3vRwudJOO8QWok7hpLUT4go1WgB6wowzZYB07+S2iplgOU8wz5WUqX9dwBWIT52sCNS8EhDVassz+18n0dGcYOGJIIFhMLFrem1mjSC2w4MJR2RIu+kB8Fk6KQynDEQ+YkDpeI3OgbWbxUyhu4pRJmkiBV1aMGsuhmrMOPbh+Z6krSQPvYORkyY/eSHEp3A1nrKMTIDkbXJHbiJduFzP5KtZtu7TCLc3xuhs8RCdLZK3w==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.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 16:01:14 +0000
  • Ironport-data: A9a23:uCWzG6PlWJ6iSwvvrR3hkcFynXyQoLVcMsEvi/4bfWQNrUp21jZRz zAfWmqHOfnZY2qme4x0aYvi9E8OuZTTy4RkQQto+SlhQUwRpJueD7x1DKtR0wB+jCHnZBg6h ynLQoCYdKjYdpJYz/uUGuCJQUNUjMlkfZKhTr6UUsxNbVU8En1500ozw7RRbrNA2rBVPSvc4 bsenOWHULOV82Yc3rU8sv/rRLtH5ZweiRtA1rAMTakjUGz2zhH5OKk3N6CpR0YUd6EPdgKMq 0Qv+5nilo/R109F5tpICd8XeGVSKlLZFVDmZna7x8FOK/WNz8A/+v9TCRYSVatYo2S0nOp46 /5Dj4SpRQJwMonHwN4vcyANRkmSPYUekFPGCX22sMjVxEzaaXr8hf5pCSnaP6VBpLwxWzsXs 6VFdnZdNXhvhMrvqF6/YstlgMllCcDvNYcWvHxIxjDFF/c2B5vERs0m4PcGgWZu3J4RRJ4y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/5RLRLUBRqA2p7MgFM6VraIV8fH+z3+BpTt2wQ+d8auIfVR4AmBTn/ru2 FIhWis6NzUGy8uWpzVaRU2JqWkWcm7MaOMxSFE3aiRfWEC3qLoNx9RTso0D+vrKy5zImSgVpvc 9ReU6y9D2l/d+TkvvwCM8ZSF
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHYE5eVWWLwfSz8JEi35sISHqV9YKx9DnUAgAypmgCAAAcRAIAAI8CA
  • Thread-topic: [PATCH 2/2] x86/xen: Allow per-domain usage of hardware virtualized APIC

On 08/02/2022 13:52, Jan Beulich wrote:
> [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments 
> unless you have verified the sender and know the content is safe.
> 
> 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.
> 
Okay I will add this in a v3 (alongside other changes I'll have to make).
Thank you,

Jane.


 


Rackspace

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