From patchwork Tue Feb 25 18:08:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 183876 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp2058365ile; Tue, 25 Feb 2020 10:10:08 -0800 (PST) X-Google-Smtp-Source: APXvYqxAefPWsD+BwnxEGUe8f1uAq4JvADYzsDpbqJqZsyObaIMRiFwin5q4JL/KZ0KYVZqs5qPm X-Received: by 2002:a05:620a:1656:: with SMTP id c22mr75963qko.144.1582654208741; Tue, 25 Feb 2020 10:10:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582654208; cv=none; d=google.com; s=arc-20160816; b=Hr1L6WH8azoJwhsLA090kk5RxseMwvg+pPSkr5vmJhFNH5mJsm22zawzrkt528PGdf Rhq42t4AzoD4tdblCc2lUNRDBiWVNDW0JrzPFcDOsxtIUJq84K1v0pH/1A3acSdUxBrj twxlji7gcwr0ZXYMJQINm6ALPXD7L1DoG+ZYIn88bCtThktbeMCPcu6lSyX7ZvC70QKW /q0rt1RsGpr4LwXWmX+iSY1t4+FyiZs0AGkmUyyELZQdF8JrpW3tr1ywIqj0YQ8CcgUj vJ2hOtCtW8xtBtDmMHbQbyntEaU0CcMYlrqGzSV8XEaN5y7bPQN6Sx8u4G9KWUkS9e8r oT5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=aZsIwMtj9HBIaWG7OkY3RpkjtyGYLVuwXKjm4gMidFI=; b=UCxq+LWEIsiKPUyP84AoQK1EXU21zT6cACC8MAxz7baXyEv+Q54fUmqFQVebJn9BSn zZrIhpaspyQaIloC9vbzIdjaVOzjNJPodqxiUWxMHogfSCMdj+4fQ9oA9uCT5SCgA3Fp gBaYBSYAFFtjDrcr6ETW687v7K3fyCyxgn87A7SxuFy6E1x4QLeSWoLmxVLzA91N8sH3 amV3PuLNJj1vtESfe8xMJcs3fJnSbK+goZ3JbWJxG8k/r1DvoH9aS2THhlLYJCf0Redf u4sLfhwAcxKMKAKl46vhffFnQ3dj9ecw/oa69/yzf1WPRvXvQY4X6L9NhiEShG4wIF+d 9vZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ccTvrEQ+; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m5si132426qkm.189.2020.02.25.10.10.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Feb 2020 10:10:08 -0800 (PST) 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=ccTvrEQ+; 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]:33388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6eem-0004xM-9C for patch@linaro.org; Tue, 25 Feb 2020 13:10:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34795) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6edJ-0002C2-FO for qemu-devel@nongnu.org; Tue, 25 Feb 2020 13:08:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6edI-0004EM-ES for qemu-devel@nongnu.org; Tue, 25 Feb 2020 13:08:37 -0500 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:36049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6edH-0004Cb-G3 for qemu-devel@nongnu.org; Tue, 25 Feb 2020 13:08:36 -0500 Received: by mail-pg1-x541.google.com with SMTP id d9so7263889pgu.3 for ; Tue, 25 Feb 2020 10:08:34 -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:mime-version :content-transfer-encoding; bh=aZsIwMtj9HBIaWG7OkY3RpkjtyGYLVuwXKjm4gMidFI=; b=ccTvrEQ+aRv3+g5qtXzE7JIEqXNpASXGhK6bC+qsixvYAGDw9fmvrSP/uEryhEqgYd mJoD1zvmlvVt1mzGoOCItgfapVIqwpvY1h3js57Vmzz31AC1Yn8ZaGbBDcwPofswo4T/ tcIsgwjG9hpve1sx1B1yxzYZnGdW+3O8dlH0mGJPY+NbmtKFD08jlscnuOTKWFX0ryY5 TMe5rlr2TzOxiQ/95vP4+3vniahiyr2xCe54u4uA1Tm5s0pifeDEOQKg8tHeuzf7gBNu 9JMgfCM+iBFUF7ifHGMqw9e5XAy7JnWXNnDP1KYXA+U4mACOmMGlwGXyPpy1Gz4c5JXI wv1w== 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:mime-version :content-transfer-encoding; bh=aZsIwMtj9HBIaWG7OkY3RpkjtyGYLVuwXKjm4gMidFI=; b=OkzAJfnRn7uTH/XQFmo7Dqw4p2u/PiEjQiSIfbXGV34xsL/b0OXdWqEMeLYhMQu3a7 fCyWEdnE5OmDP5+LztaeIHfJ1BcID4jFKtSASRBQjmu10S+PX8rulVE0pLOcJ8SL6TED IGlys5Jeg883iW8qwuF0wX+h03hFYRnIVIaeXoHOEVzlZZb7ia7N2SDkg3Ao1I44zOQY XN4hWgNBeAfCVpRcEzjHvaldFPpchPX2Q49TpnKRNUMqVtAzINICuX5p/cUNkJfr8PTR TojezI3wZ/UIR7dB/zY3A3FZuKKu5wbwv7BvvVRvkerdlGCns6sx+VgD35LDs+HXU4dO Pt4g== X-Gm-Message-State: APjAAAWY9AfPEmFn38S2SCnvI22z6ZscDXlFkhdgc+xwnzf4/Tg7ADKW BXCh77boRI8PIHuB94il0uhXUCPXFdc= X-Received: by 2002:a62:e708:: with SMTP id s8mr59375815pfh.122.1582654113303; Tue, 25 Feb 2020 10:08:33 -0800 (PST) Received: from localhost.localdomain (97-126-123-70.tukw.qwest.net. [97.126.123.70]) by smtp.gmail.com with ESMTPSA id d69sm19069704pfd.72.2020.02.25.10.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 10:08:32 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 0/7] target/arm: Honor more HCR_EL2 traps Date: Tue, 25 Feb 2020 10:08:24 -0800 Message-Id: <20200225180831.26078-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::541 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: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes for v4: * Mask more res0 bits for HCR. * Fixes for TVM/TRVM. * Fixes for el0 for TPCP & TPU. r~ Richard Henderson (7): target/arm: Improve masking of HCR RES0 bits target/arm: Honor the HCR_EL2.{TVM,TRVM} bits target/arm: Honor the HCR_EL2.TSW bit target/arm: Honor the HCR_EL2.TACR bit target/arm: Honor the HCR_EL2.TPCP bit target/arm: Honor the HCR_EL2.TPU bit target/arm: Honor the HCR_EL2.TTLB bit target/arm/helper.c | 306 ++++++++++++++++++++++++++++++-------------- 1 file changed, 213 insertions(+), 93 deletions(-) -- 2.20.1