[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH 09/60] xen/sched: let pick_cpu return a scheduler resource
- To: Juergen Gross <JGross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Dario Faggioli <dfaggioli@xxxxxxxx>
- Date: Fri, 19 Jul 2019 18:06:04 +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=6BWnAHtb8ovmtioYmNfahf5uVstMM6zjev/XueH8Blg=; b=LL1h9rtiw9f62e7zfRN7pxzBFwye7h1xCeCZKMRUtRcSm4D5yq8/LTOmN1JfU7qBtEV+l9ShG0w/mG6u3c2qv07PSb1FNLwZxy29ePFMb3KIzP9Pjx1gZqUzY1Rz36cz0b6F0EaAnRvNO4QLUYUmVT2NgG+T7zISEPTc5lwU3pdvhQicOooVnGI/2MZ/g5ODt964EdPGGHt+5spOXzP6BlhYmWp1a5Za/sh0ZiffEiSJkBU2Ml322yf7F9LyM/wTfiN5tHtUAmMK7aRCDZDZB+tVKMGS/z7hAeE9Ka5l2ot4zbwpoQjPnXn3VtnZt88Jf4W3UJaBV3squHk41FOJFQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jaOgvlPATaBhBgP7zsDHN6/BlPKEsvuC7dNoByJZopN4sWyKCCiM2zypkcJHsdom6s2/ksdQyBthUV2Ws1aE2EhFElr6FiHuXZ36Fwe6A063lY9Qm4Ayg4CfBt6M+wJzOgnTXPVGXJ2Ryn71TX/ULoo8C6nF+On8aQUu7FV0cdyZupU6C/vEliG1E6qoh2AN1ayPELzL0gRQtpej3Svdo27sHjl0pNMjXcdywZeRc8/lIAzh/leBQZoC+Dz9U/I2khTbSS2Olo+DxwEol4fID8TV6mnLwl4h7Js4I+5pSE1Hy5R74fvcRQbRxUjs9Keb4HQC0cfXwgTwF1vPyZMOmA==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=dfaggioli@xxxxxxxx;
- Cc: "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "wl@xxxxxxx" <wl@xxxxxxx>, "konrad.wilk@xxxxxxxxxx" <konrad.wilk@xxxxxxxxxx>, "george.dunlap@xxxxxxxxxxxxx" <george.dunlap@xxxxxxxxxxxxx>, "tim@xxxxxxx" <tim@xxxxxxx>, "ian.jackson@xxxxxxxxxxxxx" <ian.jackson@xxxxxxxxxxxxx>, "robert.vanvossen@xxxxxxxxxxxxxxx" <robert.vanvossen@xxxxxxxxxxxxxxx>, "julien.grall@xxxxxxx" <julien.grall@xxxxxxx>, "josh.whitehead@xxxxxxxxxxxxxxx" <josh.whitehead@xxxxxxxxxxxxxxx>, "mengxu@xxxxxxxxxxxxx" <mengxu@xxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>
- Delivery-date: Fri, 19 Jul 2019 18:06:37 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVPlyhdL9O67r6BUmrsKV8zN3O1A==
- Thread-topic: [Xen-devel] [PATCH 09/60] xen/sched: let pick_cpu return a scheduler resource
On Tue, 2019-05-28 at 12:32 +0200, Juergen Gross wrote:
> Instead of returning a physical cpu number let pick_cpu() return a
> scheduler resource instead. Rename pick_cpu() to pick_resource() to
> reflect that change.
>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
>
Reviewed-by: Dario Faggioli <dfaggioli@xxxxxxxx>
with:
> --- a/xen/include/xen/sched-if.h
> +++ b/xen/include/xen/sched-if.h
> @@ -351,14 +351,14 @@ static inline void sched_migrate(const struct
> scheduler *s,
> else
> {
> unit->vcpu->processor = cpu;
> - unit->res = per_cpu(sched_res, cpu);
> + unit->res = get_sched_res(cpu);
> }
> }
>
this hunk moving in patch 8, as noted while reviewing it already. :-)
Regards
--
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|