From nobody Tue Feb 10 03:56:09 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1542123934188132.20401334030464; Tue, 13 Nov 2018 07:45:34 -0800 (PST) Received: from localhost ([::1]:54562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMase-0003Ss-Sz for importer@patchew.org; Tue, 13 Nov 2018 10:45:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMar5-0002cT-Nv for qemu-devel@nongnu.org; Tue, 13 Nov 2018 10:43:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMar2-0002Vo-A2 for qemu-devel@nongnu.org; Tue, 13 Nov 2018 10:43:54 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:54930) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMar1-0002Cp-9U for qemu-devel@nongnu.org; Tue, 13 Nov 2018 10:43:52 -0500 Received: by mail-wm1-x343.google.com with SMTP id r63-v6so12460837wma.4 for ; Tue, 13 Nov 2018 07:43:18 -0800 (PST) Received: from cloudburst.twiddle.net (26.red-176-87-105.dynamicip.rima-tde.net. [176.87.105.26]) by smtp.gmail.com with ESMTPSA id s16sm3479709wrt.77.2018.11.13.07.43.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 07:43:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TK0Mu/aguozz4Q5UAQWbHigk/WZ2HXR6efE27bzs4U0=; b=MqN7FyaRBi2ycnAsp13PV8hSmdsvGe6ad0rMTnHwB+mTONYDqZRT/ER/u8ChLSCCzh x/6C/FM71YIS5pUPRaa/+WOAhRL9FjYKxl4naqkZ6aGBWoCBYi8hGpZTf98jZphlIM76 bpLzdp47pUGHSVeDpYME+MSQzXVjjUDASxg/A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TK0Mu/aguozz4Q5UAQWbHigk/WZ2HXR6efE27bzs4U0=; b=F21A92zCaLORW62Ml3fZsiY7I6ECpdvEej/h7kVLWrIYMsdhulWlO1LXmykv9tksd+ k+qXaya5e9WRb6MDE4pzrZZSdUtIP+/KDEMEmgxmOVD8Gp/Gse55T07gmK1/3EzAi/KD wvOnG/6hKqhhgC/HTnujm7TaUMS3Wd2jZSN8hgyYQw8WaAMVd6pSDa0hw3n7nUmSO+Gf un83Jx0T7xfBuepW+NQFypDTRaoBHEwVKDkQpklp3z+S1qKTxDJFr+PLOHmY+C3vfr19 UvQmZcqMl5NROOHcTiO9tda+GqF80rX23q2i3T7qVS2RUZPVBhcGNjzMF9bAlVQ0nDwV N5EA== X-Gm-Message-State: AGRZ1gIBmeI/PiPVXDLS2DwqM4sUASQMqoqO0vnJ58V7ZM5FRj0fN3dQ w+Q1Nv9fjfI2wii9Mlfz/rYdsxvNvx03fA== X-Google-Smtp-Source: AJdET5cfUvirB6rUC/72YfwYoACRI+JX939TaCFkYMNxpjMvBdUxyAy7RqCVTOE7CrEv//BZzvj4Nw== X-Received: by 2002:a1c:5788:: with SMTP id l130-v6mr3601975wmb.60.1542123797517; Tue, 13 Nov 2018 07:43:17 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 13 Nov 2018 16:42:23 +0100 Message-Id: <20181113154226.14396-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181113154226.14396-1-richard.henderson@linaro.org> References: <20181113154226.14396-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH v4 1/4] target/arm: Install ARMISARegisters from kvm host X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The ID registers are replacing (some of) the feature bits. We need (some of) these values to determine the set of data to be handled during migration. Signed-off-by: Richard Henderson --- target/arm/kvm_arm.h | 1 + target/arm/kvm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index 21c0129da2..6393455b1d 100644 --- a/target/arm/kvm_arm.h +++ b/target/arm/kvm_arm.h @@ -183,6 +183,7 @@ void kvm_arm_destroy_scratch_host_vcpu(int *fdarray); * by asking the host kernel) */ typedef struct ARMHostCPUFeatures { + ARMISARegisters isar; uint64_t features; uint32_t target; const char *dtb_compatible; diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 09a86e2820..44dd0ce6ce 100644 --- a/target/arm/kvm.c +++ b/target/arm/kvm.c @@ -158,6 +158,7 @@ void kvm_arm_set_cpu_features_from_host(ARMCPU *cpu) =20 cpu->kvm_target =3D arm_host_cpu_features.target; cpu->dtb_compatible =3D arm_host_cpu_features.dtb_compatible; + cpu->isar =3D arm_host_cpu_features.isar; env->features =3D arm_host_cpu_features.features; } =20 --=20 2.17.2