From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBFB0253F03 for ; Wed, 12 Mar 2025 14:41:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.250.239 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741790511; cv=none; b=u7CStQphS/DNucOBIXyXVm/XUBIscKZB4uw1sPtm5xiG2EPeMU2FL0kf9ptxvbXg3KKOr2cuqfU/vmGjWXzQJBYoS+46A32Ry9ceoxu6vmHDDPOy1ANtbdXsEZlR0Z/SdjWe3w2ZTNj2Mss6B07ygWpcJeWkUrybt0cQbDcR1CU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741790511; c=relaxed/simple; bh=e+xwvOdPFWgt5Z7loNHF37gpAdHrHZ+OzlPVYDr/koM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZrBxupXsc3mBGbQ9laove8r+jon1QSzQmHN1yykHrplUcqQ1NsGrTxUu10+rZKl2QQhzk5R7Wj3gDMtIHuncW9z3dhOH2ZJyvJ8xlmwYA5uYdSIrds0ClAmjGIP53NfdeD1URd6cjy9fPS+PUEyWZRvePdd4Yievikffca7Mwk4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org; spf=pass smtp.mailfrom=8bytes.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b=GCknDqXQ; arc=none smtp.client-ip=85.214.250.239 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8bytes.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b="GCknDqXQ" Received: from cap.home.8bytes.org (p4ffe03ae.dip0.t-ipconnect.de [79.254.3.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 37F9E4550C; Wed, 12 Mar 2025 15:41:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1741790503; bh=e+xwvOdPFWgt5Z7loNHF37gpAdHrHZ+OzlPVYDr/koM=; h=From:To:Cc:Subject:Date:From; b=GCknDqXQXQTV2B3UwefczHhEciqSAKRQECaM066hx6Kqw63EaAtWlN83EmhuvVVV6 4oopjJMufWR+uwerkzp4qy0XU7RcHhHTkZLb3RhkcIC6Vi6Dg8Mihjy9V/Om1DDBbN zEu/3wcKMZ7C+LjfBadwEmIzRgOZwyeEO+m9/AL0Er08xje4A3MJiziCAnW9rX0yC1 XGlZQ6cBmiHNROf2cF1omOl3cad8thCUTV99MgQyIPd0JQNxn85uP9gafyxi9Z3lgG 4vo/29nf6Tos+/9CxuPQl6uBHJ4z1QyeP0A8DepZcSlJ9yhC5Ob8cModGQEiOUbu6L AERYPuMo6jcMw== From: Joerg Roedel To: x86@kernel.org Cc: hpa@zytor.com, Tom Lendacky , Nikunj A Dadhania , Larry.Dewey@amd.com, linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, Juergen Gross , kirill.shutemov@linux.intel.com, alexey.gladkov@intel.com, Joerg Roedel Subject: [PATCH 0/2 v2] Move SEV sysfs information and expose MSR_SEV_STATUS Date: Wed, 12 Mar 2025 15:41:05 +0100 Message-ID: <20250312144107.108451-1-joro@8bytes.org> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Joerg Roedel Hi, these changes move the SEV sysfs directory to /sys/hypervisor/ as discussed on the mailing-list[1] and add an attribute to expose the raw value of the SEV_STATUS MSR. For compatibility reasons a symlink is created at the old location of the directory to link the new location. Regards, Joerg [1] https://lore.kernel.org/lkml/20250311110748.GCZ9AZhPYYAz-MXErv@fat_crate.local/ Joerg Roedel (2): x86/coco/sev: Move SEV SYSFS group to /sys/hypervisor/ x86/sev: Make SEV_STATUS available via SYSFS .../ABI/testing/sysfs-devices-system-cpu | 11 ++----- Documentation/ABI/testing/sysfs-hypervisor | 15 ++++++++++ arch/x86/Kconfig | 1 + arch/x86/coco/sev/core.c | 30 +++++++++++++++---- 4 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-hypervisor -- 2.48.1