mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/mm: drop yet another relic of translated PV domains from new_guest_cr3()
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>
This commit is contained in:
1 parent
f9a9878049
commit
a7ddeae652
1 file changed
+1
-3
+1
-3
@@ -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:
|
||||
|
||||