All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] today's XSAs assorted 4.12 candidate follow-up
@ 2019-03-05 13:21 Jan Beulich
  2019-03-05 13:25 ` [PATCH 1/3] x86/mm: fix #GP(0) in switch_cr3_cr4() Jan Beulich
                   ` (5 more replies)
  0 siblings, 6 replies; 43+ messages in thread
From: Jan Beulich @ 2019-03-05 13:21 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross

At least patch 1 is a clear candidate for 4.12; the others are less clear,
but I wanted to put them on the table nevertheless. The patches are
grouped together just because of the XSA relationship; they don't
depend on one another.

1: x86/mm: fix #GP(0) in switch_cr3_cr4()
2: IOMMU/x86: make page type checks consistent when mapping pages
3: memory: restrict XENMEM_remove_from_physmap to translated guests

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 43+ messages in thread
* Re: [PATCH 2/3] IOMMU/x86: make page type checks consistent when mapping pages
@ 2019-03-05 15:23 Juergen Gross
  0 siblings, 0 replies; 43+ messages in thread
From: Juergen Gross @ 2019-03-05 15:23 UTC (permalink / raw)
  To: Jan Beulich; +Cc: George Dunlap, Andrew Cooper, xen-devel

On 05/03/2019 16:21, Jan Beulich wrote:
>>>> On 05.03.19 at 14:50, <jgross@suse.com> wrote:
>> On 05/03/2019 14:26, Jan Beulich wrote:
>>> There are currently three more or less different checks:
>>> - _get_page_type() adjusts the IOMMU mappings according to the new type
>>>   alone,
>>> - arch_iommu_populate_page_table() wants just the type to be
>>>   PGT_writable_page,
>>> - iommu_hwdom_init() additionally permits all other types with a type
>>>   refcount of zero.
>>> The canonical one is in _get_page_type(), and as of XSA-288
>>> arch_iommu_populate_page_table() also has no need anymore to deal with
>>> PGT_none pages. In the PV Dom0 case, however, PGT_none pages are still
>>> necessary to consider, since in that case pages don't get handed to
>>> guest_physmap_add_entry(). Furthermore, the function so far also
>>> established r/o mappings, which is not in line with the rules set forth
>>> by the XSA-288 change.
>>>
>>> For arch_iommu_populate_page_table() to not encounter PGT_none pages
>>> anymore even in cases where the IOMMU gets enabled for a domain only
>>> when it is already running, replace the IOMMU dependency in
>>> guest_physmap_add_entry()'s handling of PV guests to check just the
>>> system wide state instead of the domain property.
>>>
>>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>>
>> I'm unable to decide whether this patch should make it into 4.12 or not
>> with the given information. What happens without this patch (worst
>> case)?
> 
> I don't think anything really bad can happen, or else this would have
> been part of one of the XSAs. The patch is bringing things in line with
> what XSA-288 did, without it being obvious what bad could result
> from not doing so. The larger part of change here is for hwdom only
> anyway.

Okay, thanks. I think this patch should be deferred then.


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2019-05-14 11:17 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 13:21 [PATCH 0/3] today's XSAs assorted 4.12 candidate follow-up Jan Beulich
2019-03-05 13:25 ` [PATCH 1/3] x86/mm: fix #GP(0) in switch_cr3_cr4() Jan Beulich
2019-03-05 13:58   ` Andrew Cooper
2019-03-05 13:26 ` [PATCH 2/3] IOMMU/x86: make page type checks consistent when mapping pages Jan Beulich
2019-05-13 13:44   ` George Dunlap
2019-05-13 13:44     ` [Xen-devel] " George Dunlap
2019-05-13 13:59     ` Jan Beulich
2019-05-13 13:59       ` [Xen-devel] " Jan Beulich
2019-05-14 11:17     ` Jan Beulich
2019-05-14 11:17       ` [Xen-devel] " Jan Beulich
     [not found] ` <5C7E78B0020000780021BB1E@suse.com>
2019-03-05 13:28   ` [PATCH 1/3] x86/mm: fix #GP(0) in switch_cr3_cr4() Juergen Gross
2019-03-05 13:28 ` [PATCH 3/3] memory: restrict XENMEM_remove_from_physmap to translated guests Jan Beulich
2019-04-02 10:26   ` Julien Grall
2019-04-02 16:10     ` Jan Beulich
2019-04-08 11:47       ` Julien Grall
2019-04-08 11:47         ` [Xen-devel] " Julien Grall
2019-04-08 14:29         ` Jan Beulich
2019-04-08 14:29           ` [Xen-devel] " Jan Beulich
2019-04-09  9:50           ` Julien Grall
2019-04-09  9:50             ` [Xen-devel] " Julien Grall
2019-04-09 12:21             ` Jan Beulich
2019-04-09 12:21               ` [Xen-devel] " Jan Beulich
2019-04-14 16:33               ` Julien Grall
2019-04-14 16:33                 ` [Xen-devel] " Julien Grall
2019-04-25 10:36                 ` Jan Beulich
2019-04-25 10:36                   ` [Xen-devel] " Jan Beulich
2019-04-08 11:58   ` Julien Grall
2019-04-08 11:58     ` [Xen-devel] " Julien Grall
2019-04-08 14:02     ` Jan Beulich
2019-04-08 14:02       ` [Xen-devel] " Jan Beulich
2019-04-08 16:10       ` Julien Grall
2019-04-08 16:10         ` [Xen-devel] " Julien Grall
2019-05-13  8:06   ` Ping: " Jan Beulich
2019-05-13  8:06     ` [Xen-devel] " Jan Beulich
2019-05-13 14:35   ` George Dunlap
2019-05-13 14:35     ` [Xen-devel] " George Dunlap
2019-05-13 15:13     ` Jan Beulich
2019-05-13 15:13       ` [Xen-devel] " Jan Beulich
     [not found] ` <5C7E78F6020000780021BB21@suse.com>
2019-03-05 13:50   ` [PATCH 2/3] IOMMU/x86: make page type checks consistent when mapping pages Juergen Gross
2019-03-05 15:21     ` Jan Beulich
     [not found] ` <5C7E798E020000780021BB43@suse.com>
2019-03-05 13:53   ` [PATCH 3/3] memory: restrict XENMEM_remove_from_physmap to translated guests Juergen Gross
2019-03-05 15:22     ` Jan Beulich
2019-03-05 15:23 [PATCH 2/3] IOMMU/x86: make page type checks consistent when mapping pages Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.