[Xen-devel] xen/arm: potential bug in advance_pc

2019-05-14 Thread Lukas Jünger
Hello all, in the function advance_pc in xen/arch/arm/traps.c in line 1655,1656 you can find the following code: 1655 BUG_ON( (!psr_mode_is_32bit(cpsr)||!(cpsr&PSR_THUMB)) 1656 && (cpsr&PSR_IT_MASK) ); This code seems to check that we are not running in thumb mode and that th

[Xen-devel] [xen/arm]: Mapping physical memory to dom0/domU

2019-05-29 Thread Lukas Jünger
Hi all, Is there a way to map a region of physical memory to dom0/domU? Let's say I have a custom device mapped at that memory region and I want either dom0 or a domU to have full access to this device. There seems to be a way to share memory between dom0 and a domU, maybe also between domU and

[Xen-devel] vgic initialization with maximum number of interrupt lines fails

2019-03-22 Thread Lukas Jünger
Hi all, I use Xen in an ARMv8 simulator for research purposes. I ran into the following problem during dom0 creation in vgic initialization. Bringup fails because -EINVAL is returned by the code below. xen/arch/arm/vgic.c in domain_vgic_init(): 132 nr_spis = ROUNDUP(nr_spis, 32); 133 134

Re: [Xen-devel] vgic initialization with maximum number of interrupt lines fails

2019-03-22 Thread Lukas Jünger
On 3/22/19 4:20 PM, Julien Grall wrote: On 22/03/2019 13:30, Lukas Jünger wrote: Hi all, Hi, Hi Julien, Thank you for your quick reply. I use Xen in an ARMv8 simulator for research purposes. I ran into the following problem during dom0 creation in vgic initialization. Bringup fails

Re: [Xen-devel] vgic initialization with maximum number of interrupt lines fails

2019-03-22 Thread Lukas Jünger
Hi, On 3/22/19 5:12 PM, Julien Grall wrote: Hi, On 22/03/2019 15:39, Lukas Jünger wrote: On 3/22/19 4:20 PM, Julien Grall wrote: On 22/03/2019 13:30, Lukas Jünger wrote: I use Xen in an ARMv8 simulator for research purposes. I ran into the following problem during dom0 creation in vgic

Re: [Xen-devel] [PATCH] arm/dom0: Add check for maximum number of supported vGIC IRQs

2019-04-05 Thread Lukas Jünger
On 4/1/19 1:24 PM, Julien Grall wrote: Hi Lukas, Hi, You sent this patch twice. Is there any difference between the two? No, they are the same. I accidentally send it twice. On 3/27/19 7:19 AM, Lukas Juenger wrote: Xen's vGIC implementation supports a maximum number of 992 IRQ lines. NIT