From nobody Sun Feb 8 11:40:44 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 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=1665064269; cv=none; d=zohomail.com; s=zohoarc; b=DKBQfYeczd/0dMqXrChQvw7OlDUT9W4mcSkJVArOQg5t3lc7Yrn/yZHNtqc36k3RCHuzJX7KCWOz3EBAzgqkvP0i3my40F65Qs0ARFDo4CEUwj9dj/krapf9l+l2Ullc13TsELfmxvCbUCKECrhUbz5803GhGemLl19l2vp6e88= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665064269; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=yBKoRaYRWindzj4Qe4vhjpsvOe9VAfo2vu985NauBIE=; b=IyCZPlm6PZYrtNl4k7B0jRt02lpJ0pPaKi1IbZd8eh1sKHs5K5mI1gkTTUzTvpog6g+Uh0do70DmWCLEJV/rvlqGXwlegWIOezozgyrI3dSeio/NQDRnRXqkiiXvmVYkXw3LMyFYOnT3RP4WLx18yAsR1mqmrjD4qcoAdWz5oaA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1665064269856343.3237752725105; Thu, 6 Oct 2022 06:51:09 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-638-JDj5EoIcM0eaL6pRXAvNeg-1; Thu, 06 Oct 2022 09:50:06 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9DA623C11C75; Thu, 6 Oct 2022 13:49:58 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 886F02166B2E; Thu, 6 Oct 2022 13:49:58 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5142619465B6; Thu, 6 Oct 2022 13:49:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 01CBC19465B6 for ; Thu, 6 Oct 2022 13:49:57 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id DAC2114583FC; Thu, 6 Oct 2022 13:49:56 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8291C14583FA for ; Thu, 6 Oct 2022 13:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665064268; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=yBKoRaYRWindzj4Qe4vhjpsvOe9VAfo2vu985NauBIE=; b=DTxgow0/S405drT3y/mWdRc0Wb8ZsSXMfZilQelRK7HcQdQRMEhzJ8Sdp/ileneQUJTjyj RjY9dxG2v8IW4v6mc6CI0pKbm+dgoJw2dpmyAOaFCz7yAS9FgzXOml1qjeYtmKSCkA4fJz nnW0rzqJuKd+Pr/aUcl3QPE8KgkCJ8w= X-MC-Unique: JDj5EoIcM0eaL6pRXAvNeg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH v4 5/8] qemu_process: Enable SCHED_CORE for QEMU process Date: Thu, 6 Oct 2022 15:49:47 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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) X-ZM-MESSAGEID: 1665064271875100001 For QEMU_SCHED_CORE_EMULATOR or QEMU_SCHED_CORE_FULL the QEMU process (and its vCPU threads) should be placed into its own scheduling group. Since we have the dummy process running for exactly this purpose use its PID as an argument to virCommandSetRunAmong(). Signed-off-by: Michal Privoznik Reviewed-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 7385f9fb28..808558227e 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -7539,6 +7539,9 @@ qemuProcessLaunch(virConnectPtr conn, virCommandSetMaxProcesses(cmd, cfg->maxProcesses); if (cfg->maxFiles > 0) virCommandSetMaxFiles(cmd, cfg->maxFiles); + if (cfg->schedCore =3D=3D QEMU_SCHED_CORE_EMULATOR || + cfg->schedCore =3D=3D QEMU_SCHED_CORE_FULL) + virCommandSetRunAmong(cmd, priv->schedCoreChildPID); =20 /* In this case, however, zero means that core dumps should be * disabled, and so we always need to set the limit explicitly */ --=20 2.35.1