From: bluhm Date: Tue, 3 Sep 2024 09:35:46 +0000 (+0000) Subject: For AMD SEV create /dev/psp. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=48fdf972e38a65fb33cc1ffee0413ee7b12989d8;p=openbsd For AMD SEV create /dev/psp. To call ioctl(2) for the platform security processor (PSP), vmd(8) needs a device file. It is currently linked to the cryptographic co-processor ccp(4). We may split this into a separate psp(4) device. from hshoexer@; input jsg@ --- diff --git a/etc/MAKEDEV.common b/etc/MAKEDEV.common index 1e7bb3d235a..eaf77bba602 100644 --- a/etc/MAKEDEV.common +++ b/etc/MAKEDEV.common @@ -1,4 +1,4 @@ -vers(a, {-$OpenBSD: MAKEDEV.common,v 1.120 2023/01/28 11:04:47 phessler Exp $-})dnl +vers(a, {-$OpenBSD: MAKEDEV.common,v 1.121 2024/09/03 09:35:46 bluhm Exp $-})dnl dnl dnl Copyright (c) 2001-2006 Todd T. Fries dnl @@ -167,6 +167,7 @@ target(all, bpf)dnl target(all, kcov)dnl target(all, dt)dnl target(all, kstat)dnl +target(all, psp)dnl dnl _mkdev(all, {-all-}, {-dnl show_target(all)dnl @@ -535,3 +536,5 @@ __devitem(kstat, kstat, Kernel Statistics)dnl _mkdev(kstat, kstat, {-M kstat c major_kstat_c 0 640-})dnl __devitem(efi, efi, EFI runtime services)dnl _mkdev(efi, efi, {-M efi c major_efi_c 0 600-})dnl +__devitem(psp, psp, Platform Security Processor)dnl +_mkdev(psp, psp, {-M psp c major_psp_c 0 600-})dnl diff --git a/etc/etc.amd64/MAKEDEV.md b/etc/etc.amd64/MAKEDEV.md index ccc5a3c37bd..916116aae6d 100644 --- a/etc/etc.amd64/MAKEDEV.md +++ b/etc/etc.amd64/MAKEDEV.md @@ -1,6 +1,6 @@ define(MACHINE,amd64)dnl vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.82 2023/01/14 12:15:12 kettenis Exp $-}, + {-$OpenBSD: MAKEDEV.md,v 1.83 2024/09/03 09:35:46 bluhm Exp $-}, etc.MACHINE)dnl dnl dnl Copyright (c) 2001-2006 Todd T. Fries @@ -99,6 +99,7 @@ _DEV(vmm, 10) _DEV(vscsi, 89) _DEV(pvbus, 95) _DEV(kstat, 51) +_DEV(psp, 101) dnl divert(__mddivert)dnl dnl