First of all make sure that packages :$ sudo apt install ovmf swtpm swtpm-toolsare already installed on your system, then the configuration of TPM is no longer your concern. Howevere, original setup would still look like . . . . . .
Source: LXer – Install Windows 11 as KVM Guest in SparkyLinux 7 using virt-manager