|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] vt-d: Fix crash issue when not sharing EP
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1294992517 0
# Node ID 47713825a3f910fc7cf7571947e8b3b4eab23d5f
# Parent 7bc5e072d98672529c0d37d91e79d55125c1d6df
vt-d: Fix crash issue when not sharing EPT and VT-d tables.
Signed-off-by: Allen Kay <allen.m.kay@xxxxxxxxx>
---
xen/drivers/passthrough/vtd/iommu.c | 4 ++++
1 files changed, 4 insertions(+)
diff -r 7bc5e072d986 -r 47713825a3f9 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c Fri Jan 14 08:02:26 2011 +0000
+++ b/xen/drivers/passthrough/vtd/iommu.c Fri Jan 14 08:08:37 2011 +0000
@@ -1773,9 +1773,13 @@ void iommu_set_pgd(struct domain *d)
ASSERT( is_hvm_domain(d) && d->arch.hvm_domain.hap_enabled );
iommu_hap_pt_share = vtd_ept_share();
+ if ( !iommu_hap_pt_share )
+ goto out;
+
pgd_mfn = pagetable_get_mfn(p2m_get_pagetable(p2m_get_hostp2m(d)));
hd->pgd_maddr = pagetable_get_paddr(pagetable_from_mfn(pgd_mfn));
+out:
dprintk(XENLOG_INFO VTDPREFIX,
"VT-d page table %s with EPT table\n",
iommu_hap_pt_share ? "shares" : "not sharing");
_______________________________________________
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] vt-d: Fix crash issue when not sharing EPT and VT-d tables.,
Xen patchbot-unstable <=
|
|
|
|
|