On 20/03/2025 10:40 am, Sergiy Kibrik wrote: > Introduce NESTEDHVM config option that controls nested virtualization in both > SVM & VMX code. The option is for reduction of dead code on systems that > aren't intended to run in nested mode. > > Signed-off-by: Sergiy Kibrik <sergiy_kib...@epam.com>
I know you're trying to remove unused code, but you're #ifdef-ing out non-dead code which reachable by guests. You cannot #ifdef out any of the VMExit or MSR handling. They still need handling if the guest does them, and falling to defaults doesn't work. e.g. we'll now crash the VM if it executes an STGI instruction, rather than injecting #UD. ~Andrew