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 <[email protected]> Signed-off-by: Steven Rostedt <[email protected]> --- 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 [email protected] 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] [PATCH] export math_state_restore
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 10/25] [PATCH] export math_state_restore
- References:
- Introducing paravirt_ops for x86_64
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 1/25] [PATCH] header file move
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 2/25] [PATCH] tlb flushing routines
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 3/25] [PATCH] irq_flags / halt routines
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 4/25] [PATCH] Add debugreg/load_rsp native hooks
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 5/25] [PATCH] native versions for system.h functions
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 6/25] [PATCH] add native_apic read and write functions, as well as boot clocks ones
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 7/25] [PATCH] interrupt related native paravirt functions.
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 8/25] [PATCH] use macro for sti/cli in spinlock definitions
- From: Glauber de Oliveira Costa <[email protected]>
- Introducing paravirt_ops for x86_64
- Prev by Date: [PATCH 22/25] [PATCH] turn priviled operation into a macro
- Next by Date: [PATCH 11/25] [PATCH] introduce paravirt_release_pgd()
- Previous by thread: [PATCH 8/25] [PATCH] use macro for sti/cli in spinlock definitions
- Next by thread: [PATCH 10/25] [PATCH] export math_state_restore
- Index(es):