]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Revert "Merge branch 'stable/pvh.v6.1' into linux-next"
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 30 Nov 2012 22:11:39 +0000 (17:11 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 30 Nov 2012 22:11:39 +0000 (17:11 -0500)
This reverts commit ca63454c05deabcfcd44b5dde7b9344b811061a8, reversing
changes made to 25cba9a9a48b0c3912461155dae88831471a89dd.

arch/arm/xen/enlighten.c
arch/x86/xen/mmu.c
drivers/xen/privcmd.c

index d4b23f4cda989e714d106005d14b2107e10eb6b5..7ef3fa918a74dd103288f263b2eefbdadab0cf61 100644 (file)
@@ -248,6 +248,7 @@ static int __init xen_init_events(void)
 }
 postcore_initcall(xen_init_events);
 
+
 /* In the hypervisor.S file. */
 EXPORT_SYMBOL_GPL(HYPERVISOR_event_channel_op);
 EXPORT_SYMBOL_GPL(HYPERVISOR_grant_table_op);
@@ -257,4 +258,4 @@ EXPORT_SYMBOL_GPL(HYPERVISOR_sched_op);
 EXPORT_SYMBOL_GPL(HYPERVISOR_hvm_op);
 EXPORT_SYMBOL_GPL(HYPERVISOR_memory_op);
 EXPORT_SYMBOL_GPL(HYPERVISOR_physdev_op);
-EXPORT_SYMBOL_GPL(privcmd_call);
\ No newline at end of file
+EXPORT_SYMBOL_GPL(privcmd_call);
index a63e5f9a8033509041d47b99ce98a7f8f65c1fba..4a05b398cf7d19688a2b703429dc90fec6c7a17a 100644 (file)
@@ -1486,8 +1486,7 @@ static int xen_pgd_alloc(struct mm_struct *mm)
 
                if (user_pgd != NULL) {
                        user_pgd[pgd_index(VSYSCALL_START)] =
-                               __pgd(__pa_symbol(level3_user_vsyscall) |
-                                     _PAGE_TABLE);
+                               __pgd(__pa(level3_user_vsyscall) | _PAGE_TABLE);
                        ret = 0;
                }
 
@@ -1959,10 +1958,10 @@ void __init xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn)
         * pgd.
         */
        if (xen_feature(XENFEAT_writable_page_tables)) {
-               native_write_cr3(__pa_symbol(init_level4_pgt));
+               native_write_cr3(__pa(init_level4_pgt));
        } else {
                xen_mc_batch();
-               __xen_write_cr3(true, __pa_symbol(init_level4_pgt));
+               __xen_write_cr3(true, __pa(init_level4_pgt));
                xen_mc_issue(PARAVIRT_LAZY_CPU);
        }
        /* We can't that easily rip out L3 and L2, as the Xen pagetables are
@@ -1985,10 +1984,10 @@ static RESERVE_BRK_ARRAY(pmd_t, swapper_kernel_pmd, PTRS_PER_PMD);
 
 static void __init xen_write_cr3_init(unsigned long cr3)
 {
-       unsigned long pfn = PFN_DOWN(__pa_symbol(swapper_pg_dir));
+       unsigned long pfn = PFN_DOWN(__pa(swapper_pg_dir));
 
-       BUG_ON(read_cr3() != __pa_symbol(initial_page_table));
-       BUG_ON(cr3 != __pa_symbol(swapper_pg_dir));
+       BUG_ON(read_cr3() != __pa(initial_page_table));
+       BUG_ON(cr3 != __pa(swapper_pg_dir));
 
        /*
         * We are switching to swapper_pg_dir for the first time (from
@@ -2012,7 +2011,7 @@ static void __init xen_write_cr3_init(unsigned long cr3)
        pin_pagetable_pfn(MMUEXT_PIN_L3_TABLE, pfn);
 
        pin_pagetable_pfn(MMUEXT_UNPIN_TABLE,
-                         PFN_DOWN(__pa_symbol(initial_page_table)));
+                         PFN_DOWN(__pa(initial_page_table)));
        set_page_prot(initial_page_table, PAGE_KERNEL);
        set_page_prot(initial_kernel_pmd, PAGE_KERNEL);
 
@@ -2037,7 +2036,7 @@ void __init xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn)
 
        copy_page(initial_page_table, pgd);
        initial_page_table[KERNEL_PGD_BOUNDARY] =
-               __pgd(__pa_symbol(initial_kernel_pmd) | _PAGE_PRESENT);
+               __pgd(__pa(initial_kernel_pmd) | _PAGE_PRESENT);
 
        set_page_prot(initial_kernel_pmd, PAGE_KERNEL_RO);
        set_page_prot(initial_page_table, PAGE_KERNEL_RO);
@@ -2046,8 +2045,8 @@ void __init xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn)
        pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, PFN_DOWN(__pa(pgd)));
 
        pin_pagetable_pfn(MMUEXT_PIN_L3_TABLE,
-                         PFN_DOWN(__pa_symbol(initial_page_table)));
-       xen_write_cr3(__pa_symbol(initial_page_table));
+                         PFN_DOWN(__pa(initial_page_table)));
+       xen_write_cr3(__pa(initial_page_table));
 
        memblock_reserve(__pa(xen_start_info->pt_base),
                         xen_start_info->nr_pt_frames * PAGE_SIZE);
index 3421f0d08923a3c3457bd6ede5c64ef8709d3e98..0bbbccbb1f1296ea305414795b6915679b26d94d 100644 (file)
@@ -499,7 +499,7 @@ static void privcmd_close(struct vm_area_struct *vma)
        struct page **pages = vma->vm_private_data;
        int numpgs = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
 
-       if (!xen_feature(XENFEAT_auto_translated_physmap) || !numpgs || !pages)
+       if (!xen_feature(XENFEAT_auto_translated_physmap || !numpgs || !pages))
                return;
 
        xen_unmap_domain_mfn_range(vma, numpgs, pages);