From: Juergen Gross Subject: [PATCH] Allow wake up of offline vcpu via nmi-ipi Date: Wed, 18 Jan 2012 09:48:04 +0100 Message-ID: <88318e850353da840fe7.1326876484@nehalem1> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7421071610834031546==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============7421071610834031546== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit On a real machine a cpu disabled via hlt with interrupts disabled can be reactivated via a nmi ipi. Enable the hypervisor to do this for hvm, too. Signed-off-by: juergen.gross@ts.fujitsu.com 1 file changed, 4 insertions(+), 1 deletion(-) xen/arch/x86/hvm/vlapic.c | 5 ++++- --===============7421071610834031546== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-staging.hg.patch # HG changeset patch # User Juergen Gross # Date 1326876456 -3600 # Node ID 88318e850353da840fe70a7a953e1037ef32e2cd # Parent 15ab61865ecbd146f6ce65fbea5bf49bfd9c6cb1 Allow wake up of offline vcpu via nmi-ipi On a real machine a cpu disabled via hlt with interrupts disabled can be reactivated via a nmi ipi. Enable the hypervisor to do this for hvm, too. Signed-off-by: juergen.gross@ts.fujitsu.com diff -r 15ab61865ecb -r 88318e850353 xen/arch/x86/hvm/vlapic.c --- a/xen/arch/x86/hvm/vlapic.c Tue Jan 17 12:40:52 2012 +0000 +++ b/xen/arch/x86/hvm/vlapic.c Wed Jan 18 09:47:36 2012 +0100 @@ -323,7 +323,10 @@ static int vlapic_accept_irq(struct vcpu case APIC_DM_NMI: if ( !test_and_set_bool(v->nmi_pending) ) - vcpu_kick(v); + { + clear_bit(_VPF_down, &v->pause_flags); + vcpu_wake(v); + } break; case APIC_DM_INIT: --===============7421071610834031546== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============7421071610834031546==--