From nobody Mon May 6 15:41:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1595427615; cv=none; d=zohomail.com; s=zohoarc; b=jUc3DXF8zFRhVL0AdXYbIPChx7D+FmH3NRyw03wDek2G2mYssltQ+ItIUHKRlEwbWnj41uPBHJYbO5soUNEY8vC+DiWEHLJLpuhqDNuKeGWEDz7H3bmNz7/wYk1ZCJF5oHVNLDmGpSXJAzGk6XLuLGKnc5Hu94jsBhu9qRvQBzM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595427615; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=DF0Ht/PF6COb25ccgTKOlJG80uDUQ2lqX/wgkUexUJo=; b=QddVmV06xVOeE9rNlwCFF0prTarPp82EKcIqY5AYAgrb5NCAuvGCRKYLxBv+4hT+4US1uSEHiMk/rIhcDpLBCT1u2M/SD/+am8lj0AWJEQ8mIwXmoZqxrenwD6JiJ1fAWEn1LJlj1j38Fder6oqdKCTGuanF2SplbtwyEEeCVtM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1595427615551859.0318512072193; Wed, 22 Jul 2020 07:20:15 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-479-uA1lNl7EM2qaM60bYoQGyw-1; Wed, 22 Jul 2020 10:20:11 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EAE168015F3; Wed, 22 Jul 2020 14:20:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A41DC71D16; Wed, 22 Jul 2020 14:20:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 345D61809561; Wed, 22 Jul 2020 14:20:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06MDrjQX004254 for ; Wed, 22 Jul 2020 09:53:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3D6E42DE73; Wed, 22 Jul 2020 13:53:45 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.40.208.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9634E2DE76 for ; Wed, 22 Jul 2020 13:53:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595427614; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=DF0Ht/PF6COb25ccgTKOlJG80uDUQ2lqX/wgkUexUJo=; b=fQ8f/JQCBuLljKB4e/VjEgZgLQN0y/Ox6DsbnwgmKykFjbbUdRkeiw/UMrKYqauQALVWY6 whHu4MpfuhGkfxbwqqEaM1WJTCDYggmXinI9rf78zlNNYWEswXTygp4r+3s+GhOxs57nVC clTrsg4OEgQHElNQwBHpe5aEVi1Rt1c= X-MC-Unique: uA1lNl7EM2qaM60bYoQGyw-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] qemu: Fix affinity typo Date: Wed, 22 Jul 2020 15:53:37 +0200 Message-Id: <6c7ba7b496374c5d7d4fb925f38415f087234641.1595426012.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Fixes: 4c0398b5284d14c55eca51095673b6fadbbd85fb Signed-off-by: J=C3=A1n Tomko --- Pushed as trivial. src/qemu/qemu_process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 1006f41614..ec6ca14bbd 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -2653,7 +2653,7 @@ qemuProcessSetupPid(virDomainObjPtr vm, virDomainNumatuneMemMode mem_mode; virCgroupPtr cgroup =3D NULL; virBitmapPtr use_cpumask =3D NULL; - virBitmapPtr afinity_cpumask =3D NULL; + virBitmapPtr affinity_cpumask =3D NULL; g_autoptr(virBitmap) hostcpumap =3D NULL; g_autofree char *mem_mask =3D NULL; int ret =3D -1; @@ -2679,7 +2679,7 @@ qemuProcessSetupPid(virDomainObjPtr vm, * its config file */ if (qemuProcessGetAllCpuAffinity(&hostcpumap) < 0) goto cleanup; - afinity_cpumask =3D hostcpumap; + affinity_cpumask =3D hostcpumap; } =20 /* @@ -2720,11 +2720,11 @@ qemuProcessSetupPid(virDomainObjPtr vm, =20 } =20 - if (!afinity_cpumask) - afinity_cpumask =3D use_cpumask; + if (!affinity_cpumask) + affinity_cpumask =3D use_cpumask; =20 /* Setup legacy affinity. */ - if (afinity_cpumask && virProcessSetAffinity(pid, afinity_cpumask) < 0) + if (affinity_cpumask && virProcessSetAffinity(pid, affinity_cpumask) <= 0) goto cleanup; =20 /* Set scheduler type and priority, but not for the main thread. */ --=20 2.26.2