[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86/shadow: Drop dubious lastpage diagnostic
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Date: Fri, 20 Jan 2023 14:41:41 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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=3LvgxN8E1xCvkab3P++iD20lLsM22e2OAYIDxZ8wvBk=; b=UYY+DcE3imjlg/HUHuIL0dfOrtn2vk8bVzDYzlrCVr6MXHHRNT4sELVm1fDjHjI6p+YWr91IXZ5BM7ClH8ga0OXGEzu0SEV5cSmtI6y2ZglHxxnvKshUo3B5G0lDvLFFLAPSdyl4gKcv3+dte06gFWkvnWy/hGGyI/YmJXfxXU1qQDcMyPUV9nBTmqd/tpFhyMLgyToEs/RVE45x5Sixd2HnuVvMU4J68xsZwQ9iMv0yfB7YjNqraxQT5JbbmGpprvQJ1pCRGI4Gf2odh69YKQ1Jr4JaUmtEFYfkrVeJt0m87kBL9Cp4t+XvPHmwrVQ3e6CksLnrj0DIOVWMT+59JA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bPkiklFfDZIF7aKC4tlxkekrAzkiJxPbsVHTMRSU5kbW7TMH8UE3LYESNmc1aFxQXqK3e9dymNmWlLYpW673M2g0dJj/uYFOgAMC5Jgws/OQQYWXZil+U8FOPey4NcPp3OZGoidJv2qjYNsgY7vh+mDtUf0HFHyiQISWApWABqr/v6Gg8QuYY41wLmjJOTaGtZUWphqVHVrp1rU/F88Sm5NV2guNpgXjFwAd2KOONBimU5EOoQTCyXVl5rqd5N8VmqEUOKKmcuG7VmJMt7dMq+jt2xU/yiYrNaEXwG7R7NZ/JEG384ZIvut/2jsPGr6fBZACL2S1xPjfvIiM+JLZew==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Delivery-date: Fri, 20 Jan 2023 14:41:55 +0000
- Ironport-data: A9a23:l6AhwaBtdl7SQhVW/yTiw5YqxClBgxIJ4kV8jS/XYbTApDIq1jRSx 2EcW2/SbKneYjb8e98naY7ipEtS68fWn983QQY4rX1jcSlH+JHPbTi7wuUcHAvJd5GeExg3h yk6QoOdRCzhZiaE/n9BCpC48T8nk/nNHuCnYAL9EngZbRd+Tys8gg5Ulec8g4p56fC0GArIs t7pyyHlEAbNNwVcbyRFtMpvlDs15K6p4GpC5gRkDRx2lAS2e0c9Xcp3yZ6ZdxMUcqEMdsamS uDKyq2O/2+x13/B3fv8z94X2mVTKlLjFVDmZkh+AsBOsTAbzsAG6Y4pNeJ0VKtio27hc+ada jl6ncfYpQ8BZsUgkQmGOvVSO3kW0aZuoNcrLZUj2CA6IoKvn3bEmp1T4E8K0YIwvfp1WW5Ar vEjJGokdzOqjNCH0Z6wVbw57igjBJGD0II3nFhFlGucIdN4BJfJTuPN+MNS2yo2ioZWB/HCa sEFaD1pKhPdfxlIPVRRA5U79AuqriCnL3sE9xTI9OxuvDe7IA9ZidABNPL8fNCQSNoTtUGfv m/cpEzyAw0ANczZwj2Amp6prr6VwXijCNlKfFG+3vdwiV/O/jMBMzo1dGvlh9rmoGPkcd0Kf iT4/QJr98De7neDXtT7GhG1vnOAlhodQMZLVf037hmXzajZ6BrfAXILJgOtc/Qjvc4yADAvi FmAmoqzASQ16eLKD3WA6r2TsDW+fzAPKnMPbjMFSg1D5MT/pIY0jVTESdML/LOJs+AZ0ArYm 1iixBXSTZ1I5SLX/81XJWz6vg8=
- Ironport-hdrordr: A9a23:IcMVYqtWqgEkqRPeyAXGcxV37skCEYAji2hC6mlwRA09TyXBrb HSoB1p726utN9xYgB7pTnkAsK9qBznhOdICOUqTNWftUzdyRGVxeJZnMzfKl/balXDH4dmvM 8LH8cRab2AbmSSz/yKmzVQeOxQpOVvhZrY49s2uE0dKj2CBZsQijuQp22gf3GeDzM2eabRXK DsmfauIFGbCCwqhhDRPAhdY8HGqtGOktb+ax8PABAq5WC1/EKVwbr2Hx6V334lIk1y6KZn/m 7fnwPj4KK/9/m91x/HzmfWq49bgd3717J4dYSxY+UuW0PRYzyTFc1ccqzHuCpwrPCk6V4snt WJqxA8P95r43eUem2uuxPi1wTpzT5rshbZuBWlqGqmpda8SCMxCsJHi44cehzF61A4tNU51K 5QxWqWu5deEBuFliXg4NrDUQ1siyOP0DEfuP9Wi2YaXZoVabdXo4Ba9ERJEI0YFCa/84wjGP kGNrCq2N9GNVeBK3zJtGhmx9KhGn4pGA2dX0QEssuJlzBLgXFw1SIjtYEit2ZF8Ih4R4hP5u zCPKgtnqpJVNUKYaV0A/pESderC3bKXQnHPAupUBja/OhuAQONl3aAiI9FpN1DVvczvdgPcN WoaiIWiYZEE3ieR/Fn/PZwg1LwqaWGLEDQIrI33ek9hlTRfsufDcTYciFcryKJmYRsPuTLH/ KoJtZUD/vvaWzjB5xN0xDiV4I6EwhZbCUW0uxLH26ms4bQJ4yvuujScPPYIbL2CzYqWmn2H3 sEW3z4IsJc7ke2XGPj6SKhK0/QRg==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHZLMTJYmmsHN9huU+OUU/Zg+9KvK6nR7kAgAAQrgCAAALWgIAABU+AgAAAiIA=
- Thread-topic: [PATCH] x86/shadow: Drop dubious lastpage diagnostic
On 20/01/2023 2:39 pm, Andrew Cooper wrote:
> On 20/01/2023 2:20 pm, Jan Beulich wrote:
>> 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"?
> I'll just delete it. It's not important enough for the time it's taking.
Oh, I see what you mean. Yeah, that will work.
~Andrew
|