From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tianyang Chen Subject: [PATCH] sched_rt: Improved nested virtualization performance Date: Wed, 18 Nov 2015 22:50:21 -0500 Message-ID: <1447905022-5633-1-git-send-email-tianyangpenn@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: dario.faggioli@citrix.com, xumengpanda@gmail.com, Tianyang Chen List-Id: xen-devel@lists.xenproject.org In nested virtualization, choosing the smaller value for the time slice between the MAX_SCHEDULE and the budget will cause high host CPU usage. Signed-off-by: Tianyang Chen --- xen/common/sched_rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c index 4372486..9da3f35 100644 --- a/xen/common/sched_rt.c +++ b/xen/common/sched_rt.c @@ -889,7 +889,7 @@ rt_schedule(const struct scheduler *ops, s_time_t now, bool_t tasklet_work_sched } } - ret.time = MIN(snext->budget, MAX_SCHEDULE); /* sched quantum */ + ret.time = MAX_SCHEDULE; /*should be used in nested virtualization*/ ret.task = snext->vcpu; /* TRACE */ -- 1.7.9.5