Message ID | 20210818191920.390759-52-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp977930jab; Wed, 18 Aug 2021 12:41:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNm5q8uUs0Oid1uYl7bIYQuaBBzm7z3qLNpUAExihhrugogfT1JFQnqY718pnmf/izBDSC X-Received: by 2002:a5e:c00a:: with SMTP id u10mr8244919iol.60.1629315668026; Wed, 18 Aug 2021 12:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629315668; cv=none; d=google.com; s=arc-20160816; b=0EgwOI5x6ghRcKAjFuYWO7aIkKxonL1aQE5HIbzlv5bgCOztINqwabDfsYTrEZ+CNC dJuTEwOLz3M/k4jDMBf6ivA8BzC6+qwX3tTby5bZX3WTHHpn7x1q6voHfIwPrf91lOc0 omlyBSVnrS3DYMY+tYs4+U/kpD8ncORCBhb/ufw5JTHCQHBnYkN7Ex/LY3EnxbKlqpct gjwDUSTMOje82w9CoNCoYOoN8XqlQGLzisx28WSiwZJvlYtkMgWDd84x2KvCQr/wME5F X+dH/XyltL2fmjOnB/N160KXZeE1ZgSpX+CPMzpdei+gcJXKObK30RDO586lIl1aihVA p8jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=hlGCWa0qcgLrvcDvhZ/cxV3hMg29OCBmykjODrlctgY=; b=u6Iw6tWKKHDutB+Ojg0msH8Xly6IqyFr1kqZc3478/UBgBG64v+/EtOxaZiV7BgwPC rJw3Q51GDJnrQ9Go/hMgBlM31UUNhWj5oOPAeUv4k76EXD+9lHUT2P26xzV4JQ9iBGXx E4MTrzenHc4OGh/RicITE51gf08wy3WmqTl3g+EQMlNSBXeBaTukT5plBwIzpSp0aFTC pjHeEV0Lz4t+3lGPj71qPt+48t43XmUKmEWnfvnIlxtBAjGxA9lo8w758IFxOegCrf3m C1NdUmglNVKYq6kf4VdVKqVS+JU1p+c2L3az5p+UARuEJv0Fpewei0RNSDWTXUnlyK/p qwbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E0HZVwUn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x6si790732ilu.80.2021.08.18.12.41.07 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Aug 2021 12:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E0HZVwUn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1mGRQx-00046B-GJ for patch@linaro.org; Wed, 18 Aug 2021 15:41:07 -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 <richard.henderson@linaro.org>) 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 <richard.henderson@linaro.org>) 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 <qemu-devel@nongnu.org>; 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-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 <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 12:23:25 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> 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" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
Unaligned access for user-only
|
expand
|
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); }
Actually disabled for now. Will enable for each cpu that supports the feature. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- hw/core/cpu-user.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.25.1