From nobody Thu Dec 18 22:20:15 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1562021031; cv=none; d=zoho.com; s=zohoarc; b=eHQNYCigaBOtbcFTXiKGu/oLFEmAy87kDwLt1MmuOv3NIr/VMxNkxYFRh5B41lf8SBhPU5TDhXYnrl0IJby+oCGbQph7M12EK8tOazQJVUXTUyeZ41NekggruDVYGJCuVEM4pA1PSroL049sGAph9ppRLkntG7zPTGjqWrPmzWo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562021031; h=Content-Type:Content-Transfer-Encoding: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:ARC-Authentication-Results; bh=XcLWFdKkB/rUAkrzuf/RQAaPaI22ZL/bi/Hf38//vjk=; b=HxG+NqDKAJz6UHKjdCzBrVZrN85UKXPmM1+cgNyy6rMcDhmUOw1FmFW62fa2Wskac+heblsxGwYvDjNiobR/BDnSguRZC3HE7d7Ndw64KMkY8uD8uGd8TG5lfvMEsh2tf3W9EcRpNBw7qlyc/1mO0nGy+lbR8HCO9WoD/RW6PAk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1562021031589933.3604735841539; Mon, 1 Jul 2019 15:43:51 -0700 (PDT) Received: from localhost ([::1]:46090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hi51V-0006tf-9N for importer@patchew.org; Mon, 01 Jul 2019 18:43:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45879) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hi3P3-0001H0-IT for qemu-devel@nongnu.org; Mon, 01 Jul 2019 17:00:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hi3Oz-00086X-7O for qemu-devel@nongnu.org; Mon, 01 Jul 2019 16:59:54 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:51543) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hi3Ox-000728-Ve for qemu-devel@nongnu.org; Mon, 01 Jul 2019 16:59:52 -0400 Received: by mail-wm1-f52.google.com with SMTP id 207so847871wma.1 for ; Mon, 01 Jul 2019 13:58:57 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id o6sm26573508wra.27.2019.07.01.09.40.33 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 09:40:33 -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=XcLWFdKkB/rUAkrzuf/RQAaPaI22ZL/bi/Hf38//vjk=; b=xfg4lYenWKCBHy7ePukdANVAbk1D+y8auxwxywxKbpsI6Zfn478I6fhU3RUYEjGEVZ cwcZEZPZJoMbnSalfkeL6GSYfX8B7RIs1jnLLpwZluXo7jXhqPOV1UmzO4pi/+03YqG/ lFO+0x5ltpJeYt9QHG7yq0BbDaLvvafbsdOY1JAXRI1UIrY4q2du3oAIIhxl+HKlE7Px +Cclxd+VtXVMxeYprcozfPNek8LY7MYcbbUC0vcGOHesMc0aSGMd4eIKAlt/5hzvWW0k BF7zPpgb10z59V/zvUQW2zY1k9a3Wf3toB+xMnS/pS6QeRhfQrPiZ5EQdLWy6Mb+cD+n rpkA== 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=XcLWFdKkB/rUAkrzuf/RQAaPaI22ZL/bi/Hf38//vjk=; b=B1lnuJ/4lFhT3cLcEKVNVj36vfXrPj9jmic+qPrgrkyZqIm476iqhxzQMf8JfeZN7b W1A18uYngyZ8kmma0mtwyhUsmnR+cutb5EGTGRHCFxIzoQIOot0K3AHcF5HHyez2DhkT 5LCDGQfEOWiIm/BAWQOrBzrfA03gYNANDeKUe5BWMs1ddWDtD9yyMd19LG9aoC+0rO/7 fssNcXEQL8O+c+AZ10f2NkFxS1dZtwBKIwq2L5Hq50q9UxaemnJF2Cy982eeDW+zmQeX NIuDPBJ4HWT7ly4cUner7KAsSOcQcPvBVI87a/xf6XXblHOtM4/TfEmL1RKAE7cuxCY4 pqug== X-Gm-Message-State: APjAAAVmt0N1V+PLPGzxjhY4ImG74XXhZICPDABDfD0IOaGz3PhH6MFB jq7BO2H0yQ7oXr/bkCc46AHAeIm6+dD95A== X-Google-Smtp-Source: APXvYqxnJwHbdfzH4lrHoepapVEo340M4TINf2VSH610Un69v+f5ePiplg7Ko8dJ75XZkgJUqKZT0Q== X-Received: by 2002:a7b:c774:: with SMTP id x20mr145125wmk.30.1561999234274; Mon, 01 Jul 2019 09:40:34 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 1 Jul 2019 17:39:41 +0100 Message-Id: <20190701163943.22313-45-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190701163943.22313-1-peter.maydell@linaro.org> References: <20190701163943.22313-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.128.52 Subject: [Qemu-devel] [PULL 44/46] target/arm: Restrict PSCI to TCG 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 Under KVM, the kernel gets the HVC call and handle the PSCI requests. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-id: 20190701132516.26392-20-philmd@redhat.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/internals.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/arm/internals.h b/target/arm/internals.h index 46a1313d69d..57e0253ef48 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -529,11 +529,15 @@ vaddr arm_adjust_watchpoint_address(CPUState *cs, vad= dr addr, int len); /* Callback function for when a watchpoint or breakpoint triggers. */ void arm_debug_excp_handler(CPUState *cs); =20 -#ifdef CONFIG_USER_ONLY +#if defined(CONFIG_USER_ONLY) || !defined(CONFIG_TCG) static inline bool arm_is_psci_call(ARMCPU *cpu, int excp_type) { return false; } +static inline void arm_handle_psci_call(ARMCPU *cpu) +{ + g_assert_not_reached(); +} #else /* Return true if the r0/x0 value indicates that this SMC/HVC is a PSCI ca= ll. */ bool arm_is_psci_call(ARMCPU *cpu, int excp_type); --=20 2.20.1