From nobody Tue Oct 14 10:37:15 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1588828165; cv=none; d=zohomail.com; s=zohoarc; b=QdK4iCUGrMd5DNUhZ6XGCojWhOocXvdtdwofabiab52A/FFMFoMWFzKW/Ap0EkUS3p5+rSfuR6+c1cXcz6SyyNwCuACJb5jq/3whjW4R8NzXRvlSpBfzFwJejBLgeQ4qDrmqOVARrJD8Zh7Q1A551DOdj5oeJeIPh5NzfMBdQHQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588828165; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ucaisCqslFNY8afViLcPxqvExy7GHs9JBsb60K3pWjA=; b=VlexZ5/GkSxOxor6dczGzYIiTZr0lbKL+ms1z/PvKOxGqFcxOrR6Zdma+Pq6Vo9ewVh8JkAXC7ATh8Uf9IiyAHmvqz2acgdtheTDzIEBJzm5/BDuE/AuZBcy5I5UvT0cYhjCMweS6OKbuZG95EhE12cHZZ9jgpxSfPhBIlYKt5c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1588828165684866.0560661538321; Wed, 6 May 2020 22:09:25 -0700 (PDT) Received: from localhost ([::1]:59198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWYmi-00008k-DW for importer@patchew.org; Thu, 07 May 2020 01:09:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWYhy-0007fG-4s; Thu, 07 May 2020 01:04:30 -0400 Received: from ozlabs.org ([203.11.71.1]:52825) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWYhw-0007ek-M4; Thu, 07 May 2020 01:04:29 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 49HhFp24wKz9sTC; Thu, 7 May 2020 15:04:14 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1588827854; bh=yJJUaRpryaOGasKwSmwxd8+LVwAoZKFoeJZaTcdzxnk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PLvgyKxlfWNjUUtpA0ZO5kfYIeMQSbt419DL9dcZBo8NRBtzdNNuG45XFKayruGFW BXO6wFG0btuw1btMpbGcL8Nl8fias0t4uIr4kNi8qwEB3n2wLguyCvbHlSbjCD+E4k JGCCKfBG3LHKD1y7BkH1FV47BJvD/s2XxTJIrf9s= From: David Gibson To: peter.maydell@linaro.org Subject: [PULL 10/18] target/ppc: Assert if HV mode is set when running under a pseries machine Date: Thu, 7 May 2020 15:02:20 +1000 Message-Id: <20200507050228.802395-11-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200507050228.802395-1-david@gibson.dropbear.id.au> References: <20200507050228.802395-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=203.11.71.1; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/07 01:04:14 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: , Cc: aik@ozlabs.ru, qemu-devel@nongnu.org, npiggin@gmail.com, groug@kaod.org, qemu-ppc@nongnu.org, clg@kaod.org, Suraj Jitindar Singh , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: C=C3=A9dric Le Goater Signed-off-by: Suraj Jitindar Singh Signed-off-by: C=C3=A9dric Le Goater Message-Id: <20200330094946.24678-4-clg@kaod.org> Reviewed-by: Greg Kurz Signed-off-by: David Gibson --- target/ppc/mmu-radix64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/ppc/mmu-radix64.c b/target/ppc/mmu-radix64.c index f6007e9565..d2422d1c54 100644 --- a/target/ppc/mmu-radix64.c +++ b/target/ppc/mmu-radix64.c @@ -231,6 +231,7 @@ int ppc_radix64_handle_mmu_fault(PowerPCCPU *cpu, vaddr= eaddr, int rwx, ppc_v3_pate_t pate; bool relocation; =20 + assert(!(msr_hv && cpu->vhyp)); assert((rwx =3D=3D 0) || (rwx =3D=3D 1) || (rwx =3D=3D 2)); =20 relocation =3D ((rwx =3D=3D 2) && (msr_ir =3D=3D 1)) || ((rwx !=3D 2) = && (msr_dr =3D=3D 1)); --=20 2.26.2