diff options
-rw-r--r-- | arch/x86/include/asm/paravirt.h | 5 | ||||
-rw-r--r-- | arch/x86/include/asm/paravirt_types.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/processor.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/kvm.c | 8 | ||||
-rw-r--r-- | arch/x86/kernel/paravirt.c | 1 | ||||
-rw-r--r-- | arch/x86/lguest/boot.c | 2 | ||||
-rw-r--r-- | arch/x86/xen/enlighten.c | 1 |
7 files changed, 0 insertions, 19 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 6c7a4a192032..dff26bc91b17 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h | |||
@@ -15,11 +15,6 @@ | |||
15 | #include <linux/cpumask.h> | 15 | #include <linux/cpumask.h> |
16 | #include <asm/frame.h> | 16 | #include <asm/frame.h> |
17 | 17 | ||
18 | static inline int paravirt_enabled(void) | ||
19 | { | ||
20 | return pv_info.paravirt_enabled; | ||
21 | } | ||
22 | |||
23 | static inline void load_sp0(struct tss_struct *tss, | 18 | static inline void load_sp0(struct tss_struct *tss, |
24 | struct thread_struct *thread) | 19 | struct thread_struct *thread) |
25 | { | 20 | { |
diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h index 6acc1b26cf40..7fedf24bd811 100644 --- a/arch/x86/include/asm/paravirt_types.h +++ b/arch/x86/include/asm/paravirt_types.h | |||
@@ -69,7 +69,6 @@ struct pv_info { | |||
69 | u16 extra_user_64bit_cs; /* __USER_CS if none */ | 69 | u16 extra_user_64bit_cs; /* __USER_CS if none */ |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | int paravirt_enabled; | ||
73 | const char *name; | 72 | const char *name; |
74 | }; | 73 | }; |
75 | 74 | ||
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 0c70c7daa6b8..8d326e822cb8 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -473,7 +473,6 @@ static inline unsigned long current_top_of_stack(void) | |||
473 | #include <asm/paravirt.h> | 473 | #include <asm/paravirt.h> |
474 | #else | 474 | #else |
475 | #define __cpuid native_cpuid | 475 | #define __cpuid native_cpuid |
476 | #define paravirt_enabled() 0 | ||
477 | 476 | ||
478 | static inline void load_sp0(struct tss_struct *tss, | 477 | static inline void load_sp0(struct tss_struct *tss, |
479 | struct thread_struct *thread) | 478 | struct thread_struct *thread) |
diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 807950860fb7..c66546f29b81 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c | |||
@@ -285,14 +285,6 @@ static void __init paravirt_ops_setup(void) | |||
285 | { | 285 | { |
286 | pv_info.name = "KVM"; | 286 | pv_info.name = "KVM"; |
287 | 287 | ||
288 | /* | ||
289 | * KVM isn't paravirt in the sense of paravirt_enabled. A KVM | ||
290 | * guest kernel works like a bare metal kernel with additional | ||
291 | * features, and paravirt_enabled is about features that are | ||
292 | * missing. | ||
293 | */ | ||
294 | pv_info.paravirt_enabled = 0; | ||
295 | |||
296 | if (kvm_para_has_feature(KVM_FEATURE_NOP_IO_DELAY)) | 288 | if (kvm_para_has_feature(KVM_FEATURE_NOP_IO_DELAY)) |
297 | pv_cpu_ops.io_delay = kvm_io_delay; | 289 | pv_cpu_ops.io_delay = kvm_io_delay; |
298 | 290 | ||
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index f08ac28b8136..71a2d8a05a66 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c | |||
@@ -294,7 +294,6 @@ enum paravirt_lazy_mode paravirt_get_lazy_mode(void) | |||
294 | 294 | ||
295 | struct pv_info pv_info = { | 295 | struct pv_info pv_info = { |
296 | .name = "bare hardware", | 296 | .name = "bare hardware", |
297 | .paravirt_enabled = 0, | ||
298 | .kernel_rpl = 0, | 297 | .kernel_rpl = 0, |
299 | .shared_kernel_pmd = 1, /* Only used when CONFIG_X86_PAE is set */ | 298 | .shared_kernel_pmd = 1, /* Only used when CONFIG_X86_PAE is set */ |
300 | 299 | ||
diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c index f5497ee5fd2f..3847e736702e 100644 --- a/arch/x86/lguest/boot.c +++ b/arch/x86/lguest/boot.c | |||
@@ -1408,8 +1408,6 @@ __init void lguest_init(void) | |||
1408 | { | 1408 | { |
1409 | /* We're under lguest. */ | 1409 | /* We're under lguest. */ |
1410 | pv_info.name = "lguest"; | 1410 | pv_info.name = "lguest"; |
1411 | /* Paravirt is enabled. */ | ||
1412 | pv_info.paravirt_enabled = 1; | ||
1413 | /* We're running at privilege level 1, not 0 as normal. */ | 1411 | /* We're running at privilege level 1, not 0 as normal. */ |
1414 | pv_info.kernel_rpl = 1; | 1412 | pv_info.kernel_rpl = 1; |
1415 | /* Everyone except Xen runs with this set. */ | 1413 | /* Everyone except Xen runs with this set. */ |
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 752029d571bf..5fc20a1108c7 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -1187,7 +1187,6 @@ static unsigned xen_patch(u8 type, u16 clobbers, void *insnbuf, | |||
1187 | } | 1187 | } |
1188 | 1188 | ||
1189 | static const struct pv_info xen_info __initconst = { | 1189 | static const struct pv_info xen_info __initconst = { |
1190 | .paravirt_enabled = 1, | ||
1191 | .shared_kernel_pmd = 0, | 1190 | .shared_kernel_pmd = 0, |
1192 | 1191 | ||
1193 | #ifdef CONFIG_X86_64 | 1192 | #ifdef CONFIG_X86_64 |