From patchwork Wed Dec 18 15:59:11 2024 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: 851712 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp999189wrq; Wed, 18 Dec 2024 07:59:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXxFb9rpgHPFwKvWZWHQgRK5rRGqhchIuKgPQ30BN+62UjCJE1SR9pabEPIh9xMIPrq3zXikQ==@linaro.org X-Google-Smtp-Source: AGHT+IHSmFO5UKn9FeQ/lCNiT+xY2AZUk4gIhPwH6KxfCccQSPOb7tCFHInzBpLOXtNS+yB10HJg X-Received: by 2002:ad4:5966:0:b0:6d8:83bd:5cfb with SMTP id 6a1803df08f44-6dd0918f14cmr56354286d6.10.1734537599585; Wed, 18 Dec 2024 07:59:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734537599; cv=none; d=google.com; s=arc-20240605; b=ZclpToNqJfBHDQU8qujAyfQD/4JbZrgwDcygWOrsTP8+iPWg6+VR62SSUJX1z9i2vW tLHhBwKtAeAoR3QM6Yt2XKwMbM3m05nW8a2wcUuE8O4qOGYG80iDGE+C8DhND1fGg0ZK swcjFx6lSihqeIi3EXrrqI8nmswCgvSOOfKBPHF6Wlxai08evpsTwE0+oEzWKG8GCaJ8 FFm+bW+3qycjzNYy/gbB5OIoVjLhs7Q1vzw/E6xVjISvVj7NeTy5tEHGmP2xh03/RKlr CzmPL3MS0oeT7imui2meHGSIMn+dW3dcZaNQ2dfzcsJoAi8n2Dni/58dohZdHOTlurKe +Pbg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=o7TTefP9nXOqik7RDcZbvdDuVx9jkgFOarBEq8+dT6A=; fh=J6xwFb9r+wBglNFLu4Do3qnteWKPYOBmL246SEZoC6Q=; b=QnegmAsyIXM0QdcAfnq2DxeOyi/+QLbaaKda2WG79lZ8SQL4rYUcFdfljiOSQqM57U koaxsT6NuVC1r3zHwNfGOa8xqi9cJJYVOs/LDFmKpYwn+SBfS6Qy8pUqthM9zJ8e3DtS wtKgekQz6flNZ4IA4cewyqK0I7O7jrVTKUgfYjHm/y2qLOvgTQMXP+D4D0ME6AUZvBLl hEkEP557Pfqylh5anVDicpmMqgHZvXH+Rz44Jw3isQ6eR2AP9MCvkYAEogjmlVqve1Dk 8qsbJzCfpnpPAmOpzWMMKMN+hgQDZCA1DKemZBorGraVv1et6HL/od9Zec8taTgjIhxx 0Fgw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L8qGclip; 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 6a1803df08f44-6dccd3b43b6si129656186d6.523.2024.12.18.07.59.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Dec 2024 07:59:59 -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=L8qGclip; 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 1tNwSL-0006Cu-8S; Wed, 18 Dec 2024 10:59:25 -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 1tNwSJ-0006CD-OA for qemu-devel@nongnu.org; Wed, 18 Dec 2024 10:59:23 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNwSC-0007qs-Ut for qemu-devel@nongnu.org; Wed, 18 Dec 2024 10:59:23 -0500 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3862b364538so559674f8f.1 for ; Wed, 18 Dec 2024 07:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734537555; x=1735142355; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=o7TTefP9nXOqik7RDcZbvdDuVx9jkgFOarBEq8+dT6A=; b=L8qGclipZYUTUnrEkDx3vS4FssAWFCFMldyg6gUnWEFBWAVloY/fYQ9Leh6Imwtd1h HcztumT3g/1E/ZIGNg8rYVNUM7do6SChEvZgrCnrr7/4kOyq7uOc6A8rtoYo9aFciRFv mJeWGwGcOsCZ5ytLee2ywHqNScOoTVkoWUK/9E5UZuUhbkLKDiNfKUa2Y4WfUN7yl8dh 6LWZXgr3eT/I1Blzz4e4FC3eAJ3qDYuVZilAGZP9yPj67vX1DA8MuubVTGzr1rRpjVza EUNbscoDmoUbuWNeoq0CtooC39a60RsgVP6nHGtAAAJAiDVXytrcwq8ACpo0xI4aDpX6 cXkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734537555; x=1735142355; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=o7TTefP9nXOqik7RDcZbvdDuVx9jkgFOarBEq8+dT6A=; b=mUtlX+aZVNk+lP4eZUENwacwLFpez9Li9ZhrAleHD7A3GVUxHX/yKo3MX57rm/IA/O E8MM0nJTAxZwAeynEqna9vFJu3YE7gFJXQ15OOHtX6jNgoBL+BPEFX9pnAj1bktTUXo/ aP1qKDxLps8fUS7TjN3M4oQ8Jws6skQNxPq8BC+P+93D0aiU/g2TeD8mjGuhae0a210A ykytm3A1sJhO44c8uNa5deV4WsHfGhmcBdoMgeTmAt6ts60ifSHTlcwgj92wLQBifB7n YnMBuk9aVIfs8twgghlajmkme8N7HE5VH6wXsj0NJWpZIKZPxMtevLycjPMVyFLjtuqm 7t7A== X-Gm-Message-State: AOJu0Yx/+K23X1NDpCwGlRT+TRYdV7UnNz0FsnblfKpxH4J9cEC0H3xY ImHfhwUtiJl7AbpWZ6eTCwuIilOF2TkRuP4lCB1z65jNnDXwKy0hyppeLV1trQKI7KIercrtFvw 4 X-Gm-Gg: ASbGncsRgj8KHBjyBOUK0z/S5HsgetBP4Xsgli+D9rIG79lL0h7YXBsyyEZljfIQsn+ F84M8MwKOOENVPr/TY6HuncI8TprT79A5alGa+cDC/FtTSqNXdZq/JbEN9y0RHgbGUd4H2CWOZu dG182HoE8Gin/5MMLKL0dct7NEF7UfbjqxX1IdK7H8O69Vjgf6RviTh2Z0QC2sLrRUzvcstdQCw 7aEKiJmThMYI2nUjgHrcrauiUyqYarqnqndwXY6bKctbFlCfxlvhE4y0fJAHbn804GEKMsrmO+L DCg+ X-Received: by 2002:adf:fa0f:0:b0:386:4570:ee3d with SMTP id ffacd0b85a97d-388e4e79284mr2556298f8f.24.1734537554946; Wed, 18 Dec 2024 07:59:14 -0800 (PST) Received: from localhost.localdomain ([78.196.4.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-388c801a628sm14684705f8f.47.2024.12.18.07.59.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 18 Dec 2024 07:59:14 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eric Farman , kvm@vger.kernel.org, Marcelo Tosatti , David Hildenbrand , Ilya Leoshkevich , Nicholas Piggin , Daniel Henrique Barboza , Richard Henderson , Thomas Huth , Paolo Bonzini , qemu-ppc@nongnu.org, Zhao Liu , qemu-s390x@nongnu.org, Yanan Wang , Christian Borntraeger , Eduardo Habkost , Marcel Apfelbaum , Harsh Prateek Bora , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , "Michael S. Tsirkin" , Halil Pasic Subject: [PATCH 0/2] system/confidential-guest-support: Header cleanups Date: Wed, 18 Dec 2024 16:59:11 +0100 Message-ID: <20241218155913.72288-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 Restrict "confidential-guest-support.h" to system emulation, remove few SEV declarations on user mode. Philippe Mathieu-Daudé (2): system: Move 'exec/confidential-guest-support.h' to system/ target/i386/sev: Reduce system specific declarations .../confidential-guest-support.h | 6 ++-- target/i386/confidential-guest.h | 2 +- target/i386/sev.h | 29 ++++++++++--------- backends/confidential-guest-support.c | 2 +- hw/core/machine.c | 2 +- hw/i386/pc_sysfw.c | 2 +- hw/ppc/pef.c | 2 +- hw/ppc/spapr.c | 2 +- hw/s390x/s390-virtio-ccw.c | 2 +- system/vl.c | 2 +- target/s390x/kvm/pv.c | 2 +- 11 files changed, 28 insertions(+), 25 deletions(-) rename include/{exec => system}/confidential-guest-support.h (96%)