]> xenbits.xensource.com Git - xen.git/commitdiff
xen/x86: Fixup misc stale issues
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 1 Oct 2016 18:36:12 +0000 (18:36 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 24 Oct 2016 10:35:34 +0000 (11:35 +0100)
 * Dom0 does now have an arch_config passed.
 * hypercall() and smp_alloc_memory() no longer exist.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/setup.c
xen/include/asm-x86/processor.h
xen/include/asm-x86/smp.h

index 58b117d282eebf72e533cf6ae8ff3d462934c3f3..b13067132d29d7eeecee1eac08f3b6a327d9a177 100644 (file)
@@ -1541,11 +1541,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)
     if ( opt_dom0pvh )
         domcr_flags |= DOMCRF_pvh | DOMCRF_hap;
 
-    /*
-     * Create initial domain 0.
-     * x86 doesn't support arch-configuration. So it's fine to pass
-     * NULL.
-     */
+    /* Create initial domain 0. */
     dom0 = domain_create(0, domcr_flags, 0, &config);
     if ( IS_ERR(dom0) || (alloc_dom0_vcpu0(dom0) == NULL) )
         panic("Error creating domain 0");
index 3e6e35573adfa822f51dbd7554a033d0655323f0..6378afd1269b4df59072be3427cb384efebbf429 100644 (file)
@@ -612,8 +612,6 @@ struct stubs {
 DECLARE_PER_CPU(struct stubs, stubs);
 unsigned long alloc_stub_page(unsigned int cpu, unsigned long *mfn);
 
-extern int hypercall(void);
-
 int cpuid_hypervisor_leaves( uint32_t idx, uint32_t sub_idx,
           uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx);
 int rdmsr_hypervisor_regs(uint32_t idx, uint64_t *val);
index 33c2c32f425502314c26f6f54b773142759a9ea0..e3782bbef1a467d7f3387b7e597a03a03466a3b6 100644 (file)
@@ -23,8 +23,6 @@
 /*
  * Private routines/data
  */
-extern void smp_alloc_memory(void);
 DECLARE_PER_CPU(cpumask_var_t, cpu_sibling_mask);
 DECLARE_PER_CPU(cpumask_var_t, cpu_core_mask);