Re: [PATCHv6 16/30] x86/boot: Port I/O: add decompression-time support for TDX

Thomas Gleixner
2022-03-17T12:15:06Z

On Wed, Mar 16 2022 at 05:08, Kirill A. Shutemov wrote:
> void early_tdx_detect(void)
> {
> u32 eax, sig[3];
> @@ -23,4 +94,12 @@ void early_tdx_detect(void)
>
> /* Cache TDX guest feature status */
> tdx_guest_detected = true;
> +
> + /* Use hypercalls instead of I/O instructions */
> + inb = tdx_inb;

Eeew. What's wrong with writing this out?

pio_ops.inb = tdx_inb;

So it becomes obvious what this is about?

Thanks,

tglx