Message ID | 1441788132-6286-3-git-send-email-tushar.jagad@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDD77YW3TADBBBGYYCXQKGQEY7URNUI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 22E2922B19 for <linaro@patches.linaro.org>; Wed, 9 Sep 2015 12:54:29 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf6550977wic.1 for <linaro@patches.linaro.org>; Wed, 09 Sep 2015 05:54:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=oMDp5PUM//zTmEJv1j8+AjkF6BXGS81/vxp9QtV0fwg=; b=O0CvxsMNlyIFYCx93l4Erd8dEOkCWGAn/YFQDve+eXKdDkB3nCv8l70SYhsTcDWbwp inRE8vVInW9ugMqAl/3JTxJFJ45przJZYMDufT6tzBXu6YxeBjTmy/MaWF2hGfvyGHqy uavyzrIAUaws5fnj8nScaFnqDTypxzTdG1teGdGJmks4hQdVKWWGb5aNxiPU1jOLLsGB Z9YHU4Foeqrvg52lCi9MmEzAD5TZ6aPGHqcknQKw7+f8Q8UrMK5zQCbWy5htee76lBqV kMltBEMVtrZ7JSst+rjbgkLXUsHineLV8pQiJjuKnlnhQyKdc155NCoXpKbQIxvbfX0Q GJuA== X-Gm-Message-State: ALoCoQkMsje9D2+Wk5rMW35TOfvas/xVYG2b2493+VfA6N6QITnXoM1eOEm1QSNyLf+YH4mGVwu8 X-Received: by 10.112.144.99 with SMTP id sl3mr7970910lbb.12.1441803268348; Wed, 09 Sep 2015 05:54:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.170 with SMTP id x10ls43141lal.61.gmail; Wed, 09 Sep 2015 05:54:28 -0700 (PDT) X-Received: by 10.152.21.229 with SMTP id y5mr7630543lae.44.1441803268199; Wed, 09 Sep 2015 05:54:28 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id s8si6608162laa.81.2015.09.09.05.54.28 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 05:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbpo4 with SMTP id o4so5090517lbp.2 for <patchwork-forward@linaro.org>; Wed, 09 Sep 2015 05:54:28 -0700 (PDT) X-Received: by 10.152.170.230 with SMTP id ap6mr28781350lac.73.1441803268069; Wed, 09 Sep 2015 05:54:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp315679lbq; Wed, 9 Sep 2015 05:54:27 -0700 (PDT) X-Received: by 10.50.114.1 with SMTP id jc1mr35710726igb.56.1441803267106; Wed, 09 Sep 2015 05:54:27 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l6si2070265igv.47.2015.09.09.05.54.26 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 09 Sep 2015 05:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:42363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1ZZetN-0004RG-Le for patch@linaro.org; Wed, 09 Sep 2015 08:54:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <tushar.jagad@linaro.org>) id 1ZZaxj-000555-AZ for qemu-devel@nongnu.org; Wed, 09 Sep 2015 04:42:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <tushar.jagad@linaro.org>) id 1ZZaxg-0001vb-4N for qemu-devel@nongnu.org; Wed, 09 Sep 2015 04:42:39 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:33089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <tushar.jagad@linaro.org>) id 1ZZaxf-0001v3-WB for qemu-devel@nongnu.org; Wed, 09 Sep 2015 04:42:36 -0400 Received: by pacex6 with SMTP id ex6so4008156pac.0 for <qemu-devel@nongnu.org>; Wed, 09 Sep 2015 01:42:35 -0700 (PDT) X-Received: by 10.67.15.36 with SMTP id fl4mr57938805pad.152.1441788155532; Wed, 09 Sep 2015 01:42:35 -0700 (PDT) Received: from localhost.localdomain.amcc.com ([182.73.239.130]) by smtp.gmail.com with ESMTPSA id tz1sm6130244pbc.50.2015.09.09.01.42.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 01:42:34 -0700 (PDT) From: Tushar Jagad <tushar.jagad@linaro.org> To: qemu-devel@nongnu.org Date: Wed, 9 Sep 2015 08:42:11 +0000 Message-Id: <1441788132-6286-3-git-send-email-tushar.jagad@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1441788132-6286-1-git-send-email-tushar.jagad@linaro.org> References: <1441788132-6286-1-git-send-email-tushar.jagad@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.53 X-Mailman-Approved-At: Wed, 09 Sep 2015 08:44:56 -0400 Cc: peter.maydell@linaro.org, marc.zyngier@arm.com, patches@apm.com, tushar.jagad@linaro.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org Subject: [Qemu-devel] [PATCH RFC 2/3] arm: cross cpu: add new properties for arm cpu X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tushar.jagad@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 8b4323d..a07613e 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -1349,6 +1349,8 @@ static Property arm_cpu_properties[] = { DEFINE_PROP_BOOL("start-powered-off", ARMCPU, start_powered_off, false), DEFINE_PROP_UINT32("psci-conduit", ARMCPU, psci_conduit, 0), DEFINE_PROP_UINT32("midr", ARMCPU, midr, 0), + DEFINE_PROP_UINT32("bpts", ARMCPU, bpts, 0), + DEFINE_PROP_UINT32("wpts", ARMCPU, wpts, 0), DEFINE_PROP_END_OF_LIST() };
In order to support cross cpu for arm certain properties should be defined by the datacenter admin. This is necessary for migrating guests to different hardware platforms. CPU properties like number of breakpoints, watchpoints and pmu counters are implementation specific. We need to restrict the guest kernel to a specific count considering different mix of hardware platforms in the datacenter. This patch adds new properties for defining hardware in terms of number of breakpoints, watchpoints and pmu counters supported in the guest. Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org> --- target-arm/cpu.c | 2 ++ 1 file changed, 2 insertions(+)