]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Fix offset computation bug in __sev_dbg_decrypt().
authorAshish Kalra <ashish.kalra@amd.com>
Tue, 10 Nov 2020 22:42:05 +0000 (22:42 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Nov 2020 18:59:09 +0000 (13:59 -0500)
commitba6da10e7d7dd4a94d5b8da1ac5486594c952335
tree9100a41610163adc63a20c20888102b4c0187096
parent9b1e0df7204cb65bc6160b922b636b27944d3e76
KVM: SVM: Fix offset computation bug in __sev_dbg_decrypt().

Fix offset computation in __sev_dbg_decrypt() to include the
source paddr before it is rounded down to be aligned to 16 bytes
as required by SEV API. This fixes incorrect guest memory dumps
observed when using qemu monitor.

Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Message-Id: <20201110224205.29444-1-Ashish.Kalra@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c