Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.4 KB

NOTES.md

File metadata and controls

27 lines (19 loc) · 1.4 KB

Notes

Here are various notes and such that don't belong in the README but don't have a home anywhere else.

Kernel 5.14.x notes

As of kernel 5.14.x, Intel TSX (transactional synchronization extensions) is disabled on more CPUs for security reasons. You can read up more on the security implications here.

If your VM fails to launch with some variety of the message Host CPU does not provide required features: rtm, hle, but only after moving from kernel 5.13.x to 5.14.x, there's a good chance you have an effected CPU. The two things libvirt is complaining about are dependent on TSX - Restricted Transactional Memory (RTM) and Hardware Lock Elision (HLE).

To verify TSX is disabled, run the command below:

$ lscpu | grep Tsx
Vulnerability Tsx async abort:   Mitigation; TSX disabled

To mitigate it, I disabled these features in the VM to match the host. Add the two feature policy lines, as shown below, to the XML file defining your virtual machine for libvirt in the CPU section:

<cpu mode="custom" match="exact" check="partial">
  <model fallback="allow">Skylake-Client</model>
  <topology sockets="1" dies="1" cores="4" threads="1"/>
  <feature policy="disable" name="rtm"/>
  <feature policy="disable" name="hle"/>
</cpu>