[PATCH 3/7] Xen: Add Xen implementation of wbinvd_halt

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Kernel Mailing List <linux-kernel@...>
Cc: Alex Nixon <alex.nixon@...>, Jeremy Fitzhardinge <jeremy@...>, Ingo Molnar <mingo@...>
Date: Thursday, August 21, 2008 - 2:04 pm

Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/xen/irq.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/x86/xen/irq.c b/arch/x86/xen/irq.c
index bb04260..4e3f7f7 100644
--- a/arch/x86/xen/irq.c
+++ b/arch/x86/xen/irq.c
@@ -122,12 +122,19 @@ static void xen_halt(void)
 		xen_safe_halt();
 }
 
+static void xen_wbinvd_halt(void)
+{
+	native_wbinvd();
+	xen_halt();
+}
+
 static const struct pv_irq_ops xen_irq_ops __initdata = {
 	.init_IRQ = __xen_init_IRQ,
 	.save_fl = xen_save_fl,
 	.restore_fl = xen_restore_fl,
 	.irq_disable = xen_irq_disable,
 	.irq_enable = xen_irq_enable,
+	.wb_invd_halt = xen_wbinvd_halt,
 	.safe_halt = xen_safe_halt,
 	.halt = xen_halt,
 #ifdef CONFIG_X86_64
-- 
1.5.4.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/7] x86/paravirt: Add hooks for CPU hotplugging, Jeremy Fitzhardinge, (Thu Aug 21, 2:19 pm)
Re: [PATCH 2/7] x86/paravirt: Add paravirt hook for wbinvd_..., Jeremy Fitzhardinge, (Thu Aug 21, 2:16 pm)
[PATCH 3/7] Xen: Add Xen implementation of wbinvd_halt, Alex Nixon, (Thu Aug 21, 2:04 pm)
[PATCH 4/7] x86_32: Clean up play_dead., Alex Nixon, (Thu Aug 21, 2:04 pm)
[PATCH 7/7] Xen: Implement CPU hotplugging, Alex Nixon, (Thu Aug 21, 2:04 pm)
Re: [PATCH 7/7] Xen: Implement CPU hotplugging, Jeremy Fitzhardinge, (Thu Aug 21, 2:37 pm)