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

Re: [PATCH v2 1/9] x86/shadow: replace sh_reset_l3_up_pointers()


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 17 Jan 2023 11:10:25 +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=8uhDYCizP86w4i/B2PdFA4z/3S9n/2WFsq/Es3tf4EU=; b=IrIvZVvtETp9h9wGtNmIIAJl9ADZHCBfvpXt992lbuzutswyaanosOdhNs8VjDMEs5BVVgVaGp5SlhCfi2jzB83zfaAgfTQjI8A+VEduj08G6CUUkp/SUkl+t8e/k09LjXmmNYKr3N7Pubvldi5uueHBTHxnjyjnteBsyIgDu2N3BRH+SgDsIu1/DygzFmiplwHI+zkYv3QY8AqQJNu2ZUSHl0g+AicT/mfk5gng4aFSkJos+EaShr2m9KLr9cQngms/4oKN+Id7cJkD8lzRZeQkczDCVop4sijsFXeJff+ZndVWgvu7z8m0VCWq4ADB3z9aRFD9c19GbFIXgwmZvw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XjZI9SseASnBqWI4aSsmRxpcpwRE/zpOsuEEm5DRHq/EOjRTd7OCE4BDg5l/5Pc+uucUUPVwvLIZqG0SAuhaG74M3IkKJg8f5+FAW8z7edUBfDDTypf8VUjWtnShzkThGl6HZaiItRhdIWeGJzlEdlqIUjM90T8yk+JQ+8tVvMRTppXxi7Gzxxt6Cg2KsE1HjcoLksuDSYxTkaLStSAEEP/VGP9Smee0/7dEgl+bWAHgynECJbKIiGVw9cSHorG+Ir5+5XdxwwxP/jpA0qQ8w4Sw9B7pUuouAc4k1D8vWDDR42vZG5nFlkfVogblO427ZapBLw3/W6JwGn1DqeFkDw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>
  • Delivery-date: Tue, 17 Jan 2023 10:10:34 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 11.01.2023 14:52, Jan Beulich wrote:
> Rather than doing a separate hash walk (and then even using the vCPU
> variant, which is to go away), do the up-pointer-clearing right in
> sh_unpin(), as an alternative to the (now further limited) enlisting on
> a "free floating" list fragment. This utilizes the fact that such list
> fragments are traversed only for multi-page shadows (in shadow_free()).

I've added mention of sh_next_page() here as well. Not sure how I
managed to miss that, but this doesn't change the reasoning.

Jan




 


Rackspace

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