Thread (15 messages) 15 messages, 2 authors, 2021-09-28

Re: [PATCH v4 0/8] Implement generic cc_platform_has() helper function

From: Borislav Petkov <bp@alien8.de>
Date: 2021-09-28 20:58:19
Also in: amd-gfx, dri-devel, kexec, kvm, linux-efi, linux-iommu, linux-s390, lkml, platform-driver-x86

On Tue, Sep 28, 2021 at 01:48:46PM -0700, Kuppuswamy, Sathyanarayanan wrote:
Just read it. If you want to use cpuid_has_tdx_guest() directly in
cc_platform_has(), then you want to rename intel_cc_platform_has() to
tdx_cc_platform_has()?
Why?

You simply do:

	if (cpuid_has_tdx_guest())
		intel_cc_platform_has(...);

and lemme paste from that mail: " ...you should use
cpuid_has_tdx_guest() instead but cache its result so that you don't
call CPUID each time the kernel executes cc_platform_has()."

Makes sense?

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help