Hi,

On 7/5/19 11:47 PM, Denis Obrezkov wrote:
> So,
> 
> 
>> I am going to try to expose the whole crossbar to the dom0 by mapping it
>> into dom0 and after that to unmap it and restrict the use of the control
>> register via register_mmio_handler. Don't know whether this will work.
>>
> 
> I tried and write now now visible progress:
> --- a/xen/arch/arm/platforms/omap5.c
> +++ b/xen/arch/arm/platforms/omap5.c
> @@ -23,6 +23,8 @@
>  #include <xen/vmap.h>
>  #include <asm/io.h>
> 
> +#define OMAP5_CTRL_CORE_MPU_IRQ 0x00000A48
> +
>  void omap5_init_secondary(void);
>  asm (
>          ".text                              \n\t"
> @@ -124,6 +126,8 @@ static int omap5_specific_mapping(struct domain *d)
>      map_mmio_regions(d, gaddr_to_gfn(OMAP5_SRAM_PA), 32,
>                       maddr_to_mfn(OMAP5_SRAM_PA));
> 
> +    map_mmio_regions(d, gaddr_to_gfn(OMAP5_CTRL_CORE_MPU_IRQ), 300,
> +                    maddr_to_mfn(OMAP5_CTRL_CORE_MPU_IRQ));
>      return 0;
>  }
> 
> 
I can see there is a mistake in OMAP5_CTRL_CORE_MPU_IRQ address, so, I
tried the right address for the MPU crossbar cotrol registers and I also
tried to expose the whole control CTRL register but unsurprisingly
haven't succeeded.

-- 
Regards, Denis Obrezkov

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to