Patch to allowVMXdomainsto be destroyedor shut down cleanly
Quoted 5 lines · Keir Fraser
Quoted 2 lines · Chengyuan
No, in cr3 handler, it only get_page/put_page when paging enabled. If paging is disabled, no get_page/put_page operations.
Quoted 7 lines
Ok, yep, I see that.
Then I think your patch ought to work. If it's tested then please send as an attachment (I can then easily extract and apply it).
Thanks,
Keir
Put_page on vmx_set_cr0 for multiple protected/real mode switch.
Thanks
Yunhong Jiang
# HG changeset patch
# User [email protected]
# Node ID 63e4a7e9de66b5dda852ccc5e77c111180a2df32
# Parent d1cbfaf804d98aec913ad57e3531d45c6459b366 Put_page on vmx_set_cr0 for multiple protected/real mode switch.
xen/arch/x86/vmx.c +5 -0
@@ -1099,6 +1099,11 @@VMX_DBG_LOG (DBG_LEVEL_VMMU ,"Update CR3 value = %lx, mfn = %lx" , d->arch.arch_vmx.cpu_cr3, mfn); } + +if (!((value &X86_CR0_PE ) && (value &X86_CR0_PG )) && paging_enabled) +if (d->arch.arch_vmx.cpu_cr3) +put_page (pfn_to_page (get_mfn_from_pfn ( + d->arch.arch_vmx.cpu_cr3 >>PAGE_SHIFT )));/* * VMX does not implement real-mode virtualization. We emulate
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
"Jiang, Yunhong" <[email protected]> wrote on 09/20/2005 04:54:39 AM:
Quoted 6 lines
Put_pageonvmx_set_cr0for multiple protected/real mode switch.Thanks
Yunhong Jiang
[attachment "put_page.diff"]
Yunhong - for some reason, your patch crashed on my system when I tried to boot up Windows XP. However, my system is down-level (in terms of Xen). I tried to update my system to the latest xen-vtx-unstable tree this morning, but could not get Windows XP booted. I wonder if you have any suggestions for me. Thanks in advance.
Khoa H.