编程知识 cdmana.com

Linux 5.16 will support KVM and disable amd PSF function

stay Linux 5.16 The kernel ,AMD PSF Bits will now be exposed to KVM Guest VM , To explicitly disable this AMD CPU function .

PSF(Predictive Store Forwarding) Is a hardware based microarchitecture optimization , It aims to improve the performance of code execution by predicting the address dependency between load and storage . modern CPU A method called store to load forwarding is implemented (STLF) Technology , The stored data is forwarded directly to the payload , You don't have to wait for it to be written to memory . and PSF Provide performance advantages by inferring load results , And allow subsequent instructions to start executing earlier .

This year, 3 month ,AMD A copy was provided  PSF Safety analysis , Think that although it has a very small possibility to lead to wrong CPU speculation , But it's still safe for most applications , It is still recommended to enable... By default . therefore Linux The kernel is not enabled yet / Ban PSF The interface of . however , Submitted this time Patch take PSF A bit was exposed to KVM( Virtual machine based on Kernel ), This allows the guest kernel to disable this feature when needed .

More details , Please check the Patch .

( writing / Open source in China )    

版权声明
本文为[Programming China News]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/10/20211002145819461c.html

Scroll to Top