From patchwork Wed Jul 6 15:31:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9216525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4D04F607D9 for ; Wed, 6 Jul 2016 15:34:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F2A92684F for ; Wed, 6 Jul 2016 15:34:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33C1A26AE3; Wed, 6 Jul 2016 15:34:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EB3C52684F for ; Wed, 6 Jul 2016 15:34:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKono-0006Nf-Od; Wed, 06 Jul 2016 15:31:52 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKonn-0006NO-5q for xen-devel@lists.xenproject.org; Wed, 06 Jul 2016 15:31:51 +0000 Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id 6C/DA-07320-6642D775; Wed, 06 Jul 2016 15:31:50 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRWlGSWpSXmKPExsXitHSDvW6aSm2 4wcJD7Bbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bD5e1MBbfYKr6eaWRvYDzO2sXIySEh4C/R ffAgmM0moCvRtOUvWxcjB4eIgIrE7b0GIGFmgRKJxbumsIPYwgJxEi/7/zKD2CxAJa9uvgCze QU8JS5cXsUIMVJO4vzxn2BxTgEviVU7lrOA2EJANa9e3WYGGS8koCYxd308RKugxMmZT1ggVk lIHHzxAqxEQoBb4m+3/QRGvllIqmYhqVrAyLSKUb04tagstUjXQi+pKDM9oyQ3MTNH19DAVC8 3tbg4MT01JzGpWC85P3cTIzCYGIBgB+PBZudDjJIcTEqivCzfqsOF+JLyUyozEosz4otKc1KL DzHKcHAoSfCKKteGCwkWpaanVqRl5gDDGiYtwcGjJML7WgkozVtckJhbnJkOkTrFqMux4Mftt UxCLHn5ealS4rw3QIoEQIoySvPgRsBi7BKjrJQwLyPQUUI8BalFuZklqPKvGMU5GJWEeS+CTO HJzCuB2/QK6AgmoCN+ulSDHFGSiJCSamDczhujq7IuZ+3k0A87ys4rrOZUld79IFeRfdKxO2E fdy6e0T/tgsHx545PCnbsvpH5++VVnvs1FY2bm72W//jusd9XvFYtRj3kztqqZv6jxnl/Y8Od G/JN5hwTTVt5ZaPNzW07m0PmrvE4v5tXJNaCp/3nFcZTUUE66Zr3Fhfx7j9ypm7W5ZMflViKM xINtZiLihMBIMZWiqwCAAA= X-Env-Sender: prvs=98829954f=Ian.Jackson@citrix.com X-Msg-Ref: server-13.tower-206.messagelabs.com!1467819106!33149535!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 11144 invoked from network); 6 Jul 2016 15:31:49 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-13.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 6 Jul 2016 15:31:49 -0000 X-IronPort-AV: E=Sophos;i="5.28,319,1464652800"; d="scan'208";a="371579373" From: Ian Jackson To: Date: Wed, 6 Jul 2016 16:31:12 +0100 Message-ID: <1467819074-16310-7-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1467819074-16310-1-git-send-email-ian.jackson@eu.citrix.com> References: <1467819074-16310-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Wei Liu , Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 6/8] ts-hosts-allocate-Executive: pass $plan to hid_find_possibilities X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP We are going to want this to implement the new diverse-CLASS hostflag. Signed-off-by: Ian Jackson CC: Wei Liu --- ts-hosts-allocate-Executive | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index 69f1cf6..d4a96d5 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -272,8 +272,8 @@ sub compute_hids () { } } -sub hid_find_possibilities ($) { - my ($hid) = @_; +sub hid_find_possibilities ($$) { + my ($hid, $plan) = @_; delete $hid->{Candidates}; @@ -647,7 +647,7 @@ sub attempt_allocation { foreach my $hid (@hids) { delete $hid->{Allocated}; - hid_find_possibilities($hid); + hid_find_possibilities($hid, $plan); } optimally_order_hids();