diff options
author | Jan Beulich <JBeulich@suse.com> | 2012-05-30 09:21:04 +0100 |
---|---|---|
committer | Jan Beulich <JBeulich@suse.com> | 2012-05-30 09:21:04 +0100 |
commit | 346e974dcabe907927d6169c5db936ffec19358b (patch) | |
tree | 8d2b39e7320831234ab71ae0bbb2d4b6079567f1 /xen/include/asm-x86/setup.h | |
parent | d74ca2863a63202e09fb147a039c9af5f810e468 (diff) | |
download | xen-346e974dcabe907927d6169c5db936ffec19358b.tar.gz xen-346e974dcabe907927d6169c5db936ffec19358b.tar.bz2 xen-346e974dcabe907927d6169c5db936ffec19358b.zip |
x86: fix nested HVM initialization
- no need for calling nestedhvm_setup() explicitly (can be a normal
init-call, and can be __init)
- calling _xmalloc() for multi-page, page-aligned memory regions is
inefficient - use alloc_xenheap_pages() instead
- albeit an allocation error is unlikely here, add error handling
nevertheless (and have nestedhvm_vcpu_initialise() bail if an error
occurred during setup)
- nestedhvm_enabled() must no access d->arch.hvm_domain without first
checking that 'd' actually represents a HVM domain
Signed-off-by: Jan Beulich <JBeulich@suse.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/setup.h')
-rw-r--r-- | xen/include/asm-x86/setup.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/xen/include/asm-x86/setup.h b/xen/include/asm-x86/setup.h index 4a16302b53..abbab23afe 100644 --- a/xen/include/asm-x86/setup.h +++ b/xen/include/asm-x86/setup.h @@ -21,7 +21,6 @@ void set_nr_cpu_ids(unsigned int max_cpus); void numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn); void arch_init_memory(void); void subarch_init_memory(void); -void nestedhvm_setup(void); void init_IRQ(void); void vesa_init(void); |