From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B4A3C4338F for ; Wed, 18 Aug 2021 19:42:26 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 33D32610A3 for ; Wed, 18 Aug 2021 19:42:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 33D32610A3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:50608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGRSD-0006nI-Bc for qemu-devel@archiver.kernel.org; Wed, 18 Aug 2021 15:42:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGR9s-0007Mc-O6 for qemu-devel@nongnu.org; Wed, 18 Aug 2021 15:23:28 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:44026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGR9r-0002lR-5P for qemu-devel@nongnu.org; Wed, 18 Aug 2021 15:23:28 -0400 Received: by mail-pg1-x52b.google.com with SMTP id r2so3321049pgl.10 for ; Wed, 18 Aug 2021 12:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=hlGCWa0qcgLrvcDvhZ/cxV3hMg29OCBmykjODrlctgY=; b=E0HZVwUnRJn1o8M8GC9gh/xoUuVeQZnH5zalIMmZ0KZnTweMMJI2r7j7HnnnMwhOk0 dljtLgc42xmBWXHD0YbYEbPVbeTN8Bgey04R20iuHWxgAtPFOpuOftVElNLTp4vR6TaB U/ODsqcc86z+5E3/VXZtcG5Q9e9jwZVcBUrNLCS0nAhRCY3sZWxyDtP9LWzJp5c+ROZF kmCZKY6j0lOs5pf1Stg5yexkgJOTNHw/hyJBn0bwB8qSA4CgQlFY7Sc+wSWeGPa9wU0X icH0Pxrxm1+elaoRK7aY0VWctG1alyzwwIVSC7tcM+ohJjTw60NtzQhXrUa6H/wkey8K JI1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hlGCWa0qcgLrvcDvhZ/cxV3hMg29OCBmykjODrlctgY=; b=QOhEFY5aV6BSgKMFeHguqp3TXDcoVzP0b3bFnBwhzLboRgNa0/gN/ZbGJhbQoKewj/ 3q78G+pQtOlTZCVFxbpGEblHAMh7ueg8EuvLAJabw72lGZKjoVCUKG6u7Fu5Y+/G87Av mM9nfvLda54Y3cXvEtNUVwT8KFga4Oikz1ulWU34NwZP1bBPCKtW2wPW1WJK7t32nPOY Fn9fkHWbtWfQs7+zD+ppkRKPH7EI5iVtf3WcNnGnySkHX2SMbs6mh1BJOkJwH1ehEAbS TpoyNzOIl5X7gbLec0ysUMxEqvQxfPjUUYKTjqLKdDAB9qWbfb6ana7J0/aMCqAe/a3j wj+g== X-Gm-Message-State: AOAM533eje07wfmTUBUSL62CQNnIPzlZgnizRzPpbYdEQ9OqANwZNRnm biNPEYUsurFRjGZj8iU4Gp4NaubX5jduSg== X-Google-Smtp-Source: ABdhPJxAp1BcpjnuCmFyhOzR1kET6YASS36OgG4CsWcK7vXHpZaabcY9U1++t1BNfSFAAiBXwuNjjA== X-Received: by 2002:a65:508a:: with SMTP id r10mr10372523pgp.96.1629314605907; Wed, 18 Aug 2021 12:23:25 -0700 (PDT) Received: from localhost.localdomain ([173.197.107.15]) by smtp.gmail.com with ESMTPSA id w82sm569302pff.112.2021.08.18.12.23.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 12:23:25 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 51/66] hw/core/cpu: Add prctl-unalign-sigbus property for user-only Date: Wed, 18 Aug 2021 09:19:05 -1000 Message-Id: <20210818191920.390759-52-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210818191920.390759-1-richard.henderson@linaro.org> References: <20210818191920.390759-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Actually disabled for now. Will enable for each cpu that supports the feature. Signed-off-by: Richard Henderson --- hw/core/cpu-user.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hw/core/cpu-user.c b/hw/core/cpu-user.c index 62037e8669..23786865cb 100644 --- a/hw/core/cpu-user.c +++ b/hw/core/cpu-user.c @@ -11,12 +11,27 @@ #include "qemu/osdep.h" #include "hw/core/cpu.h" +#include "hw/qdev-properties.h" #include "cpu-common.h" /* * This can't go in hw/core/cpu-common.c because that file is compiled only * once for both user-mode and system builds. */ +static Property cpu_useronly_props[] = { + /* + * Create a memory property for softmmu CPU object, so users can wire + * up its memory. The default if no link is set up is to use the + * system address space. + */ +#if 0 + DEFINE_PROP_BOOL("prctl-unalign-sigbus", CPUState, + prctl_unalign_sigbus, false), +#endif + DEFINE_PROP_END_OF_LIST(), +}; + void cpu_class_init_props(DeviceClass *dc) { + device_class_set_props(dc, cpu_useronly_props); } -- 2.25.1