From nobody Sat Feb 7 06:39:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1588752564; cv=none; d=zohomail.com; s=zohoarc; b=D7yQipEaeNcUCpm3KrOPG7Ax/pkN9OzCHVGhaYXRYqGKf4Sf3wTNVP8rW3iGp09rlib7yIkCLo13PnLP4XeH0bA0SgLeu/uf3xwYnuDgVSYk/gVnXOC0Iavn/mCWe/BIv8Rm9X4ylihgpgTXKtFyOXHKWhXiJSFS+CrG6kkkwVY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588752564; 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=LjUhk63CZwQ4AXJ4P/jlabB/d/n1q/ZMSve95nt3x3M=; b=leHFjBmhxDj1/fRozv8jfq3HMPspXKZDB9j96FosrgXyxN3wtdxUunhD2lxDdbYjU+PbYf+lymNo6rLQhcvd86tHwIY9dvWGHLSSouTRLhrUJpsYdp7Tmn/kn6h9G5iTd+cDO8bnapjYatfWvZV1rr262NWgZp5EcKABEsTfrJA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1588752564387634.5573365221402; Wed, 6 May 2020 01:09:24 -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-466-N2ftWxNjM3CuDz7YJMykhg-1; Wed, 06 May 2020 04:09:19 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F241E460; Wed, 6 May 2020 08:09:13 +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 7C009100EBA4; Wed, 6 May 2020 08:09:11 +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 B7FB31809542; Wed, 6 May 2020 08:09: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 046893KY009161 for ; Wed, 6 May 2020 04:09:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id AC479397; Wed, 6 May 2020 08:09:03 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.40.195.217]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7D157385 for ; Wed, 6 May 2020 08:09:00 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id 4B9902404C6; Wed, 6 May 2020 10:08:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588752563; 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=LjUhk63CZwQ4AXJ4P/jlabB/d/n1q/ZMSve95nt3x3M=; b=Ju5pL6Te4VvVPOhrZqBu1BbdoscNS5ZG6oIhLNgYR2VCQr5NB5tca3vKpQpmi3CmM0dhVH XBBsjm9yvvNE0xzFiav/BF3NzqD+dgUVwMvnjCmErucsKVYoyS2Pgxg2+7SL/HJLif+UB/ RKvaxM9j41i5FZkQLtZljwOP6TUiw08= X-MC-Unique: N2ftWxNjM3CuDz7YJMykhg-1 From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH] qemu: Don't use CPU from host capabilities as host-model on ARM Date: Wed, 6 May 2020 10:08:29 +0200 Message-Id: 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.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" We never supported host-model CPUs on ARM and we don't want to support them even once patches for direct detection of host CPU are merged. And since using host CPU definition for host-model CPUs exist only for backward compatibility, we should not use it for any host-model support added in the future. Such enhancement should exclusively use the result of query-cpu-model-expansion. Until proper host-model support is implemented for ARM (if ever), we need to make sure the detected host CPU is not accidentally used for host-model CPUs. Signed-off-by: Jiri Denemark Reviewed-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_capabilities.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 47f88481c8..7b32511c3d 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -3569,6 +3569,8 @@ virQEMUCapsInitCPUModel(virQEMUCapsPtr qemuCaps, } else if (ARCH_IS_X86(qemuCaps->arch)) { ret =3D virQEMUCapsInitCPUModelX86(qemuCaps, type, modelInfo, cpu, migratable); + } else if (ARCH_IS_ARM(qemuCaps->arch)) { + ret =3D 2; } =20 if (ret =3D=3D 0) --=20 2.26.2