From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74777C432C2 for ; Wed, 25 Sep 2019 16:32:07 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 492A121D7A for ; Wed, 25 Sep 2019 16:32:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 492A121D7A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iDACj-0000Oi-QX; Wed, 25 Sep 2019 16:31:49 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iDACi-0000Oc-CF for xen-devel@lists.xenproject.org; Wed, 25 Sep 2019 16:31:48 +0000 X-Inumbo-ID: f73ff826-dfb1-11e9-97fb-bc764e2007e4 Received: from mx1.suse.de (unknown [195.135.220.15]) by localhost (Halon) with ESMTPS id f73ff826-dfb1-11e9-97fb-bc764e2007e4; Wed, 25 Sep 2019 16:31:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 69402AFB0; Wed, 25 Sep 2019 16:31:43 +0000 (UTC) Message-ID: From: Dario Faggioli To: Juergen Gross , xen-devel@lists.xenproject.org Date: Wed, 25 Sep 2019 18:31:41 +0200 In-Reply-To: <20190914085251.18816-21-jgross@suse.com> References: <20190914085251.18816-1-jgross@suse.com> <20190914085251.18816-21-jgross@suse.com> Organization: SUSE User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Subject: Re: [Xen-devel] [PATCH v3 20/47] xen: let vcpu_create() select processor X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Volodymyr Babchuk , Roger Pau =?ISO-8859-1?Q?Monn=E9?= Content-Type: multipart/mixed; boundary="===============7845916170885279481==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============7845916170885279481== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-itk3MAj8BxuHdVfTVcTo" --=-itk3MAj8BxuHdVfTVcTo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2019-09-14 at 10:52 +0200, Juergen Gross wrote: > Today there are two distinct scenarios for vcpu_create(): either for > creation of idle-domain vcpus (vcpuid =3D=3D processor) or for creation > of > "normal" domain vcpus (including dom0), where the caller selects the > initial processor on a round-robin scheme of the allowed processors > (allowed being based on cpupool and affinities). >=20 > Instead of passing the initial processor to vcpu_create() and passing > on to sched_init_vcpu() let sched_init_vcpu() do the processor > selection. For supporting dom0 vcpu creation use the node_affinity of > the domain as a base for selecting the processors. User domains will > have initially all nodes set, so this is no different behavior > compared > to today. In theory this is not guaranteed as vcpus are created only > with XEN_DOMCTL_max_vcpus being called, but this call is going to be > removed in future and the toolstack doesn't call > XEN_DOMCTL_setnodeaffinity before calling XEN_DOMCTL_max_vcpus. >=20 > To be able to use const struct domain * make cpupool_domain_cpumask() > take a const domain pointer, too. >=20 > Signed-off-by: Juergen Gross > Acked-by: Andrew Cooper > Acked-by: Julien Grall > Reviewed-by: Dario Faggioli Regards --=20 Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <> (Raistlin Majere) --=-itk3MAj8BxuHdVfTVcTo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEES5ssOj3Vhr0WPnOLFkJ4iaW4c+4FAl2Llm4ACgkQFkJ4iaW4 c+4Ipw/+NJkVN3HXVcYKwQhfJCMqaG4W0LzpoPDTCBTpw/8yl5ce42QQ3W/ky/Hf fxZyV7X7wPZz0Sp/kiAEk92YpGRKC1wHBh9p/PuxKTl8VNv0VwCTBefmHSwqyE/e C5dHu7h3cz1vojCaILgPQCblyPwH3qVUeeZNiygE6ns9sScgiZtoFqQI5ZgbS2Wk ZUE03lwJncygJ4Fv66KvEpu4lv4YX3pLT9rF4r8G5tPtEYa+Qg84nz37soKPvn1q TQkjnqermywlD6Ry2pGurTTT0fPlKzZg744V3Vjv09DwBkLr1VNrg0TruZ96bb0Z L486qz02tD81Msx1wsXggYVyyXbuRqUm3C1uHMBtGZ9iSZdPRBtLx6lwRG8MsY+m 29DEEvwB4z1Sa+Fi9nVuXZL2TMcstthyRv1xvXJRbcwchTlR4f04oLaVPRyVYT3F wMEoCqfXkZXSeVReOyGTTdO9OwIjrSWrHy4/DWfbZvU7CjkRfrz2G8het0lhc4Kj d4PBltkZEXquO3z20uvz9ch42PL4qVbBNQwtnz/9gpn+I9TgRpQm5zfkl4pCPmBk MFRnTJ07Fvq/wLEcAxuy7K6ixJHjVwJu9UK8OeOnVNMK2f2eA6Fw3O9VwCNdrf+f cNKZzZ08lww1Yv15V241d1w5QQ6EjM/oACFi0OwNpvezG6Qk35U= =JUh5 -----END PGP SIGNATURE----- --=-itk3MAj8BxuHdVfTVcTo-- --===============7845916170885279481== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============7845916170885279481==--