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

Re: For 4.17 (was: Re: [PATCH v3 0/2] Move calls to memory_type_changed())


  • To: Henry Wang <Henry.Wang@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 29 Sep 2022 13:36:59 +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=bgKbuTtxwB5RtkrPvwUQF0tbEkL00g2FQRFac3RiNEk=; b=MmN1S+FkcQydi9UsqlVAiBelzOsaHPXhXcYH/uRJYhp7lIzV2j4A93eIPHkCpBLUweSR4ZGq+o/1ByVtLLapU5KvE5vmMOgIz6KVX8Kr6r+B3NPP37zJFMcSkFrJINVZkRtHD2qVDu6Aveukeub5UhbW8iCHK5RCxYO2lK+dFpfNxcIixGj7a8FNE+Z9VV5BX+dWBiwNYOoquxdXnukoJRT7z6m+BP8K9KYQzk6tNuNt6BSbjDkLdpmawRgnt0ITDwI8cGhFV5jUs8lysqZXwHbLFu1iBzkSZRiH8HQRkntPLyoa9B4I3M3yeweb7mGmfMULg84n4hnLCSrSLO6lkg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VM+3TZtINoasvtGEVEYpAboIUZ0ImJ23DMTp3RJpU+Y8LamuYjhgsYIW+4IS9t36a7vanb7kLCh6i/PHUNDW084v9i8ABO1udnFAnTIDsO393nWBJXci5BFe21d1/CWYgVCat65Zo3q+sEztj1lfCXi7MwS1U9ksvXV8qFyw53bvLaqqTkw3ufXGxqr4gGZHn0ZnLeiySuvrKprqGkVIqDPVKBV4gSxZr7mcftoNNoXanUX0+vgxAh9mUVem6wW2Le3a6Te92g5qX1xdA51BqBokv1JmH7gKjmq6sDbYtCw/xHWHGisZHoAwCfpyEPUFfp+EOGgdl1EEc28h19VpvQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jun Nakajima <jun.nakajima@xxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 29 Sep 2022 11:37:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 29.09.2022 13:10, Henry Wang wrote:
>> -----Original Message-----
>> From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
>>
>> On Thu, Sep 29, 2022 at 12:14:10PM +0200, Jan Beulich wrote:
>>> On 28.09.2022 16:11, Roger Pau Monne wrote:
>>>> The current calls to memory_type_changed() are wider than strictly
>>>> necessary.  Move them inside the iocap handlers and also limit to only
>>>> issue them when required.
>>>>
>>>> I would really like to get some feedback on the Arm change, since this
>>>> is now a prereq for the actual fix.
>>>>
>>>> Thanks, Roger.
>>>>
>>>> Roger Pau Monne (2):
>>>>   arm/vgic: drop const attribute from gic_iomem_deny_access()
>>>>   x86/ept: limit calls to memory_type_changed()
>>>
>>> Are there intentions for having these on 4.17?
>>
>> I wasn't sure.  From XenServer PoV it's certainly a bug fix,
>> otherwise some workloads related to GPU passthrough are simply too
>> slow to be usable.
>>
>> I would certainly be fine with it making it's way into 4.17, let me
>> add Henry:
>>
>> Cons:
>>  - Changes the number of issued memory_type_changed(), so there's a
>>    risk I misplaced some of the conditions and we end up with wrong
>>    cache types in the guest p2m due to missing memory_type_changed()
>>    calls.  That however won't affect Xen itself, just the guest.
>>
>> Pros:
>>  - Removes unneeded memory_type_changed(), thus making some
>> operations
>>    faster.  It's effect it's greatly dependent on using a set of
>>    hypercalls against a domain, which doesn't seem common in upstream.
>>    It's possible other products based on Xen apart from XenServer will
>>    also see an speedup as a result.
> 
> Thanks for the information and the detailed summary!
> 
> I think my understanding is the same as what Jan has in 
> "x86/NUMA: correct memnode_shift calculation for single node system",
> - we are still not in code freeze but in feature freeze, so properly-reviewed
> fixes are eligible for the release. For this specific series, (to me) it 
> looks ok
> and I will not block the merging of this series if maintainers want to merge
> it :))

Thanks. Then, according to my reply to patch 2, the only open thing is
to have at least informal agreement there by (at least) one of the Arm
maintainers. There's no guarantee this will arrive by tomorrow.

Jan



 


Rackspace

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