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 37415C432C2 for ; Thu, 26 Sep 2019 10:01:33 +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 0834E217F4 for ; Thu, 26 Sep 2019 10:01:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0834E217F4 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 1iDQaJ-0005Ol-Ly; Thu, 26 Sep 2019 10:01:15 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iDQaI-0005Og-75 for xen-devel@lists.xenproject.org; Thu, 26 Sep 2019 10:01:14 +0000 X-Inumbo-ID: 91eb43f2-e044-11e9-97fb-bc764e2007e4 Received: from mx1.suse.de (unknown [195.135.220.15]) by localhost (Halon) with ESMTPS id 91eb43f2-e044-11e9-97fb-bc764e2007e4; Thu, 26 Sep 2019 10:01:12 +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 AA328AFB4; Thu, 26 Sep 2019 10:01:11 +0000 (UTC) Message-ID: <668e765f59e35aa55cf1923eabc5124de00bbde1.camel@suse.com> From: Dario Faggioli To: Juergen Gross , xen-devel@lists.xenproject.org Date: Thu, 26 Sep 2019 12:01:09 +0200 In-Reply-To: <20190914085251.18816-22-jgross@suse.com> References: <20190914085251.18816-1-jgross@suse.com> <20190914085251.18816-22-jgross@suse.com> Organization: SUSE User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Subject: Re: [Xen-devel] [PATCH v3 21/47] xen/sched: use sched_resource cpu instead smp_processor_id in schedulers 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 , Tim Deegan , Robert VanVossen , Julien Grall , Josh Whitehead , Meng Xu , Jan Beulich , Ian Jackson Content-Type: multipart/mixed; boundary="===============6167953185413218668==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============6167953185413218668== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-GoCqvzPDr6qeGgsJhQcf" --=-GoCqvzPDr6qeGgsJhQcf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2019-09-14 at 10:52 +0200, Juergen Gross wrote: > Especially in the do_schedule() functions of the different schedulers > using smp_processor_id() for the local cpu number is correct only if > the sched_unit is a single vcpu. As soon as larger sched_units are > used most uses should be replaced by the master_cpu number of the > local > sched_resource instead. >=20 > Add a helper to get that sched_resource master_cpu and modify the > schedulers to use it in a correct way. >=20 > Signed-off-by: Juergen Gross > 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) --=-GoCqvzPDr6qeGgsJhQcf 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+4FAl2MjGYACgkQFkJ4iaW4 c+43XQ/+LM1YGnwr1Q9L7cYEffh2AmBgw/kAzRLIAEMuGZElGQJ1MhguzM2iudbG O04/lGytTcSb+MGSdXJ+UJFJiaV2sRpEL2KV+yawtN0zjcfKoPbKpItiofgNKibp Y+QcRO7GqdvykUfvZMxZy0gTAaMZdGFcSwIFoAcsGD1Jw9ehCPW7lyPhKj1HG8oq WWX9sybgObM1WjkWOvQOrWo3ISQCBW7SNJyyKB41lafQbouiTxa66JKI3Fw7CnF6 A+ztxiV+D9cN6M0uePjlC2Wpbg4ndSM/4ds8fJf46dpGprGf4SUad5qLoqprEUaE g7bbFzBckrOmsnyaN49HtxSIf+Yt5RZwXKPByVIhTpaJ44EEjDl87kBdLpXtE6vN dJSNVTP+TiZvqY3o0JH3LZNqrCuTtHcyZtOJtF5GNRTb/sqkvY62DwZ44hg1Kus5 lTeZeZR285gvFcknu8hHFbm4Y9UTwoKALEwzTnTxZtYP5xl5tH1viYSEQyzmG/pU 9vOrrbJRJ/+FWHYCM3F03K0/3Tj623Cd6IFG1tjOoDyyvLDV8uIf+jSVtp0jWlD5 LLxDVibRMmT/75kZSdvetOCV1TnAkYRIm7HixQ/2ORX3PsxoW8kLzd5tXyw3P1fO x2X8G+au65AkGliuxq9KM/sXXd5r3ZwEmPOIwK8TcCdWaVlt8Jk= =Oide -----END PGP SIGNATURE----- --=-GoCqvzPDr6qeGgsJhQcf-- --===============6167953185413218668== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============6167953185413218668==--