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

Re: [PATCH 2/4] x86/P2M: relax guarding of MMIO entries


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 1 Sep 2021 10:08:44 +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=Br8yhggrtkI50zpoT8ExDWcF1KSQhL1o7JlLr+hMIpo=; b=PmhZhWD3JJ7+0BKLmeRO0TmzNX6ZRSbgKvQWMhMoe39WeH93upKIRYG7BMdccfF6kLYEj822vqtAZ/5r/SLzgLUvWcLGaFpymfKcoiUf3Hj3K6MLmvfqfjTy3TJEK2XwKtqis3U1TNs3Mb4qNetzvvPuh5MgbdcbHNqoGj/hyM+mkvyeGDSK9lFMsfsotZLalkT0jvmurKg/pJWRglGLIVgcKlNG7p+OybW1QA9xqYX4VQrh9WXiAmXs030nCK5XhqPLD0yhqqZXlhnL6ODtASPSW8yqmY/7oR+ibRxjmSOl98i2TWcuRKuD706f2IDyImfvjxVTBd5828ti8j0oug==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XK0kMNcnc8IIDbFp4NSqXfEuVXtBJbqr/l3V38eAN/6vjabGZfaA9x/ag1T1ffaYMp0oy6FZdsCU6tBFrURqL4pBAy/6AUimlcx8QGRpNCNwID2xgOLb4eDaExFETZsMRD6AzUa0wgbTeByrzmZAHlFGZrignhoYoXCjcKtYH8lOVkMpUkw9gEgxdfi4u3sCos84cJw3hc8N30ABhI3RhQso+t6X3Qg1eK2Ob1UrmymdPahs+vmvv+NweA13sz5Y/K7E/k8vwZIc/LqSG/OiukZiutaXRPt/n60HeNLevVwU7B3s0kvrfIqTFpTo5vPzZThRM68wnUtdu/wbpoIr/w==
  • 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: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 01 Sep 2021 08:09:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 31.08.2021 17:38, Jan Beulich wrote:
> On 31.08.2021 17:25, Andrew Cooper wrote:
>> On 31/08/2021 14:26, Jan Beulich wrote:
>>> On 31.08.2021 15:16, Andrew Cooper wrote:
>>>> On 30/08/2021 14:02, Jan Beulich wrote:
>>>>> Further permit "access" to differ in the "executable" attribute. While
>>>>> ideally only ROM regions would get mapped with X set, getting there is
>>>>> quite a bit of work. Therefore, as a temporary measure, permit X to
>>>>> vary. For Dom0 the more permissive of the types will be used, while for
>>>>> DomU it'll be the more restrictive one.
>>>> Split behaviour between dom0 and domU based on types alone cannot
>>>> possibly be correct.
>>> True, but what do you do.
>>>
>>>> DomU's need to execute ROMs too, and this looks like will malfunction if
>>>> a ROM ends up in the region that HVMLoader relocated RAM from.
>>>>
>>>> As this is a temporary bodge emergency bugfix, don't try to be clever -
>>>> just take the latest access.
>>> And how do we know that that's what is going to work?
>>
>> Because it's the pre-existing behaviour.
> 
> Valid point. But for the DomU case there simply has not been any
> pre-existing behavior. Hence my desire to be restrictive initially
> there.

Further to this: Using the last-value-set approach also puts us at
risk of running into a similar issue again when the ordering of
some operations changes elsewhere.

Jan




 


Rackspace

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