[PATCH 5/16] report ring kernel is running without paravirt
- From: Glauber de Oliveira Costa <gcosta@xxxxxxxxxx>
- Date: Wed, 31 Oct 2007 16:14:50 -0300
When paravirtualization is disabled, the kernel is always
running at ring 0. So report it in the appropriate macro
Signed-off-by: Glauber de Oliveira Costa <gcosta@xxxxxxxxxx>
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
Acked-by: Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx>
---
include/asm-x86/segment_64.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/asm-x86/segment_64.h b/include/asm-x86/segment_64.h
index 04b8ab2..240c1bf 100644
--- a/include/asm-x86/segment_64.h
+++ b/include/asm-x86/segment_64.h
@@ -50,4 +50,8 @@
#define GDT_SIZE (GDT_ENTRIES * 8)
#define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8)
+#ifndef CONFIG_PARAVIRT
+#define get_kernel_rpl() 0
+#endif
+
#endif
--
1.4.4.2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 6/16] export math_state_restore
- From: Glauber de Oliveira Costa
- [PATCH 6/16] export math_state_restore
- References:
- [PATCH 0/7] (Re-)introducing pvops for x86_64 - Real pvops work part
- From: Glauber de Oliveira Costa
- [PATCH 1/16] Wipe out traditional opt from x86_64 Makefile
- From: Glauber de Oliveira Costa
- [PATCH 2/16] paravirt hooks at entry functions.
- From: Glauber de Oliveira Costa
- [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit paravirt
- From: Glauber de Oliveira Costa
- [PATCH 0/7] (Re-)introducing pvops for x86_64 - Real pvops work part
- Prev by Date: [PATCH 7/7] consolidate msr.h
- Next by Date: [PATCH 1/16] Wipe out traditional opt from x86_64 Makefile
- Previous by thread: [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit paravirt
- Next by thread: [PATCH 6/16] export math_state_restore
- Index(es):
Relevant Pages
|
|