[PATCH 9/25 -v2] report ring kernel is running without paravirt
- From: Glauber de Oliveira Costa <gcosta@xxxxxxxxxx>
- Date: Fri, 10 Aug 2007 16:12:21 -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>
---
include/asm-x86_64/segment.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/asm-x86_64/segment.h b/include/asm-x86_64/segment.h
index 04b8ab2..240c1bf 100644
--- a/include/asm-x86_64/segment.h
+++ b/include/asm-x86_64/segment.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 10/25 -v2] export math_state_restore
- From: Glauber de Oliveira Costa
- [PATCH 10/25 -v2] export math_state_restore
- References:
- [PATCH 0/25 -v2] paravirt_ops for x86_64, second round
- From: Glauber de Oliveira Costa
- [PATCH 1/25 -v2] header file move
- From: Glauber de Oliveira Costa
- [PATCH 2/25 -v2] tlb flushing routines
- From: Glauber de Oliveira Costa
- [PATCH 3/25 -v2] irq_flags / halt routines
- From: Glauber de Oliveira Costa
- [PATCH 4/25 -v2] Add debugreg/load_rsp native hooks
- From: Glauber de Oliveira Costa
- [PATCH 5/25 -v2] native versions for system.h functions
- From: Glauber de Oliveira Costa
- [PATCH 6/25 -v2] add native_apic read and write functions, as well as boot clocks ones
- From: Glauber de Oliveira Costa
- [PATCH 7/25 -v2] interrupt related native paravirt functions.
- From: Glauber de Oliveira Costa
- [PATCH 8/25 -v2] use macro for sti/cli in spinlock definitions
- From: Glauber de Oliveira Costa
- [PATCH 0/25 -v2] paravirt_ops for x86_64, second round
- Prev by Date: [PATCH 15/25 -v2] introducing paravirt_activate_mm
- Next by Date: [PATCH 20/25 -v2] replace syscall_init
- Previous by thread: [PATCH 8/25 -v2] use macro for sti/cli in spinlock definitions
- Next by thread: [PATCH 10/25 -v2] export math_state_restore
- Index(es):
Relevant Pages
|
|