Skip to content

Commit

Permalink
Disable rdrand policy from vm domain
Browse files Browse the repository at this point in the history
The rdrand instruction is apparently broken on some Ryzen 3000 CPUs.
This issue is supposed to be fixed by BIOS update, but that's not
available for all boards yet. As a workaround we are disabling the
rdrand policy so the VM can start on those systems.

- https://bugzilla.redhat.com/show_bug.cgi?id=1806532
  • Loading branch information
praveenkumar committed Feb 27, 2020
1 parent 240c961 commit 8a5f7dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const (
<memory unit='MB'>{{ .Memory }}</memory>
<vcpu placement='static'>{{ .CPU }}</vcpu>
<features><acpi/><apic/><pae/></features>
<cpu mode='host-passthrough'></cpu>
<cpu mode='host-passthrough'>
<feature policy="disable" name="rdrand"/>
</cpu>
<os>
<type arch='x86_64'>hvm</type>
<boot dev='hd'/>
Expand Down

0 comments on commit 8a5f7dc

Please sign in to comment.