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]> Acked-by: Jeremy Fitzhardinge <[email protected]> --- 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 [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 14/24] export math_state_restore
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 14/24] export math_state_restore
- References:
- [PATCH 0/24] paravirt_ops for unified x86 - that's me again!
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 1/24] mm/sparse-vmemmap.c: make sure init_mm is included
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 2/24] irqflags consolidation
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 3/24] consolidate spinlock.h
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 4/24] tlb functions consolidation
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 5/24] smp x86 consolidation
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 6/24] Add debugreg/load_rsp native hooks
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 7/24] consolidate msr.h
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 8/24] consolidate system.h
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 9/24] Wipe out traditional opt from x86_64 Makefile
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 10/24] paravirt hooks at entry functions.
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 11/24] read/write_crX, clts and wbinvd for 64-bit paravirt
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 12/24] provide native irq initialization function
- From: Glauber de Oliveira Costa <[email protected]>
- [PATCH 0/24] paravirt_ops for unified x86 - that's me again!
- Prev by Date: [PATCH 3/24] consolidate spinlock.h
- Next by Date: [PATCH 7/24] consolidate msr.h
- Previous by thread: [PATCH 12/24] provide native irq initialization function
- Next by thread: [PATCH 14/24] export math_state_restore
- Index(es):