CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2023/07/25 08:53:31
Modified files: sys/arch/amd64/amd64: Tag: OPENBSD_7_2 cpu.c sys/arch/i386/i386: Tag: OPENBSD_7_2 machdep.c Log message: Some hypervisors (such as Hertzner) allow msr read of DE_CFG (which does not indicate bit 9 set, but they could have a firmware fix) but then block a msr write to bit 9 (which disables enough AVX optimizations to prevent the exfiltration of data), with a fault. So let's also check the HV bit before we decide to modify the bit. hypervisors are expected to set that bit. tested by lucas at sexy dot is. from deraadt@; with jsg@; ok mlarkin@ this is errata/7.2/037_hvamdcpu.patch.sig