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

Re: sh_unshadow_for_p2m_change() vs p2m_set_entry()


  • To: Tim Deegan <tim@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 28 Sep 2021 10:38:07 +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; bh=hx1xK7HNytdaZ6oyQpvXTcUcCpRyZzwnXo4wE9i9NKI=; b=HOSMbEO2kpkR2SRzlDpo5iZeXRC2bHIezV1eKNVq4FVcsa92FlXusFxoDbwg+25mSfoyIhPUbwMS6Cu7fwwmjwagm7n5MEgVZkKmwBz7LoSK1qZbH8RH0VZBzvShrrXQMbyE+Iy+td3WgPzf+Br8lfl7XDF+8ipASfUYrRmVlEV1dflh99VPFuC1J0zFZloy7B3v21wqHMmb0cMazZvIGHhfXavJCVgkS3ak2ezvLxh1E3IBv75W4zbiIyfWJYnL/TiSTkaL48ecnoIHvYYzT2yp0BGAspMniFv4MZgZW+Isf7uOa8YFhbROfVLGJtJ7P70zZDf3/58Jjx+k5MHHNQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LL/55CX1yd+8ozBKCaM/vrN7Cq197z/F/E5NETA2sGbba2M7bdrWLG0xk1OOEqJpqk9putukjXMW6jwjtTTr+gGkJNEVL7S7Mb9k4NpDYWLyBS6EY+TCObVF1fQomGq0WHi+r3wmY+OK12c6I9uudv1y/nRxdIQk1z/Oldrw04ee0I5qe0hYn9bh19tmYlJLoEgJ7214jWBUIypyQOJ8g3FDEMX0wshkh/Z5ctcESwXCQmWOlirLOSf0WUGfks4TmBEN1lDHub1zTcgU2LJvpzAFUm+F+86M2afSPhoS4WT7IeNb6wyQsLYGp3UBEp4/J5VaIIh3uUkrajfrjPsuew==
  • Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 28 Sep 2021 08:38:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 27.09.2021 22:25, Tim Deegan wrote:
> At 13:31 +0200 on 24 Sep (1632490304), Jan Beulich wrote:
>> I'm afraid you're still my best guess to hopefully get an insight
>> on issues like this one.
> 
> I'm now very rusty on all this but I'll do my best!  I suspect I'll
> just be following you through the code.

Thanks much!

>> While doing IOMMU superpage work I was, just in the background,
>> considering in how far the superpage re-coalescing to be used there
>> couldn't be re-used for P2M / EPT / NPT. Which got me to think about
>> shadow mode's using of p2m-pt.c: That's purely software use of the
>> tables in that case, isn't it? In which case hardware support for
>> superpages shouldn't matter at all.
> 
> ISTR at the time we used the same table for p2m and NPT.
> If that's gone away, then yes, we could have superpages
> in the p2m without caring about hardware support.

No, that code is still used two ways, but it can't be used for the
same domain in both of these ways. IOW I'm wondering whether the
check for 2M pages to be usable shouldn't be "!hap || hap_2mb", as
opposed to the 1G check continuing to be "hap && hap_1gb". Of
course once I make that change, I may end up learning what
"potential errors" that other commit was talking about ...

As to the further parts of your reply, I guess I'll try to
transform this (largely supporting my observations) and the above
into one or more patches then.

Jan




 


Rackspace

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