ia64/xen-unstable
changeset 10011:608ac00f4cfc
[IA64] Fix VTi
This patch should fix VTi broken bug, though it will waste 8 pages.
Once change Qemu's related code, we can find this 8 pages back
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
This patch should fix VTi broken bug, though it will waste 8 pages.
Once change Qemu's related code, we can find this 8 pages back
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
author | awilliam@xenbuild.aw |
---|---|
date | Tue May 16 08:59:26 2006 -0600 (2006-05-16) |
parents | cdecdd55f0d3 |
children | 06e5c5599147 |
files | xen/arch/ia64/vmx/vmx_init.c |
line diff
1.1 --- a/xen/arch/ia64/vmx/vmx_init.c Mon May 15 14:12:07 2006 -0600 1.2 +++ b/xen/arch/ia64/vmx/vmx_init.c Tue May 16 08:59:26 2006 -0600 1.3 @@ -351,17 +351,13 @@ int vmx_build_physmap_table(struct domai 1.4 1.5 /* Map normal memory below 3G */ 1.6 end = VMX_CONFIG_PAGES(d) << PAGE_SHIFT; 1.7 - if (end > VGA_IO_START) 1.8 - end += VGA_IO_SIZE; 1.9 tmp = end < MMIO_START ? end : MMIO_START; 1.10 for (i = 0; (i < tmp) && (list_ent != &d->page_list); i += PAGE_SIZE) { 1.11 - if (VGA_IO_START <= i && i < VGA_IO_START + VGA_IO_SIZE) 1.12 - continue; 1.13 - 1.14 - mfn = page_to_mfn(list_entry( 1.15 - list_ent, struct page_info, list)); 1.16 + mfn = page_to_mfn(list_entry(list_ent, struct page_info, list)); 1.17 + list_ent = mfn_to_page(mfn)->list.next; 1.18 + if (VGA_IO_START <= i && i < VGA_IO_START + VGA_IO_SIZE) 1.19 + continue; 1.20 assign_domain_page(d, i, mfn << PAGE_SHIFT); 1.21 - list_ent = mfn_to_page(mfn)->list.next; 1.22 } 1.23 ASSERT(list_ent != &d->page_list); 1.24