From patchwork Fri Apr 12 10:03:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 10897831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A7A5922 for ; Fri, 12 Apr 2019 10:05:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C8C128E0B for ; Fri, 12 Apr 2019 10:05:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20B5328E30; Fri, 12 Apr 2019 10:05:35 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9C9AF28E0B for ; Fri, 12 Apr 2019 10:05:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hEt1u-0007AB-1e; Fri, 12 Apr 2019 10:03:30 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hEt1s-0007A6-Um for xen-devel@lists.xenproject.org; Fri, 12 Apr 2019 10:03:28 +0000 X-Inumbo-ID: 37ab8a2f-5d0a-11e9-92d7-bc764e045a96 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 37ab8a2f-5d0a-11e9-92d7-bc764e045a96; Fri, 12 Apr 2019 10:03:27 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.60,340,1549929600"; d="scan'208";a="83422192" From: Wei Liu To: Date: Fri, 12 Apr 2019 11:03:25 +0100 Message-ID: <20190412100325.11699-1-wei.liu2@citrix.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] xl: handle PVH type in apply_global_affinity_masks again 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: Ian Jackson , Julien Grall , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP A call site in create_domain can call it with PVH type. That site was missed during the review of 48dab9767. Reinstate PVH type in the switch. Reported-by: Julien Grall Signed-off-by: Wei Liu Acked-by: Ian Jackson --- tools/xl/xl_vcpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xl/xl_vcpu.c b/tools/xl/xl_vcpu.c index 93abcc65c0..329512eaaf 100644 --- a/tools/xl/xl_vcpu.c +++ b/tools/xl/xl_vcpu.c @@ -79,6 +79,7 @@ void apply_global_affinity_masks(libxl_domain_type type, switch (type) { case LIBXL_DOMAIN_TYPE_HVM: + case LIBXL_DOMAIN_TYPE_PVH: type_mask = &global_hvm_affinity_mask; break; case LIBXL_DOMAIN_TYPE_PV: