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

Re: [PATCH] x86/shadow: Drop dubious lastpage diagnostic


  • To: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 20 Jan 2023 15:20:47 +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=dwi/j5S99Iw4xD1l+OYmtBJ8QuievgUbd5Ro7RNbQt4=; b=czpTwzOeGrBHNSK4RyEGtGNckugBA+nY9gbZz+E+8OoemdG1OJmff99D/M3vTOcf7PE5ITdfKnUKEpOAklqRerwZ2YESMDdpvCdC1ijzXntyEijuTrnUArekQA2gzk5I/wkbG9NrAXce9gPXoT0ZdlnXmiIGzA6X8KGtiYn9i8leg46UrStLbFHTyI+46JRCe0M/rROoLxEUJSfqHszc9SbIEtn3J0tot9nms0qHut+sUPqbgokwszmeY0zlCHJVUGk0/nPp2ZuHBBKFCYLTLfkBBGnm55HZdadZIUxz7t2ctOeGsbdsZi2SZ77Yl5YO4U6+OXZu1lBUsgkOLbvwMw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YEjlaD4uF90DKPJ1ARfbHMImcls3xImKYH+WwaGkTUntk5nOwUHJIW81MgUcSdOejycmIDUqGaOPG595/aJ73jJQFWI0rFucXraAYZJ6ad4nKqu4+cTub1BG5idfAI8XHpLiSScOBYtcXWvQEwWPZ9Nz8KsxFcQh08vwXP8e2lsyYmTkI97HIK07wC7U6wZsmkrpN1Y1tAn5dade9Riyc4ptJej7MuvziwOcChWeBanH82VVeopynZeJPLB1bnZIvOGdQ7ivZDSBz02fDpMsCC+TGRSGb3OA3Ui48MMe04aM7ScbVZs8HT0HA01X3oAQ/GyiyQusqmTxbPI4Q4bxNg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, "Tim (Xen.org)" <tim@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 20 Jan 2023 14:20:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.01.2023 15:10, Andrew Cooper wrote:
> On 20/01/2023 1:10 pm, Jan Beulich wrote:
>> On 20.01.2023 12:45, Andrew Cooper wrote:
>>> This is a global variable (actually 3, one per GUEST_PAGING_LEVEL), operated
>>> on using atomics only (with no regard to what else shares the same 
>>> cacheline),
>>> which emits a diagnostic (in debug builds only) without changing any program
>>> behaviour.
>>>
>>> Based on read-only p2m types including logdirty, this diagnostic can be
>>> tripped by entirely legitimate guest behaviour.
>> Can it? At the very least shadow doesn't use p2m_ram_logdirty, but "cooks"
>> log-dirty handling its own way.
>>
>>> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
> Thanks.
> 
>> with the last sentence above corrected (if need be: removed).
> 
> I can remove it, but I feel as if there ought to be something there.
> 
> The other RO types are ram_ro, grant_map_ro and ram_shared.  shared has
> hopefully been unshared before getting to this point, while the other
> two have unclear semantics (as neither exist in real systems).

I'd be okay as long as the "including logdirty" part isn't there. If
we're unsure, perhaps then also instead of "can" either "might" or
"can possibly"?

Jan



 


Rackspace

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