[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: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Thu, 29 Sep 2022 11:10:44 +0000
- Accept-language: zh-CN, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; 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=UmblhuZKYvHL5h1slSavwTVzyTtCnxNQQDsr42mAx8g=; b=YQn4N3IYwsD5I/E6yHM+oYRaEcmU1+WudPrG+4UpbJtvYM/vP+3bQQUOyEOYbzGIKkEc7pBzS8Vs2iMM4KV0lnNkLy8ZznjIO1KCZCV+UT+WLLUZ24i29AYJdErKhA5Xtv6GqyNeac/QsfIr0lT0ebUGL6LlHA0H8dosxCJ5ckqFOuVRHedPQHGjnC6gQ9XiY3AYu1QU6HQE1WfwWJPzSNwTlJpK8DEkVgxeN9O3+M/42atIdJ1iK5wypDrQQVhinIbJCXM5wJNwPA4RwzZvY+SiXfZwfUV6K2CwL59B4IfU4VS2xRGvc9YRvUvbXtNiInyYuC6Tm2k1hcJQ7bT8ZQ==
- 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=UmblhuZKYvHL5h1slSavwTVzyTtCnxNQQDsr42mAx8g=; b=jiz+SDAZb0VyevDQJbiFaxTYgjNKoUvPmfilmRt0IMd66C+MH+vR24i8w5cgO+24Y1+DQqVHcQ75jmRsDrTxNB4hHQf9dUnnnuz40sDOW54wPPcyHOdBWkHFFE0ZPWLyP74FQRN8vOPs8sU2DOxJRXFrh/OB0XtMB7xE9YrcHgBfSq5E5tBlxKXujV1Z44JxTdvhJXv9KQ2NF/W2KnNtWlWL88j62qtX8UO7TwhSYMIF4uHzZMQovBHlBYqzbAQg25mduNqGPZKXsAG8yclwWuEcAnEcEKohhvfiJH/b7waCSrX+ov8+g1S3j23HMvlu6cJMJLch2Jtj0fOsMKMyNg==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=PDH00GmQZvLXQEyJSdALQMOgOgmJXUOQKl2f3fj19rCw7y2jAQvEdvdPVqU9uq26CDWuVtZzFCNVwJRsJ5vl2ljyCMpCfVvzJW6jjwaZNP9B1vxFnGr8kqbmlr3eW3zumfubydBKICOAdAqxJFHRD0Ee+LOahfo/BbJoYuAwmRV5cWqiFXg9lTwyzsaZ407NXneUl/b3obkvJTccCWkVM4aQF7sv3DA1vGjBoj90vWGEOWw51+bhvksTN9oZW+RHbfQQGQp3/R+E79g3D4DpA7AlsAnoJqJVSSAV4hIuX7+U/mtRYjSO+/7p0zObk4mNqWw8D0y4SoziJpeDrDMbQg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bWO+FA7NbxjLP9w32xIf4oCKUzAncf8H/Ujr4G89WsCLbb/ZP5U7A1/P+wO+o+m4Jr+s0jetIuU6HNiPK2pLV2pPoZV5FfTONlf5pQAelvW47dqP4fkQAHr5cgLTo8spN0sQTlL9CaoGaW/+Hhn46dYldQ/WXYDkWqVhwKJegxVFlVR8y0CifYYf9wvgGklXkCU+qIWJRAUkCg32Sr9NkcZyJufW4SrtmifzO3ZYZ07dWZaEtrlSWpq/PNqam0xjTDpdFL6yrsml0h7dszAgbGVNXnHepCAqQrH+uWRE6ivL8M9T03T9b4xQrwOIgzLHlGDU/Tf+bcv6pTiZnF4d2w==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.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:11:19 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHY0/KB5XPe3+0pEU6tJMlnQ9n+0632PsWw
- Thread-topic: For 4.17 (was: Re: [PATCH v3 0/2] Move calls to memory_type_changed())
Hi Roger and Jan,
> -----Original Message-----
> From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> Subject: For 4.17 (was: Re: [PATCH v3 0/2] Move calls to
> memory_type_changed())
>
> 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 :))
Kind regards,
Henry
>
> Thanks, Roger.
|