[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH 08/60] xen/sched: introduce struct sched_resource
- To: Juergen Gross <JGross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Dario Faggioli <dfaggioli@xxxxxxxx>
- Date: Fri, 19 Jul 2019 17:49:50 +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=lm39oxigH91iV+YN8qVzzTrBJXiYqgHUh2dFxQJER48=; b=EwqkF1u406hiW3U8+uTNayVilSg5YItDCjCXI/tD28FIIwy1Mjmsv4U5kSDGnsIhqpVmvD6AmhNil7PESDdVRg9CBHvY7me2KMUXaQjOzeGLfNg7Gnf9tHJpQK1EJAQvf5U28uffUcfloAzjkI0FxHrlGdP8l8u7VhcrtCcI2XIy30M3FVYJk4dt2hpx6dC2jQhAY6j3pjicm6JvZa01gzWSiLIquHAC9VDnsS0TwOp3ZoVdQmgy4jzq0k+q6+shz33brTk9+jHDGFCVEk3QTQKU3wmgjKmL0GyPjsz27SAp1rLvElP/98Sf8S3ZKo9FfmH0zIuPIurpVdc/d+3soQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kxjuWmpdZDgiMD76C8arPUp7XHHf8CFpT5MS4SApqy1kvR9LWUS+6nFWE5YWDwht505NuqC0OH/sUhPUjoJhTiQpVZxOcyDRb5SzpDTtLrjTlnfOdV7M9F/pxnUuNSrnXLNyXNyfWjgdCanzGCFJCv2vm0MYV8FWfSzm16r/P9+C2Wn48HstsA8wPUc2Bjdm8oNOscAUdVaDtqtMfccdXdzFRtdnxLtH+G7cWL1Iwpl8zkITbbjZNUvL1Y9uEvyOPMPegoMs8xUF+QiIfMjCApsDyITiWq/vHcEVaE8fbzZ84vYxAQd8G9WU+sDaKWdpRmUB7MFeLPqFScTjWAqJYQ==
- 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>, "ian.jackson@xxxxxxxxxxxxx" <ian.jackson@xxxxxxxxxxxxx>, "tim@xxxxxxx" <tim@xxxxxxx>, "julien.grall@xxxxxxx" <julien.grall@xxxxxxx>, "mengxu@xxxxxxxxxxxxx" <mengxu@xxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>
- Delivery-date: Fri, 19 Jul 2019 17:50:20 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVPlpcQU4DYQ9xtkOujbzWGotmdA==
- Thread-topic: [Xen-devel] [PATCH 08/60] xen/sched: introduce struct sched_resource
On Tue, 2019-05-28 at 12:32 +0200, Juergen Gross wrote:
> Add a scheduling abstraction layer between physical processors and
> the
> schedulers by introducing a struct sched_resource. Each scheduler
> unit
> running is active on such a scheduler resource. For the time being
> there is one struct sched_resource per cpu, but in future there might
> be one for each core or socket only.
>
Ah, one more thing.
> +++ b/xen/common/schedule.c
> @@ -63,6 +63,7 @@ static void poll_timer_fn(void *data);
> /* This is global for now so that private implementations can reach
> it */
> DEFINE_PER_CPU(struct schedule_data, schedule_data);
> DEFINE_PER_CPU(struct scheduler *, scheduler);
> +DEFINE_PER_CPU(struct sched_resource *, sched_res);
>
I wouldn't expect this to change too much.
Therefore, does DEFINE_PER_CPU_READ_MOSTLY() make sense?
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
|