Re: [edk2] [PATCH v1 1/1] OvmfPkg/PlatformPei: clear CPU caches

2018-10-01 Thread Laszlo Ersek
On 10/01/18 13:45, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > The TCG "Platform Reset Attack Mitigation Specification" requires to > clear the processor caches when the MOR bit is set at boot time. > > According to Paolo Bonzini, clearing the CPU cache takes only a few >

Re: [edk2] [PATCH v1 1/1] OvmfPkg/PlatformPei: clear CPU caches

2018-10-01 Thread Kinney, Michael D
o:edk2-devel- > boun...@lists.01.org] On Behalf Of > marcandre.lur...@redhat.com > Sent: Monday, October 1, 2018 4:45 AM > To: edk2-devel@lists.01.org > Cc: Justen, Jordan L ; > Anthony Perard ; Laszlo > Ersek > Subject: [edk2] [PATCH v1 1/1] OvmfPkg/PlatformPei: > clear

[edk2] [PATCH v1 1/1] OvmfPkg/PlatformPei: clear CPU caches

2018-10-01 Thread marcandre . lureau
From: Marc-André Lureau The TCG "Platform Reset Attack Mitigation Specification" requires to clear the processor caches when the MOR bit is set at boot time. According to Paolo Bonzini, clearing the CPU cache takes only a few hundred clock cycles, so it can be done unconditionally. Flush the