|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v7 10/10] xen/common: do not implicitly permit access to mapped I/O memory
On 26/05/14 12:51, Jan Beulich wrote: On 26.05.14 at 13:42, <julien.grall@xxxxxxxxxx> wrote:On 26/05/14 12:37, Jan Beulich wrote:On 26.05.14 at 13:24, <julien.grall@xxxxxxxxxx> wrote:On 26/05/14 12:14, Jan Beulich wrote:On 26.05.14 at 12:53, <julien.grall@xxxxxxxxxx> wrote:On 26/05/14 11:14, Jan Beulich wrote:Or maybe I wasn't wrong - the patch context doesn't really make clear whether it's the granting or mapping operation that gets adjusted here (since an earlier patch moved the mapping one into this function). In the case of an HVM guest (or ARM guest), the permission seems to be used only during DOMCTL_memory_mapping hypercall. So I understand the permission as "I'm allowed to map/unmap this MMIO range from a guest P2M". If we request the guest to have the permission on this range, we also allow the guest to map in its P2M (assuming XSM is not there) theses MMIOs. I don't think, at least on ARM, we want to let the guest doing what it wants with the mapping MMIO region. With your requirements, we have to call 2 hypercalls rather than one for memory mapping, even if we don't want to allow the guest modifying iomem range.While I can see you not allowing modification, even r/o access may (and likely will) be problematic for MMIO.AFAIU, iomem_access_permitted is only here to allow modification of this range via hypercall. Sorry, I should have read again what I wrote. I tried to be clearer above. -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |