summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0153-x86-Return-memory-from-guest-to-host-kernel.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/boot_time_opt/0153-x86-Return-memory-from-guest-to-host-kernel.patch')
-rw-r--r--patches/boot_time_opt/0153-x86-Return-memory-from-guest-to-host-kernel.patch24
1 files changed, 12 insertions, 12 deletions
diff --git a/patches/boot_time_opt/0153-x86-Return-memory-from-guest-to-host-kernel.patch b/patches/boot_time_opt/0153-x86-Return-memory-from-guest-to-host-kernel.patch
index cdb876a..7e24355 100644
--- a/patches/boot_time_opt/0153-x86-Return-memory-from-guest-to-host-kernel.patch
+++ b/patches/boot_time_opt/0153-x86-Return-memory-from-guest-to-host-kernel.patch
@@ -1,4 +1,4 @@
1From 855ef164854307839c08c60688eaeac14f9a649e Mon Sep 17 00:00:00 2001 1From 9d487e5b95627e54c5ba256363ab6d1c5eaa592d Mon Sep 17 00:00:00 2001
2From: Sebastien Boeuf <sebastien.boeuf@intel.com> 2From: Sebastien Boeuf <sebastien.boeuf@intel.com>
3Date: Mon, 23 Jan 2017 15:26:13 -0800 3Date: Mon, 23 Jan 2017 15:26:13 -0800
4Subject: [PATCH 153/154] x86: Return memory from guest to host kernel 4Subject: [PATCH 153/154] x86: Return memory from guest to host kernel
@@ -53,10 +53,10 @@ Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
53 4 files changed, 42 insertions(+) 53 4 files changed, 42 insertions(+)
54 54
55diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h 55diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h
56index bc62e7cbf1b1..4a2f6d1adbd2 100644 56index c373e44049b1..847f17ff111c 100644
57--- a/arch/x86/include/asm/kvm_para.h 57--- a/arch/x86/include/asm/kvm_para.h
58+++ b/arch/x86/include/asm/kvm_para.h 58+++ b/arch/x86/include/asm/kvm_para.h
59@@ -92,6 +92,28 @@ void kvm_async_pf_task_wait(u32 token); 59@@ -93,6 +93,28 @@ void kvm_async_pf_task_wait(u32 token, int interrupt_kernel);
60 void kvm_async_pf_task_wake(u32 token); 60 void kvm_async_pf_task_wake(u32 token);
61 u32 kvm_read_and_reset_pf_reason(void); 61 u32 kvm_read_and_reset_pf_reason(void);
62 extern void kvm_disable_steal_time(void); 62 extern void kvm_disable_steal_time(void);
@@ -86,10 +86,10 @@ index bc62e7cbf1b1..4a2f6d1adbd2 100644
86 #ifdef CONFIG_PARAVIRT_SPINLOCKS 86 #ifdef CONFIG_PARAVIRT_SPINLOCKS
87 void __init kvm_spinlock_init(void); 87 void __init kvm_spinlock_init(void);
88diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c 88diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
89index edbbfc854e39..14167b3f6514 100644 89index 8bb9594d0761..696319728469 100644
90--- a/arch/x86/kernel/kvm.c 90--- a/arch/x86/kernel/kvm.c
91+++ b/arch/x86/kernel/kvm.c 91+++ b/arch/x86/kernel/kvm.c
92@@ -552,6 +552,16 @@ static __init int activate_jump_labels(void) 92@@ -563,6 +563,16 @@ static __init int activate_jump_labels(void)
93 } 93 }
94 arch_initcall(activate_jump_labels); 94 arch_initcall(activate_jump_labels);
95 95
@@ -131,18 +131,18 @@ index 4efc3f56e6df..26eb3a05a8a3 100644
131+ 131+
132 #endif /* _LINUX_MM_ARCH_HOOKS_H */ 132 #endif /* _LINUX_MM_ARCH_HOOKS_H */
133diff --git a/mm/page_alloc.c b/mm/page_alloc.c 133diff --git a/mm/page_alloc.c b/mm/page_alloc.c
134index 1460e6ad5e14..5f6e6371bc6f 100644 134index 77e4d3c5c57b..b14190aeedff 100644
135--- a/mm/page_alloc.c 135--- a/mm/page_alloc.c
136+++ b/mm/page_alloc.c 136+++ b/mm/page_alloc.c
137@@ -64,6 +64,7 @@ 137@@ -65,6 +65,7 @@
138 #include <linux/page_owner.h> 138 #include <linux/page_owner.h>
139 #include <linux/kthread.h> 139 #include <linux/kthread.h>
140 #include <linux/memcontrol.h> 140 #include <linux/memcontrol.h>
141+#include <linux/mm-arch-hooks.h> 141+#include <linux/mm-arch-hooks.h>
142 142 #include <linux/ftrace.h>
143 #include <asm/sections.h> 143 #include <linux/lockdep.h>
144 #include <asm/tlbflush.h> 144 #include <linux/nmi.h>
145@@ -855,6 +856,7 @@ static inline void __free_one_page(struct page *page, 145@@ -869,6 +870,7 @@ static inline void __free_one_page(struct page *page,
146 } 146 }
147 147
148 done_merging: 148 done_merging:
@@ -151,5 +151,5 @@ index 1460e6ad5e14..5f6e6371bc6f 100644
151 151
152 /* 152 /*
153-- 153--
1542.12.1 1542.15.0
155 155