Edit or create /etc/modprobe.d/qemu-system-x86.conf and add the below:
options kvm_intel nested=1 enable_apicv=n ple_gap=0 ple_window=0
options vhost_net experimental_zcopytx=1
Edit /etc/sysctl.conf and add the below:
vm.nr_hugepages = 13312
kernel.nmi_watchdog=0
kernel.sched_rt_runtime_us=-1