X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-x86_64%2Fipi.h;h=cbf6a2bc887143eb1ba4f58e1c94a41f45e586d7;hb=a2f44b27303a5353859d77a3e96a1d3f33f56ab7;hp=2a5c162b7d925c1fc5ba7b1db1cbf6a8fe2f933a;hpb=134734d875a0a48d994ef20b9905209b4b8b6f75;p=linux-2.6.git diff --git a/include/asm-x86_64/ipi.h b/include/asm-x86_64/ipi.h index 2a5c162b7..cbf6a2bc8 100644 --- a/include/asm-x86_64/ipi.h +++ b/include/asm-x86_64/ipi.h @@ -49,8 +49,12 @@ static inline int __prepare_ICR2 (unsigned int mask) return SET_APIC_DEST_FIELD(mask); } + static inline void __send_IPI_shortcut(unsigned int shortcut, int vector, unsigned int dest) { +#ifdef CONFIG_XEN_UNPRIVILEGED_GUEST + BUG(); +#else /* * Subtle. In the case of the 'never do double writes' workaround * we have to lock out interrupts to be safe. As we don't care @@ -74,6 +78,7 @@ static inline void __send_IPI_shortcut(unsigned int shortcut, int vector, unsign * Send the IPI. The write to APIC_ICR fires this off. */ apic_write(APIC_ICR, cfg); +#endif /* !CONFIG_XEN_UNPRIVILEGED_GUEST */ }