|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [IA64] Fix Xen crash when creating VTI do
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1169579222 25200
# Node ID 10dd3c907ca772a4a7134543427f8e847ab01d90
# Parent b59b6173455d0034503bae93a5f98e887ba51873
[IA64] Fix Xen crash when creating VTI domain
Xend will do a hypercall to destory domain when creating VTI guest fails.
If "is_vti" is not set at that point, HV will call relinquish_vcpu_resource(),
which is for non-VTI. It may try to free a NULL pointer, so dom0 crash.
This patch fix it.
Signed-off-by: Xu Anthony <Anthony.xu@xxxxxxxxx>
Signed-off-by: Zhang Xin <xing.z.zhang@xxxxxxxxx>
---
xen/arch/ia64/xen/vhpt.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
diff -r b59b6173455d -r 10dd3c907ca7 xen/arch/ia64/xen/vhpt.c
--- a/xen/arch/ia64/xen/vhpt.c Tue Jan 23 12:01:38 2007 -0700
+++ b/xen/arch/ia64/xen/vhpt.c Tue Jan 23 12:07:02 2007 -0700
@@ -177,7 +177,9 @@ void
void
pervcpu_vhpt_free(struct vcpu *v)
{
- free_domheap_pages(v->arch.vhpt_page, VHPT_SIZE_LOG2 - PAGE_SHIFT);
+ if (likely(v->arch.vhpt_page != NULL))
+ free_domheap_pages(v->arch.vhpt_page,
+ VHPT_SIZE_LOG2 - PAGE_SHIFT);
}
#endif
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [IA64] Fix Xen crash when creating VTI domain,
Xen patchbot-unstable <=
|
|
|
|
|