Created attachment 298457 [details] Add the missing sev_clflush_pages() In sev_receive_update_data(), sev_clflush_pages() is not called b/w sev_pin_memory() and RECEIVE_UPDATE_DATA. Because of this missing, we will often see the pre-written contents in the memory updated by RECEIVE_UPDATE_DATA. I guess that we should call sev_clflush_pages() as LAUNCH_UPDATE_DATA.
If you can provided a Signed-off-by, I'll happily write a changelog and post the patch on your behalf. Thanks!
(In reply to Sean Christopherson from comment #1) > If you can provided a Signed-off-by, I'll happily write a changelog and post > the patch on your behalf. Thanks! Thabk you for your reply. Please use Signed-off-by: Masahiro Kozuka <masa.koz@kozuka.jp>