|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/arm: avoid vtimer flip-flop transition in context switch
On 15/06/2022 11:36, Wei Chen wrote: Hi Julien, Hi Wei, -----Original Message----- From: Julien Grall <julien@xxxxxxx> Sent: 2022年6月15日 17:47 To: Wei Chen <Wei.Chen@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx Cc: nd <nd@xxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>; Bertrand Marquis <Bertrand.Marquis@xxxxxxx>; Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx> Subject: Re: [PATCH] xen/arm: avoid vtimer flip-flop transition in context switchSo in this patch, we adjust the formula to use "offset - boot_count" first, and then use the result to plus cval. This will avoid the uint64_t overflow.Technically, the overflow is still present because the (offset - boot_count) is a non-zero value *and* cval is a 64-bit value.Yes, GuestOS can issue any valid 64-bit value for their usage.So I think the equation below should be reworked to... I think there are. This can be easily triggered by a vCPU setting a large cval. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |