From nobody Tue Feb 10 01:16:31 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=1644346407; cv=none; d=zohomail.com; s=zohoarc; b=oG004mkcLe7kbYDpZZnvMV3emUmfh0P7th2jWprH3ylKqSDuXGWQxNH/yFhWZVGQVBSRgQ3F6UMAlvh0LAOmsC7mbICyynoYQt199Qlvik2hQkQBrgw7BpekUYE4aPKX+olYZCDYs8bdSJGSrB4YB9JngFWMYoyVo76Wyk/GfWo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644346407; 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=X3GBA/MTY5lS8+wvnlyQLs1+vGn+8/N3u2z4YpGj/X0=; b=KjwOZlZp5PFUQND8jDmvSEpNzALX8ppQ+XVpocLaAXDAy07ZHPdIKsiOhdY6xAZaphAxoCTrO51s/dATIlTZ12xU5V/G9dVFH+MuAnV2U9rYTvnLpPEzEv7aBvENLljy76dmjWKc3/oSBBJf0OYfqiDN5kJxSmgAaYrYPmr5D50= 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 16443464075602.993156700983036; Tue, 8 Feb 2022 10:53:27 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-20-8iV9dkM8PWSvyaugJwJoJg-1; Tue, 08 Feb 2022 13:53:22 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A47D851096; Tue, 8 Feb 2022 18:53:16 +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 4D772753DD; Tue, 8 Feb 2022 18:53:16 +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 14DA41826D1F; Tue, 8 Feb 2022 18:53:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 217BsjLI032489 for ; Mon, 7 Feb 2022 06:54:45 -0500 Received: by smtp.corp.redhat.com (Postfix) id 698EB6F950; Mon, 7 Feb 2022 11:54:45 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id C7BDB6F9CC for ; Mon, 7 Feb 2022 11:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644346406; 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=X3GBA/MTY5lS8+wvnlyQLs1+vGn+8/N3u2z4YpGj/X0=; b=UHz7fBLzEROLibKFIjbBAZ/WPx26uxW2inobr2f1IJLObEqcQe7AB8odHcN2ZyzsoMEQJ/ V3XK1v0X7OABrUlHI0HzTtGuxr3EEThINrjK/mMxXVDL0lfma3/GGVNNfMZ9uqdmKW9/QK K6A/o7TmqQWB61za+7bFAWFaOXKV9xQ= X-MC-Unique: 8iV9dkM8PWSvyaugJwJoJg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 6/7] qemu: process: Move call to qemuProcessRefreshCPU after cpu probe Date: Mon, 7 Feb 2022 12:53:58 +0100 Message-Id: <4632c787aaaed2c925938363328f43348f4e0df1.1644234805.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.11 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: 1644346409808100001 Content-Type: text/plain; charset="utf-8" Similarly to previous commit we need to probe the vcpus first. Signed-off-by: Peter Krempa --- src/qemu/qemu_process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index f99b14b846..bd9c6ed747 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -8850,14 +8850,14 @@ qemuProcessReconnect(void *opaque) ignore_value(qemuSecurityCheckAllLabel(driver->securityManager, obj->def)); - if (qemuProcessRefreshCPU(driver, obj) < 0) - goto error; - if (qemuDomainRefreshVcpuInfo(driver, obj, QEMU_ASYNC_JOB_NONE, true) = < 0) goto error; qemuDomainVcpuPersistOrder(obj->def); + if (qemuProcessRefreshCPU(driver, obj) < 0) + goto error; + if (qemuDomainUpdateMemoryDeviceInfo(driver, obj, QEMU_ASYNC_JOB_NONE)= < 0) goto error; --=20 2.34.1