From patchwork Mon Jan 27 10:26:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 860230 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:18c8:b0:385:e875:8a9e with SMTP id w8csp1946820wrq; Mon, 27 Jan 2025 02:28:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVmdX3dl/7A+vH8lCIL6xE7FHlnKxhuRQ7/zD6a1k8elEmNuiTbHiyOSQh6XrOKqg/ZIbMenw==@linaro.org X-Google-Smtp-Source: AGHT+IGQTo6EBCfeup7ydCIiURPPu9cgsWrI4m+I2IgfbHWICXSaW6slyn+rR7B1enTgIZykm3mQ X-Received: by 2002:a05:620a:448c:b0:7be:6220:67d6 with SMTP id af79cd13be357-7be631f2dcdmr5511951885a.15.1737973703900; Mon, 27 Jan 2025 02:28:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737973703; cv=none; d=google.com; s=arc-20240605; b=Nc6fGYG0OSQpBo2TDAIqYqp4FYEZjk0X8mp2p9qXa+rkhhB6nNpLcGRSTkP0aj9Vem ANDRj4S3N9KWCvGL9cMHFTN8q9Om9a0sUcbsBcpC9Apyzp5mxvt4j1l+3ane3zQ+Va68 60wLQlNb6EATIpnUZC6k5MA7JC83tuy2UL0bfOTNFFBdlJAMCe89hhcEJYGleyb/xxri k1tkhOfVRpWuRNwPIszVsEuMMdbe9DyRHr3FJ456xexHI7x6mC+DEbWo5HkD+kaHhjRl Q/sqKJVVPIpbLfNIyfP9LPB2Y5tKXJTtzHpueHrqeWzWnRWUttHNA6VjxvTIGMztU7/r OEjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:cc:to :from:dkim-signature; bh=t8IO10tm7cHN5fIAfICKPQ1+7FojlYdziCm/1tH9ciA=; fh=G3zkgtM0+U9rHQHdLuIT+YnPlKRaM6qSFCr7Ftnx4LQ=; b=H8E+rtwmSDXoegAgLxX0tvo278w0ETt3AJX3wV4F8qySGEt1K9A6nyyABEeJ8OlSwV 72JeyTpw4f9np9j1IjpITpodM55/ZT2Zqyj6x6WyS/0UAjxIeS2XVRLBpO5qBBTGGrJA JV8Lw/clHCeR40qhwfrFJWOfV4d7IUaJz4K2ZcvOGErEVd5TltYga32uODdwinG5LfUH Duti3aLT/7Fs9AHUq3GPvwXOaZtevpTlCm9xcR1SoSKqGbQLRjnn2BB3wmsXzVJkLbG2 5HPQbfMmYxJ0ZAr46JSueOxBCmaTPw+hsFeuBRMjE/ZbCQ4yQURDqCh3ZiGV7KeaNqmy r1qQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YJ+6Pqce; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7be9aee0970si1055155785a.244.2025.01.27.02.28.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jan 2025 02:28:23 -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=YJ+6Pqce; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tcMK8-0001ct-5P; Mon, 27 Jan 2025 05:26:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tcMK6-0001cW-0I for qemu-devel@nongnu.org; Mon, 27 Jan 2025 05:26:30 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tcMK4-0001vx-KR for qemu-devel@nongnu.org; Mon, 27 Jan 2025 05:26:29 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-438a3216fc2so43800505e9.1 for ; Mon, 27 Jan 2025 02:26:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737973587; x=1738578387; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=t8IO10tm7cHN5fIAfICKPQ1+7FojlYdziCm/1tH9ciA=; b=YJ+6Pqce8Jb3tfFsDcf4FsGLJznVGxyXJr6CQDzHVZLT+zbxkasevT0DSY5WQkuJ9v pXR1TpCVfuRJ5Axm+4DbE+ry/dy9VLX3z+wK2QpbDKS08hxR6E21f5eqL3iZYwAm7Fom ElWYA51tuK3swEXwNsJKiAdhIyxAX0t7GCa8BwAViW718SQLtsOT+Uft9LrG+iOaO90r 7cmFg0ktYJ/OgV6xlcml/1yJTeHCsDNhidYBDG1G5NDPB3Jmkp9ofYFnC1zHmQ43m9H2 0KN+t6mRrvGjwCgLt47JbGW8QY6OY3lNDe/OO/+05Ypw6S7SZuFU6riSDapmMzWUSvoe L9wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737973587; x=1738578387; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t8IO10tm7cHN5fIAfICKPQ1+7FojlYdziCm/1tH9ciA=; b=FL5rTO9sdAPfpM1zqqLtim2+Zif928GkXThUVMBmLs+lHqNAHzqizzkyDwfyBi8V8V Teg/Pnrbk++4qvdIK6u21HWP532ROOvy1ia8ndq0HPKLwyKbm1mtGS0DnjHK1YCVNguT F/LYfbJYTkFXxVjra7OJfMKMX44iqKbVTXPXKn6lgd571hQd0XRI+8x+CxiC8lh8iSbb jlwyPq+kpt8g/o1bnbO1YbJMQa9QvEwQvsO1lEtHaRUzpv6f4F3iSnUFUEkpJdiHRcf+ 1JNHL8nLDPPUcku7b1NnNE/dhlWDCm4rhHfUZVarWbnr9Ir52fj0B0zqr2aggIwMqEoq puYQ== X-Gm-Message-State: AOJu0YyTYRJwg2uKX7PXI0UCWWUl1rdwZ3ee3v90pV7PemmR2DNg7b9c +XY3HJuGZjBf4OeNxlhXg3bt7HGsw5Gys8NAPE9oZU7dRKd/vEdbFu5ITjaWO1CxBAW8qlo7SFa lVLs= X-Gm-Gg: ASbGncuMZuklxPj2HxVulsasU9M+aZ0jkBnYopaLkWigjLKd/a1Tu/XxWFGDTNhpcWJ 8tgdootqu6GQ3IQ9AvzzDVdj6QLGJNMimD8UJtd2AW8c+WunqZCOdDWNSPoH9c5ZRNlHiUxcLba MnbiYXsuHb8FgCJOWza1CyN+kK5CTveK6cy31oNbbx56pDAzZ5nInFS5d8fzKezoYyahwGoaV8a gNo84kHoEY4YOWcVzED+9nngbJIAv3ZX09KBMe7QgdHPNa2anyP8puxhVowkIssq9MrIviHqFgH FCTxS7h654UMgW+vEFpq4k/wVLN4VdWZOiFIcjQ72ECrEhxmnx4RKy8= X-Received: by 2002:a05:600c:3114:b0:434:a386:6cf with SMTP id 5b1f17b1804b1-438913bff57mr366945245e9.2.1737973586682; Mon, 27 Jan 2025 02:26:26 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438bd507dc9sm127885575e9.19.2025.01.27.02.26.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Jan 2025 02:26:26 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , Richard Henderson , Harsh Prateek Bora , qemu-ppc@nongnu.org, Nicholas Piggin , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 01/15] hw/ppc/spapr: Restrict CONFER hypercall to TCG Date: Mon, 27 Jan 2025 11:26:05 +0100 Message-ID: <20250127102620.39159-2-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250127102620.39159-1-philmd@linaro.org> References: <20250127102620.39159-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org TODO: Add PPC folks why :) Signed-off-by: Philippe Mathieu-Daudé --- hw/ppc/spapr_hcall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index f8ab7670630..dbf30358a1a 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -578,6 +578,8 @@ static target_ulong h_confer(PowerPCCPU *cpu, SpaprMachineState *spapr, CPUState *cs = CPU(cpu); SpaprCpuState *spapr_cpu; + assert(tcg_enabled()); /* KVM will have handled this */ + /* * -1 means confer to all other CPUs without dispatch counter check, * otherwise it's a targeted confer.