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@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
This commit is contained in:
Jan Beulich authored and Wei Liu committed 2019-03-12 18:13:10 +00:00
1 parent 6be613f29b
commit 19a1c8529b
1 file changed
+2 -2
+2 -2
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.