[xen staging] SVM: fix build after "make nested page-fault tracing and logging consistent"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] SVM: fix build after "make nested page-fault tracing and logging consistent"

patchbot
commit 19a1c8529b6bcee56db5c8a5729bff2c8eb10fc8
Author:     Jan Beulich <[hidden email]>
AuthorDate: Tue Mar 12 18:11:35 2019 +0000
Commit:     Wei Liu <[hidden email]>
CommitDate: Tue Mar 12 18:13:10 2019 +0000

    SVM: fix build after "make nested page-fault tracing and logging consistent"
   
    Some compiler versions don't recognize that "mfn" can't really be used
    uninitialized in svm_do_nested_pgfault(). To be on the safe side, add an
    initializer for p2mt as well.
   
    Reported-by: Andrew Cooper <[hidden email]>
    Signed-off-by: Jan Beulich <[hidden email]
    Reviewed-by: Wei Liu <[hidden email]>
    Reviewed-by: Boris Ostrovsky <[hidden email]>
---
 xen/arch/x86/hvm/svm/svm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c
index fec9be3ae0..506258abdc 100644
--- a/xen/arch/x86/hvm/svm/svm.c
+++ b/xen/arch/x86/hvm/svm/svm.c
@@ -1762,8 +1762,8 @@ static void svm_do_nested_pgfault(struct vcpu *v,
 {
     int ret;
     unsigned long gfn = gpa >> PAGE_SHIFT;
-    mfn_t mfn;
-    p2m_type_t p2mt;
+    mfn_t mfn = INVALID_MFN;
+    p2m_type_t p2mt = p2m_invalid;
     p2m_access_t p2ma;
     struct p2m_domain *p2m = NULL;
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog