From nobody Sun Feb 8 23:41:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1628780130; cv=none; d=zohomail.com; s=zohoarc; b=ANNpKcW6WS3MKbFeE0egkpWabBujc7CP0zkwP8cTmifgl8ObxZRyosksnpi1jWS8vUZZnr8agBSiVtSvd0UpMpMj3OSKlg0Y1gJ9XTd0UmWNTKw0F7rSShPUqlGH7M3D8RdTpCoO7vC/lOYMg6zafI7g8snj0QnlOyRxdVZ1AcY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628780130; 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=DkYZ96YjtGx4PYu2Gx3b2OvSgGACXisKzV1KbDCazGg=; b=IYVe0zRKJ7LynaEYVGkSRr5g9nKlHKPXIoPhmeIJLzWXROMElp2g74MJLavki8HMc9O5ccxdffNkHWU1fs1RO5f/nGFBBM+h83Alg6hiktr5xCqwvDuwS7/vycQ5yFv96LwAWSODrnsgOqtLD5nlHFj/KNCTz4l6mJCRfeSC+Qw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1628780130182335.59866293457026; Thu, 12 Aug 2021 07:55:30 -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-204-I-AtEzZIMe2CABCjCo-iyQ-1; Thu, 12 Aug 2021 10:55:27 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0611187D545; Thu, 12 Aug 2021 14:55:23 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DDD8877708; Thu, 12 Aug 2021 14:55:22 +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 ACA794A70C; Thu, 12 Aug 2021 14:55:22 +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 17CEnV1w008457 for ; Thu, 12 Aug 2021 10:49:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id 58DC31F6; Thu, 12 Aug 2021 14:49:31 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id A969119D9F for ; Thu, 12 Aug 2021 14:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628780129; 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=DkYZ96YjtGx4PYu2Gx3b2OvSgGACXisKzV1KbDCazGg=; b=NCMHtAnB/h+MCBTzhWxXakBhav30j+fMLDj0fVnp8qvRWIuz7G1G1JNhwOoC7E+H1qPql+ 5c01UGxZnSx1MzSVyiM58XigR720cMalMXFW5dmCneqnB/c+Nan0qnh+lLlSkaLc1fnRVb 3B+V9/W64NynJtKT79o5rqkniHjaBAc= X-MC-Unique: I-AtEzZIMe2CABCjCo-iyQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 09/22] qemu: capabilities: Probe QEMU_CAPS_SMP_DIES from the QMP schema Date: Thu, 12 Aug 2021 16:49:02 +0200 Message-Id: In-Reply-To: References: 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.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628780130671100001 Content-Type: text/plain; charset="utf-8" The configurability of the number of dies in a CPU can be infered from the presence of the 'die-id' field in 'query-hotpluggable-cpus'. Signed-off-by: Peter Krempa --- src/qemu/qemu_capabilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 0491111fe5..ebccea2ace 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -1581,6 +1581,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsQMPSc= hemaQueries[] =3D { { "query-display-options/ret-type/+sdl", QEMU_CAPS_SDL }, { "query-display-options/ret-type/+egl-headless", QEMU_CAPS_EGL_HEADLE= SS }, { "query-iothreads/ret-type/poll-max-ns", QEMU_CAPS_IOTHREAD_POLLING }, + { "query-hotpluggable-cpus/ret-type/props/die-id", QEMU_CAPS_SMP_DIES = }, { "query-named-block-nodes/arg-type/flat", QEMU_CAPS_QMP_QUERY_NAMED_B= LOCK_NODES_FLAT }, { "screendump/arg-type/device", QEMU_CAPS_SCREENDUMP_DEVICE }, { "set-numa-node/arg-type/+hmat-lb", QEMU_CAPS_NUMA_HMAT }, @@ -3253,7 +3254,6 @@ static struct virQEMUCapsCommandLineProps virQEMUCaps= CommandLine[] =3D { { "overcommit", NULL, QEMU_CAPS_OVERCOMMIT }, { "sandbox", "enable", QEMU_CAPS_SECCOMP_SANDBOX }, { "sandbox", "elevateprivileges", QEMU_CAPS_SECCOMP_BLACKLIST }, - { "smp-opts", "dies", QEMU_CAPS_SMP_DIES }, { "spice", "disable-agent-file-xfer", QEMU_CAPS_SPICE_FILE_XFER_DISABL= E }, { "spice", "gl", QEMU_CAPS_SPICE_GL }, { "spice", "unix", QEMU_CAPS_SPICE_UNIX }, --=20 2.31.1