From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmbeB-0006my-HG for qemu-devel@nongnu.org; Wed, 04 Jul 2012 22:18:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Smbe9-00049X-Rv for qemu-devel@nongnu.org; Wed, 04 Jul 2012 22:18:23 -0400 Received: from mail-gh0-f173.google.com ([209.85.160.173]:54998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smbe9-000493-Kz for qemu-devel@nongnu.org; Wed, 04 Jul 2012 22:18:21 -0400 Received: by ghrr14 with SMTP id r14so7497430ghr.4 for ; Wed, 04 Jul 2012 19:18:19 -0700 (PDT) From: Liu Ping Fan Date: Thu, 5 Jul 2012 10:18:09 +0800 Message-Id: <1341454689-8129-1-git-send-email-qemulist@gmail.com> Subject: [Qemu-devel] [PATCH] cpu: smp_wmb before lauching cpus. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , Anthony Liguori , kvm@vger.kernel.org Vcpu state must be set completely before receiving INIT-IPI,SIPI Signed-off-by: Liu Ping Fan --- kvm.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kvm.h b/kvm.h index 9c7b0ea..5b3c228 100644 --- a/kvm.h +++ b/kvm.h @@ -198,6 +198,7 @@ static inline void cpu_synchronize_post_init(CPUArchState *env) { if (kvm_enabled()) { kvm_cpu_synchronize_post_init(env); + smp_wmb(); } } -- 1.7.4.4