First step is to debug this issue and see if its a reasonable fix. If that's possible then we should leave qemu alone.
Second if we want to disable KSM for nested VMs relying on a 'QEMU' cpu isn't sufficient if someone uses a different -cpu flag. We could do:
grep -q "Booting paravirtualized kernel on KVM" /var/log/kern.log && echo 0 > /sys/kernel/mm/ksm/run
Or use tools like virt-what.
@serge-hallyn:
First step is to debug this issue and see if its a reasonable fix. If that's possible then we should leave qemu alone.
Second if we want to disable KSM for nested VMs relying on a 'QEMU' cpu isn't sufficient if someone uses a different -cpu flag. We could do: mm/ksm/ run
grep -q "Booting paravirtualized kernel on KVM" /var/log/kern.log && echo 0 > /sys/kernel/
Or use tools like virt-what.
Regardless I'll work on step 1.