Re: [PATCH v14 2/3] virt: Add TDX guest driver

From: Borislav Petkov
Date: Thu Oct 13 2022 - 09:21:44 EST


On Wed, Oct 12, 2022 at 04:01:31PM -0700, Sathyanarayanan Kuppuswamy wrote:
> I am fine with adding an error message here. What about the above -EINVAL
> case? Do you suggest adding it there as well?

Right, you could dump the req.* fields it read from luserspace so that
one staring at the error message can actually see which of the fields
failed the check.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette