Re: [PATCHv2 19/29] x86/topology: Disable CPU online/offline control for TDX guests

Thomas Gleixner
2022-02-02T00:09:42Z

On Mon, Jan 24 2022 at 18:02, Kirill A. Shutemov wrote:
> static bool intel_cc_platform_has(enum cc_attr attr)
> {
> - if (attr == CC_ATTR_GUEST_UNROLL_STRING_IO)
> + switch (attr) {
> + case CC_ATTR_GUEST_UNROLL_STRING_IO:
> + case CC_ATTR_HOTPLUG_DISABLED:
> return true;
> + default:
> + return false;
> + }
>
> return false;

Sigh. If 'default:' returns false then this final return cannot be
reached, no?

Thanks,

tglx