[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220318153617.u7rztnnhv6gvls4z@black.fi.intel.com>
Date: Fri, 18 Mar 2022 18:36:17 +0300
From: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: mingo@...hat.com, bp@...en8.de, dave.hansen@...el.com,
luto@...nel.org, peterz@...radead.org,
sathyanarayanan.kuppuswamy@...ux.intel.com, aarcange@...hat.com,
ak@...ux.intel.com, dan.j.williams@...el.com, david@...hat.com,
hpa@...or.com, jgross@...e.com, jmattson@...gle.com,
joro@...tes.org, jpoimboe@...hat.com, knsathya@...nel.org,
pbonzini@...hat.com, sdeep@...are.com, seanjc@...gle.com,
tony.luck@...el.com, vkuznets@...hat.com, wanpengli@...cent.com,
thomas.lendacky@....com, brijesh.singh@....com, x86@...nel.org,
linux-kernel@...r.kernel.org,
Dave Hansen <dave.hansen@...ux.intel.com>
Subject: Re: [PATCHv6 16/30] x86/boot: Port I/O: add decompression-time
support for TDX
On Fri, Mar 18, 2022 at 03:28:57PM +0100, Thomas Gleixner wrote:
> On Thu, Mar 17 2022 at 23:15, Kirill A. Shutemov wrote:
> > On Thu, Mar 17, 2022 at 01:15:01PM +0100, Thomas Gleixner wrote:
> >> 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?
> >
> > This leads to preprocessor hell: "pio_ops.inb" is expanded to
> > "pio_ops.pio_ops.inb" :/
> >
> > I can rename fields in struct port_io_ops to avoid conflicts, I donno.
>
> Yes, please rename them.
Oops, I've sent v7, before I read the reply. I will sent updates to
relevant patches.
--
Kirill A. Shutemov
Powered by blists - more mailing lists