Common patches for the target-independent functionality and hooks that are needed by SEV-SNP and TDX.