From 41744bf9b26a6b233998af46a898690ffd48cfd1 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Wed, 17 Dec 2008 17:32:01 +0000 Subject: [PATCH] patch shadow_check_invalid_mfn --- xen/arch/x86/mm/shadow/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/mm/shadow/common.c b/xen/arch/x86/mm/shadow/common.c index dd391cc..9b0f843 100644 --- a/xen/arch/x86/mm/shadow/common.c +++ b/xen/arch/x86/mm/shadow/common.c @@ -2724,6 +2724,8 @@ void sh_remove_shadows(struct vcpu *v, mfn_t gmfn, int fast, int all) }; ASSERT(!(all && fast)); + if ( !mfn_valid(gmfn) ) + return; /* Although this is an externally visible function, we do not know * whether the shadow lock will be held when it is called (since it -- 2.39.5