From: Alexander Bluhm Subject: Re: [EXT] Re: SEV-ES: vmd(8): Initial state encryption for SEV-ES guests 2/2 To: tech@openbsd.org Cc: Theo Buehler Date: Wed, 4 Jun 2025 14:04:17 +0200 On Wed, Jun 04, 2025 at 01:50:30PM +0200, Hans-J?rg H?xer wrote: > Hi, > On Wed, Jun 04, 2025 at 12:39:07PM +0200, Theo Buehler wrote: > > This breaks the build on arm64. Untested diff below fixes it: > > sorry for that! Adding stubs for arm64 looks right to me. We also need > one for psp_setup(). Amended diff below. Currently I have no arm64 machine to compile test it. tb@, can you compile and commit this? Having a psp_setup() stub makes sense, maybe we can get rid of #ifdef __amd64__ later. OK bluhm@ > ------------------------------------------------------------------ > diff --git a/usr.sbin/vmd/arm64_vm.c b/usr.sbin/vmd/arm64_vm.c > index 2eec85d6f83..fbe1e2afc40 100644 > --- a/usr.sbin/vmd/arm64_vm.c > +++ b/usr.sbin/vmd/arm64_vm.c > @@ -209,3 +209,26 @@ sev_encrypt_memory(struct vmd_vm *vm) > /* NOTREACHED */ > return (-1); > } > + > +int > +sev_encrypt_state(struct vmd_vm *vm, int vcpu_id) > +{ > + fatalx("%s: unimplemented", __func__); > + /* NOTREACHED */ > + return (-1); > +} > + > +int > +sev_launch_finalize(struct vmd_vm *vm) > +{ > + fatalx("%s: unimplemented", __func__); > + /* NOTREACHED */ > + return (-1); > +} > + > +void > +psp_setup(void) > +{ > + fatalx("%s: unimplemented", __func__); > + /* NOTREACHED */ > +}