Re: [PATCH v5] virt: tdx-guest: Handle GetQuote request error code
From: Dave Hansen
Date: Tue Dec 02 2025 - 19:03:56 EST
On 12/2/25 16:00, Kuppuswamy Sathyanarayanan wrote:
> The reason the kernel must parse the status field is that the failure
> code is only available in the header portion of the shared GPA buffer
> populated by the VMM. Userspace currently does not have access to this
> header since we only expose the Quote payload itself. Because userspace
> cannot directly interpret the VMM status codes, the kernel needs to parse
> them and return appropriate generic error codes.
That's kinda the key to this.
Users are poking at sysfs and expect (near) universal explicit errors.
Are they even doing this from shell scripts most of the time?
Also, please don't just keep tacking gunk onto the changelog. Start
cutting out the cruft, please.