[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] schedule: mask out XEN_RUNSTATE_UPDATE from state entry time


  • To: Andrii Anisov <andrii.anisov@xxxxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Thu, 18 Jul 2019 11:10:08 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nb+e7RSBVWcx6Vz5BSy7DrPAIb0NOXjtJ3G2hVso6d4=; b=NPfiw1Lr9tP4y/olV1UJS+1BMmRUGWofovPKEHOQaS53sOh99CdKtopP2kDvHs7yKHjYViocAVUGZ+VoyPbC+8kwyav0VRrqqOJBt84kg5wjTHO86EQNRykuydkazgJyWfGd3R66vUJx28H46YXLvTWAa9tUSVRC4Fyyt/VeFz8G1uBtu85f7LaA6sdItDfdUTPMO0QdaVvm9n+TnWCjlp1k6GVcu1TfcGjj7jbzrpVsTTuOc2sxQPnNmfTKerAlNa5z6B3ONxHzXQFTRi86IHTDr1u/DcohJcf2Lg4ocws9xe4NCIngPQug40Xuqzx1qkgfMQnYzn5dCbcaN1Z0uQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IAhQnRxv2wEPP87qewjEUGlVtHRapFjz3y4Su84Q40VbR6CCK3Hb7iDF2k6ePzjIZO9agKkviKtH6bBMQ5b+EWPMrRENyvXrgN1U9jCpTdO734/jQEUUNRqDkOUMBUMBo3VjapJw1Dw3whZL0EGs/BGUkMwtBjkI/qllY44rmHikVNwIWc+yIvzJC24Anqjbo4JG5XMU1ugj7B/58u5WHUJcPPBxFlviInYczuWSfrBwMGablQSxhQeDjtV98VD0Q/l7TDubHyTLqbqvFcwWq853OWYmKlMtpj9+4bJigG0uP1HB01J5dWuyPHwbcYyAW0wemPMm71FEHnhoR0GoWw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: George Dunlap <george.dunlap@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrii Anisov <andrii_anisov@xxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>
  • Delivery-date: Thu, 18 Jul 2019 11:10:42 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVPU7dWxB3gAbicEW8M/sijNABxqbQOA+A
  • Thread-topic: [Xen-devel] [PATCH] schedule: mask out XEN_RUNSTATE_UPDATE from state entry time

On 18.07.2019 11:54, Andrii Anisov wrote:
> Using XEN_RUNSTATE_UPDATE mask during the process of copying runstate
> values to guest causes runstate entry time to be eventually considered
> negative on a calculation of the time delta. So the XEN_RUNSTATE_UPDATE
> should be masked out during the calculation of the time spent in the
> particular runstate.

A concrete scenario where update_runstate_area() and vcpu_runstate_change()
can actually race would be very worthwhile to point out here. In particular
on Arm I'm not (yet?) seeing how this could happen.

Considering the value of XEN_RUNSTATE_UPDATE it must be a rather rare race
anyway, I would guess.

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.