diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-18 15:05:54 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-18 15:05:54 +0100 |
commit | c12bbde846af61d1b8441da6c627181ccbc7a157 (patch) | |
tree | 7b8a9e3598e5ad236745f0eca8379530ca88f792 /xen/include/asm-x86/mm.h | |
parent | 852ed0aaf07ad074ac111b1a432de5b816aad7fd (diff) | |
download | xen-c12bbde846af61d1b8441da6c627181ccbc7a157.tar.gz xen-c12bbde846af61d1b8441da6c627181ccbc7a157.tar.bz2 xen-c12bbde846af61d1b8441da6c627181ccbc7a157.zip |
x86: Pull dynamic memory allocation out of do_boot_cpu().
This has two advantages:
(a) We can move the allocations to a context where we can handle
failure.
(b) We can implement matching deallocations on CPU offline.
Only the idle vcpu structure is now not freed on CPU offline. This
probably does not really matter.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/mm.h')
-rw-r--r-- | xen/include/asm-x86/mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h index 1cff19bb4e..26a1a680f2 100644 --- a/xen/include/asm-x86/mm.h +++ b/xen/include/asm-x86/mm.h @@ -485,6 +485,7 @@ void memguard_unguard_range(void *p, unsigned long l); #endif void memguard_guard_stack(void *p); +void memguard_unguard_stack(void *p); int ptwr_do_page_fault(struct vcpu *, unsigned long, struct cpu_user_regs *); |