search for: map_hypervisor

Displaying 2 results from an estimated 2 matches for "map_hypervisor".

2007 Apr 18
0
[PATCH] lguest: Compile hypervisor.S into the lg module directly
...n (void *)HYPE_ADDR + HYPE_DATA_SIZE; +/* Offset from where hypervisor.S was compiled to where we've copied it */ +static unsigned long hype_offset(void) +{ + return HYPE_ADDR - (unsigned long)start_hyper_text; } /* This cpu's struct lguest_pages. */ @@ -65,9 +63,15 @@ static __init int map_hypervisor(void) static __init int map_hypervisor(void) { int i, err; - struct page **pagep = hype_page; - - for (i = 0; i < ARRAY_SIZE(hype_page); i++) { + struct page **pagep; + + hype_page = kmalloc(sizeof(hype_page[0])*TOTAL_HYPE_PAGES, GFP_KERNEL); + if (!hype_page) { + err = -ENOMEM; + goto out...
2007 Apr 18
0
[PATCH] lguest: Compile hypervisor.S into the lg module directly
...n (void *)HYPE_ADDR + HYPE_DATA_SIZE; +/* Offset from where hypervisor.S was compiled to where we've copied it */ +static unsigned long hype_offset(void) +{ + return HYPE_ADDR - (unsigned long)start_hyper_text; } /* This cpu's struct lguest_pages. */ @@ -65,9 +63,15 @@ static __init int map_hypervisor(void) static __init int map_hypervisor(void) { int i, err; - struct page **pagep = hype_page; - - for (i = 0; i < ARRAY_SIZE(hype_page); i++) { + struct page **pagep; + + hype_page = kmalloc(sizeof(hype_page[0])*TOTAL_HYPE_PAGES, GFP_KERNEL); + if (!hype_page) { + err = -ENOMEM; + goto out...