mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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:
1 parent
6be613f29b
commit
19a1c8529b
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
|
||||