]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
x86/mm: drop yet another relic of translated PV domains from new_guest_cr3()
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Dec 2017 16:22:31 +0000 (17:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Dec 2017 16:22:31 +0000 (17:22 +0100)
The function can be called for PV domains only, which commit 5a0b9fba92
("x86/mm: drop further relics of translated PV domains") sort of
realized, but not fully.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c

index 155e42569bf749de3ccb56599fc909f9cb4cb5f6..f61fe2507ee41f68779d8dfc85d610f22cae1f17 100644 (file)
@@ -2845,9 +2845,7 @@ int new_guest_cr3(mfn_t mfn)
         return 0;
     }
 
-    rc = paging_mode_refcounts(d)
-         ? (get_page_from_mfn(mfn, d) ? 0 : -EINVAL)
-         : get_page_and_type_from_mfn(mfn, PGT_root_page_table, d, 0, 1);
+    rc = get_page_and_type_from_mfn(mfn, PGT_root_page_table, d, 0, 1);
     switch ( rc )
     {
     case 0: