Re: [PATCHv4 3/4] x86/tdx: Dynamically disable SEPT violations from causing #VEs

From: Dave Hansen
Date: Wed May 15 2024 - 09:53:48 EST


On 5/15/24 02:30, Kirill A. Shutemov wrote:
>> nit: Perhaps this function can be put in the first patch and the description
>> there be made more generic, something along the lines of "introduce
>> functions for tdg_rd/tdg_wr" ?
> A static function without an user will generate a build warning. I don't
> think it is good idea.

OK, so stick a __maybe_unused on it when you define it and remove it on
first use.