Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99975
b: refs/heads/master
c: df366e9
h: refs/heads/master
i:
  99973: 320962b
  99971: c6ee7a8
  99967: 760aeb1
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Jul 8, 2008
1 parent f53067a commit a622fb9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3294a33e765d8308c3e17b951a13e0db9cf5f00
refs/heads/master: df366e9822beca97115ba9745cbe1ea1f26fb111
22 changes: 13 additions & 9 deletions trunk/include/asm-x86/irqflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,20 @@ static inline unsigned long __raw_local_irq_save(void)
#define DISABLE_INTERRUPTS(x) cli

#ifdef CONFIG_X86_64
#define SWAPGS swapgs
/*
* Currently paravirt can't handle swapgs nicely when we
* don't have a stack we can rely on (such as a user space
* stack). So we either find a way around these or just fault
* and emulate if a guest tries to call swapgs directly.
*
* Either way, this is a good way to document that we don't
* have a reliable stack. x86_64 only.
*/
#define SWAPGS_UNSAFE_STACK swapgs

#define PARAVIRT_ADJUST_EXCEPTION_FRAME /* */

#define INTERRUPT_RETURN iretq
#define USERGS_SYSRET64 \
swapgs; \
Expand Down Expand Up @@ -177,15 +190,6 @@ static inline void trace_hardirqs_fixup(void)
#else

#ifdef CONFIG_X86_64
/*
* Currently paravirt can't handle swapgs nicely when we
* don't have a stack we can rely on (such as a user space
* stack). So we either find a way around these or just fault
* and emulate if a guest tries to call swapgs directly.
*
* Either way, this is a good way to document that we don't
* have a reliable stack. x86_64 only.
*/
#define ARCH_TRACE_IRQS_ON call trace_hardirqs_on_thunk
#define ARCH_TRACE_IRQS_OFF call trace_hardirqs_off_thunk
#define ARCH_LOCKDEP_SYS_EXIT call lockdep_sys_exit_thunk
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-x86/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,6 @@ static inline void load_sp0(struct tss_struct *tss,
}

#define set_iopl_mask native_set_iopl_mask
#define SWAPGS swapgs

#define PARAVIRT_ADJUST_EXCEPTION_FRAME /* */
#endif /* CONFIG_PARAVIRT */

/*
Expand Down

0 comments on commit a622fb9

Please sign in to comment.