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][V3] export math_state_restore
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 10/25][V3] export math_state_restore
- References:
- [PATCH 0/25][V3] pvops_64 last round (hopefully)
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 1/25][V3] header file move
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 2/25][V3] tlb flushing routines
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 3/25][V3] irq_flags / halt routines
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 4/25][V3] Add debugreg/load_rsp native hooks
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 5/25][V3] native versions for system.h functions
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 6/25][V3] add native_apic read and write functions, as well as boot clocks ones
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 7/25][V3] interrupt related native paravirt functions.
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 8/25][V3] use macro for sti/cli in spinlock definitions
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 0/25][V3] pvops_64 last round (hopefully)
- Prev by Date: [PATCH 8/25][V3] use macro for sti/cli in spinlock definitions
- Next by Date: [PATCH 10/25][V3] export math_state_restore
- Previous by thread: [PATCH 8/25][V3] use macro for sti/cli in spinlock definitions
- Next by thread: [PATCH 10/25][V3] export math_state_restore
- Index(es):