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

Re: [PATCH v2 12/18] AMD/IOMMU: allow use of superpage mappings


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 13 Dec 2021 11:41:46 +0100
  • 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=J7mJMBykJWmCUntx3UtDwnrciJYkBrAn68YyoT7SlSo=; b=EnA+dvV0NT25V6bXo8dGN9t9jl199fX7fd2h76CPpht6TZd4t9pSP941P7ySeaZtskc9GfyO82ZxYAVLje4P08j+qzbn45XilTyDzQoXStWS2Sr7Meo3RV6ADbkhrVxz6xnBjvy+2LZ8fPvoJmnUYb56Npmebj18WvyYzOldfvwjr8m3G0xmmHKZYMJOr7srkaj6PAi2tE51YLvXCWxcNokCiFEOLJwce/ZAD/0Fg/S+HsnAkUUQb6ONv0LA6NaFZiCI56C5YcvtSdIfHIATLhSbOfPG7PWrV5FkO7RGNGZhxPr9dM5SSaljlrjQUTYG29+8sgWO6y+dJYVxT+UHXw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bDDSrGf1URAFwQ78YiXfp5x8KjedaeXkO894LtP+yk65OZB9X/fdu+h06wtpqGs3RHSXdykJLhOnURLLz7wPLsrHkx6YVWbHyqM8otMosHvLzJN/ZLnlFFiaXeoABbGUyNM8irQ4e9RvNeO7PdOZv2A/HKWs0sI5pHtO2sEBoaxYq1X07S7PSI34UC4r+tB8GLvfk8mHLA27wcm3nRYF7In9W6eum9/ES3xmKiYe6F/JAlTzGCwZ5Fv6eDFsJKI+Ak8c7wW0lf9SfEiCGNaTbKou6seYG75VaBLHZx2FIDu8oAx7d8lictImqDxRys3bP8I/FmG9O8+RWb3jd+cN6w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Mon, 13 Dec 2021 10:42:07 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 13.12.2021 11:33, Roger Pau Monné wrote:
> On Mon, Dec 13, 2021 at 11:00:23AM +0100, Jan Beulich wrote:
>> On 13.12.2021 10:45, Roger Pau Monné wrote:
>>> It would be better if we could somehow account this in a per-vCPU way,
>>> kind of similar to what we do with vPCI BAR mappings.
>>
>> But recording them per-vCPU wouldn't make any difference to the
>> number of pages that could accumulate in a single run. Maybe I'm
>> missing something in what you're thinking about here ...
> 
> If Xen somehow did the free in guest vCPU context before resuming
> guest execution then you could yield when events are pending and thus
> allow other guests to run without hogging the pCPU, and the freeing
> would be accounted to vCPU sched slice time.

That's an interesting thought. Shouldn't be difficult to arrange for
HVM (from {svm,vmx}_vmenter_helper()), but I can't immediately see a
clean way of having the same for PV (short of an ad hoc call out of
assembly code somewhere after test_all_events).

Jan




 


Rackspace

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