From nobody Tue Feb 10 01:30:23 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 1540381489201321.65928308665843; Wed, 24 Oct 2018 04:44:49 -0700 (PDT) Received: from localhost ([::1]:47698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFHah-0001y7-Vs for importer@patchew.org; Wed, 24 Oct 2018 07:44:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFHTp-0003Yq-M6 for qemu-devel@nongnu.org; Wed, 24 Oct 2018 07:37:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFHTj-0005Gd-TV for qemu-devel@nongnu.org; Wed, 24 Oct 2018 07:37:41 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:35165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFHTh-0005BS-4z for qemu-devel@nongnu.org; Wed, 24 Oct 2018 07:37:34 -0400 Received: by mail-wm1-x344.google.com with SMTP id w186-v6so5025831wmf.0 for ; Wed, 24 Oct 2018 04:37:20 -0700 (PDT) Received: from cloudburst.twiddle.net.net ([185.7.230.213]) by smtp.gmail.com with ESMTPSA id c8-v6sm6769172wrb.6.2018.10.24.04.37.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 04:37:18 -0700 (PDT) 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=FOV0Lojx7yKhqzRBzluXNtUQgRv4mBU7h16zCo1/HP57Jrd0+kA6+eMJnFRu6ZA+9T SGfNcfJ8Ve1lRDQsst0Bnyz1cESMqbiAkAnLruP6bn4KScRoAP0syEhDmlU8DsF63xP3 CmRi/reSAB0iAhFPJUnmpJX2zsFhz+7bPwegw= 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=mpYT6cAmvRdxZ8mqTMykMUkvcqw4bScEmfkJnH9yv7XX+GX5ynkuH9Qe/E9ZH/fNjI hH8Vlryl43Nkvb3rL1zD2yuIBZzdTuTnfQ2raqHwa4LHCRrUiha/lihz8ka22jrgG1aN Os+yrKC90Pr6UvfwAPqZkePcug1WD8/GJ9tHO6Obkv0JwnwaW2XA1T3rgDl7MxbqzBRx 7I/RMlGkJrT56e7L+tz0R8oGUQ1nAIv5yXBCxGXdWmuO+fqoVDheTSnMoYa9YVQGkQtZ r11eQ4rKl6oOJ8rTuDRt1bgR9ORpPDrPATxNIF12uQ5bXcPUtZ7ZcviOmxnFsKoIqY/T JEwA== X-Gm-Message-State: AGRZ1gIn6Y61PjBp6T9TNK2XaTs3BW/BXwFfQLBlwmHrCeYyNS+55lXm nMdU612r1JqVzEAoZItLsnXeS0HJ60Q= X-Google-Smtp-Source: AJdET5cquakoyGia35S88f00Hjbz4gh7BIERTrZuakHICSsOsZaeYmmgOJSzo4qn8+cTkv5Y1nGzUw== X-Received: by 2002:a1c:de06:: with SMTP id v6-v6mr2262786wmg.117.1540381039239; Wed, 24 Oct 2018 04:37:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 24 Oct 2018 12:37:05 +0100 Message-Id: <20181024113709.16599-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181024113709.16599-1-richard.henderson@linaro.org> References: <20181024113709.16599-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::344 Subject: [Qemu-devel] [PATCH 1/5] 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 Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 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 Reviewed-by: Peter Maydell --- 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