CPU instructions in KVM


Is there any way to enable certain CPU instructions in a KVM guest? I’m trying to run Tensorflow but it requires SSE(4)

LXC has those instructions avalaible by default

This is the instructions that I get in a KVM guest

flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl xtopology cpuid tsc_known_freq pni cx16 x2apic hypervisor lahf_lm cpuid_fault pti

this was fixed by adding:

RAW = [
  DATA = "<cpu mode='host-passthrough'></cpu>",
  TYPE = "kvm"]