Re: [PATCH v4] xen/arm: avoid overflow when setting vtimer in context switch

2022-07-14 Thread Julien Grall
Hi Bertrand, On 07/07/2022 16:35, Bertrand Marquis wrote: Hi Julien, On 7 Jul 2022, at 16:33, Julien Grall wrote: Hi Jiamei, On 06/07/2022 09:25, Jiamei Xie wrote: virt_vtimer_save() will calculate the next deadline when the vCPU is scheduled out. At the moment, Xen will use the following

Re: [PATCH v4] xen/arm: avoid overflow when setting vtimer in context switch

2022-07-07 Thread Bertrand Marquis
Hi Julien, > On 7 Jul 2022, at 16:33, Julien Grall wrote: > > Hi Jiamei, > > On 06/07/2022 09:25, Jiamei Xie wrote: >> virt_vtimer_save() will calculate the next deadline when the vCPU is >> scheduled out. At the moment, Xen will use the following equation: >> virt_timer.cval + virt_time_base.o

Re: [PATCH v4] xen/arm: avoid overflow when setting vtimer in context switch

2022-07-07 Thread Julien Grall
Hi Jiamei, On 06/07/2022 09:25, Jiamei Xie wrote: virt_vtimer_save() will calculate the next deadline when the vCPU is scheduled out. At the moment, Xen will use the following equation: virt_timer.cval + virt_time_base.offset - boot_count The three values are 64-bit and one (cval) is contro

[PATCH v4] xen/arm: avoid overflow when setting vtimer in context switch

2022-07-06 Thread Jiamei Xie
virt_vtimer_save() will calculate the next deadline when the vCPU is scheduled out. At the moment, Xen will use the following equation: virt_timer.cval + virt_time_base.offset - boot_count The three values are 64-bit and one (cval) is controlled by domain. In theory, it would be possible that t