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

Re: [PATCH v2 2/6] xen/sched: create public function for cpupools creation


  • To: Luca Fancellu <luca.fancellu@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • Date: Tue, 15 Mar 2022 17:45:42 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tdqwOLsydB3QGIE8UtWDUhYHs6hDV7qNDrCkFHQ/LMU=; b=K4McM3JZfWAPDUllIZBCtaXNABYm6miNift5SiaBxYzCISZrfPeYHfEmreWGfNQYwjUNpLpgt3Hk/JR5fiRN9FiKlxJ1JWNMu7MFV5EABcHP8Mx3D2wfhpuJ+98Vst9ivFiHUCgdlI5r/OfIkI/63ppriRUbVPYMwwoclRa01dOs0LVhLL0isASuA6DTa78r/J3XhTQJv4ohmZy8IxzYIUoHkp2hB70oQiOjmiPS4LFl9p0MNc67tPYHDlZ7ZqK/zyIwXetWxHQoyJdqSeFBQ0oqVgl4bfCU2HQi3BumeKGeakW3Bnowf49NAzUsYtTIkuKTOVLS65AWOa/Hj+f1Wg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fd3CkHmW9DXQCqPIMyLT0TS+Rc5Nr7ZCpieupJRIpF/zdSI1yfdWPKZ23/N1Q00KvhW7PJ/KUKaRl6/YeKoHp2mlAIIF4S/c8lesD3qywN4/IHlVp7c0BGjQ5FiAxA8vjPN9ygC5f8knHwu84aTSwkPx48Yf2q/IxfiEZ2XDNXBQMRwCl1IgSxC6w9rFXeeFo01sxZUvweC2n7L81aXn9cnfNFDHtVr/AW5thQxW1/LkRhXgsuzPbwKGWrQ2wIrS8Jod5HtKx5OZIYnyDgW6fB6GLotTJFReTJAXmO+uzMQw5DvUPptWgUQtjU/rkLd69Oplze3fd5G04MxN674JYw==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "wei.chen@xxxxxxx" <wei.chen@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 15 Mar 2022 17:45:53 +0000
  • Ironport-data: A9a23:zFNvF6s9ZXuK92LLrs1yA9ffMOfnVN5eMUV32f8akzHdYApBsoF/q tZmKWGOa6nfYTbyL48jaoTi9UgA6sKBmoRlTlBo+Xw2EC5G+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZhSAgk/nOHNIQMcacUsxLbVYMpBwJ1FQyw4bVvqYy2YLjW1jU5 IupyyHiEATNNwBcYzp8B52r8HuDjNyq0N/PlgVjDRzjlAa2e0g9VPrzF4noR5fLatA88tqBb /TC1NmEElbxpH/BPD8HfoHTKSXmSpaKVeSHZ+E/t6KK2nCurQRquko32WZ1he66RFxlkvgoo Oihu6BcRi8bJ6aRlusUSiVWLB1SHKkZ/5XJYlmW5Jn7I03uKxMAwt1rBUAye4YZ5vx2ESdF8 vlwxDIlN07ZwbjsmfTiF7cq1p9LwMrDZevzvllJyz3DAOlgapfEW6jQvvdT3Ssqh9AIFvHbD yYcQWQ/MkubPE0RUrsRIJ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AhmY8Hz4/nw0L72ax8PABAqrCOUiymz1bL8Gx+Emj8DTjJm294ZgC j4uj28wp/mn+Cwyxfa2WOWxY9RgsHdxtxKA9HJotQJKw/rlh2jaO1aKv6/VXEO0aOSAWQR4Z 3xSiQbToNOArTqDyeISC7WqkzdOfAVmibfIBGj8CPeSIfCNU0H4oJ69Pxkm13imhAdVZhHod J2NyjyjesnMTrQ2Cv6/NTGTBdsiw69pmcji/caizhFXZIZc6I5l/1VwKp5KuZIIMvB0vFuLA CuNrCp2N9GNVeBK3zJtGhmx9KhGnw1AxedW0AH/siYySJfknx1x1YRgJV3pAZMyLstD51fo+ jUOKVhk79DCscQcKJmHe8EBc+6EHbETx7AOH+bZV7nCKYEMXTQrIOf2sR+2Mi6PJgTiJcikp XIV11V8WY0ZkL1EMWLmIZG9xjcKV/NKwgFCvsukKSRloeMNoYDaxfzO2zGu/HQ1skiPg==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHYNKHhVJSeUIj1QkeG/vMUhWMLjKzAv7cA
  • Thread-topic: [PATCH v2 2/6] xen/sched: create public function for cpupools creation

On 10/03/2022 17:10, Luca Fancellu wrote:
> diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h
> index 10ea969c7af9..47fc856e0fe0 100644
> --- a/xen/include/xen/sched.h
> +++ b/xen/include/xen/sched.h
> @@ -1145,6 +1145,22 @@ int cpupool_move_domain(struct domain *d, struct 
> cpupool *c);
>  int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op);
>  unsigned int cpupool_get_id(const struct domain *d);
>  const cpumask_t *cpupool_valid_cpus(const struct cpupool *pool);
> +
> +/*
> + * cpupool_create_pool - Creates a cpupool
> + * @pool_id: id of the pool to be created
> + * @sched_id: id of the scheduler to be used for the pool
> + *
> + * Creates a cpupool with pool_id id.
> + * The sched_id parameter identifies the scheduler to be used, if it is
> + * negative, the default scheduler of Xen will be used.
> + *
> + * returns:
> + *     pointer to the struct cpupool just created, on success
> + *     NULL, on cpupool creation error

What makes you say this?  Your new function will fall over a NULL
pointer before it returns one...

~Andrew

 


Rackspace

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