Index | Thread | Search

From:
Hans-Jörg Höxer <hshoexer@genua.de>
Subject:
Re: [EXT] Re: SEV-ES: vmd(8): Initial state encryption for SEV-ES guests 2/2
To:
<tech@openbsd.org>
Cc:
<Hans-Joerg_Hoexer@genua.de>
Date:
Wed, 4 Jun 2025 14:02:00 +0200

Download raw body.

Thread
On Wed, Jun 04, 2025 at 01:57:37PM +0200, Theo Buehler wrote:
> 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.
> 
> I did not need that because the call is guarded:
> 
> #ifdef __amd64__
> 	if (env->vmd_noaction == 0 && proc_id == PROC_PARENT)
> 		psp_setup();
> #endif

I see. My "fake cross-compile" didn't honor this.  So your original diff
is fine!  Thanks!