Re: [PATCH v11 02/20] x86/virt/tdx: Detect TDX during kernel boot

From: Huang, Kai
Date: Tue Jun 06 2023 - 18:58:57 EST


On Tue, 2023-06-06 at 07:00 -0700, Sathyanarayanan Kuppuswamy wrote:
> > + if (nr_tdx_keyids < 2) {
> > + pr_info("initialization failed: too few private KeyIDs
> > available.\n");
> > + goto no_tdx;
>
> I think you can return -ENODEV directly here. Maybe this goto is added to
> adapt to next
> patches. But for this patch, I don't think you need it.

OK I can do. Thanks.