[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] SVM: fix build after "make nested page-fault tracing and logging consistent"
commit 19a1c8529b6bcee56db5c8a5729bff2c8eb10fc8 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Tue Mar 12 18:11:35 2019 +0000 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> 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 <andrew.cooper3@xxxxxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> --- 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 Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |