[XEN] Add tracing to slow path in setting new guest %cr3 value.

Also, allow x86/64 user cr3 value to be reset to zero.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-08-15 16:31:14 +01:00
1 parent ef3277d97c
commit 89e0f558c8
1 file changed
+5 -2
+5 -2
View File
@@ -1744,6 +1744,7 @@ int new_guest_cr3(unsigned long mfn)
if ( unlikely(!okay) )
{
/* Switch to idle pagetable: this VCPU has no active p.t. now. */
MEM_LOG("New baseptr %lx: slow path via idle pagetables", mfn);
old_base_mfn = pagetable_get_pfn(v->arch.guest_table);
v->arch.guest_table = pagetable_null();
update_pagetables(v);
@@ -2025,8 +2026,10 @@ int do_mmuext_op(
#ifdef __x86_64__
case MMUEXT_NEW_USER_BASEPTR:
okay = get_page_and_type_from_pagenr(
mfn, PGT_root_page_table, d);
okay = 1;
if (likely(mfn != 0))
okay = get_page_and_type_from_pagenr(
mfn, PGT_root_page_table, d);
if ( unlikely(!okay) )
{
MEM_LOG("Error while installing new mfn %lx", mfn);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.