[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [IA64] Fix VTi



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 608ac00f4cfc9020958ab5e15d00daf752ab73a2
# Parent  cdecdd55f0d32f91d418840740adab6b798e6131
[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@xxxxxxxxx>
Signed-off-by: Kevin Tian <kevin.tian@xxxxxxxxx>
---
 xen/arch/ia64/vmx/vmx_init.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff -r cdecdd55f0d3 -r 608ac00f4cfc xen/arch/ia64/vmx/vmx_init.c
--- a/xen/arch/ia64/vmx/vmx_init.c      Mon May 15 14:12:07 2006 -0600
+++ b/xen/arch/ia64/vmx/vmx_init.c      Tue May 16 08:59:26 2006 -0600
@@ -351,17 +351,13 @@ int vmx_build_physmap_table(struct domai
 
        /* Map normal memory below 3G */
        end = VMX_CONFIG_PAGES(d) << PAGE_SHIFT;
-       if (end > VGA_IO_START)
-           end += VGA_IO_SIZE;
        tmp = end < MMIO_START ? end : MMIO_START;
        for (i = 0; (i < tmp) && (list_ent != &d->page_list); i += PAGE_SIZE) {
-        if (VGA_IO_START <= i && i < VGA_IO_START + VGA_IO_SIZE)
-            continue;
-
-           mfn = page_to_mfn(list_entry(
-               list_ent, struct page_info, list));
+           mfn = page_to_mfn(list_entry(list_ent, struct page_info, list));
+           list_ent = mfn_to_page(mfn)->list.next;
+           if (VGA_IO_START <= i && i < VGA_IO_START + VGA_IO_SIZE)
+               continue;
            assign_domain_page(d, i, mfn << PAGE_SHIFT);
-           list_ent = mfn_to_page(mfn)->list.next;
        }
        ASSERT(list_ent != &d->page_list);
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.