[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: George Dunlap <george.dunlap@xxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 23 Jan 2023 09:41:24 +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=YG1T+TYun78WSMhRDDopvvtxl8H4dbRCAs0zMaay1Rw=; b=SMh0mStV3SzWzkImGgwitvFIna6Ua6p0t9EJBgi7D1LMXxGg7SofFM/7lHEizQo5gH7Aob44alXIUe7EOkVpd3rB8R/eijniN4JRoHo3sr1Q1SGHH6Vs9NpvjmyV+mK/mx0Dd5K63OT+rFxngytzozJzZiQBFQuQi0TjrkyAzuF+x5w+sDTpve+oWEL4Y1Jp9T3tbDlmvQPsL/kTdlyG00l/NsDf90yAZRNhXJyzytbemMfNV9SLUhArqE+K0HykIKCyupiw9C5w5DfiGCnWdNJIz5L3GzYlrV36BEGJg4LYgS3pMTELsE7p0nab7hP18Z4qqrjRGn/4Q0ue4yWkGg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YRoso7ukkMjRvm7Q/htS97DNtL7Xdg+5cbLedE8zrypMg19Kc8zGU62wYPARZJTprb+BWHRPLrWG+ZhkSy7POrkCIHH0bekXYau+FVvvNuC7Wu1Mh3cJamYNmMRg/7Ve3+HxEgfpuveaKGKAGXrbpb3LKnRlBHet2dYMqC9GgqIxy7rbbb4sIfThLI3szw/q3mvwhmZnSzNZ5Uqu73aGBnY2sjtwTeVyhyPcJu6Vbu4KsXa4V2x/FyVMKmrKc4pwQxE3Q7sHM1cL/SBdmm2m1k4X/tjB540To8yAIouyriLg/O4jwDnHI2+5fcCaSEm1AJDo6Joy3wnu2SO2NwyLiQ==
- 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>, 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: Mon, 23 Jan 2023 08:41:33 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 20.01.2023 18:02, George Dunlap wrote:
> On Wed, Jan 11, 2023 at 1:52 PM Jan Beulich <jbeulich@xxxxxxxx> 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()).
>> Furthermore sh_terminate_list() is a safe guard only anyway, which isn't
>> in use in the common case (it actually does anything only for BIGMEM
>> configurations).
>
> One thing that seems strange about this patch is that you're essentially
> adding a field to the domain shadow struct in lieu of adding another
> another argument to sh_unpin() (unless the bit is referenced elsewhere in
> subsequent patches, which I haven't reviewed, in part because about half of
> them don't apply cleanly to the current tree).
Well, to me adding another parameter to sh_unpin() would have looked odd;
the new field looks slightly cleaner to me. But changing that is merely a
matter of taste, so if you and e.g. Andrew think that approach was better,
I could switch to that. And no, I don't foresee further uses of the field.
As to half of the patches not applying: Some where already applied out of
order, and others therefore need re-basing slightly. Till now I saw no
reason to re-send the remaining patches just for that.
Jan
|