From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 3/6] test: add pause() instruction accessor Date: Wed, 28 Jul 2010 19:25:48 +0300 Message-ID: <1280334351-6395-4-git-send-email-avi@redhat.com> References: <1280334351-6395-1-git-send-email-avi@redhat.com> To: Joerg Roedel , Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50381 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754217Ab0G1QZy (ORCPT ); Wed, 28 Jul 2010 12:25:54 -0400 In-Reply-To: <1280334351-6395-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Avi Kivity --- kvm/test/lib/x86/processor.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/kvm/test/lib/x86/processor.h b/kvm/test/lib/x86/processor.h index ea44a9d..0376d04 100644 --- a/kvm/test/lib/x86/processor.h +++ b/kvm/test/lib/x86/processor.h @@ -243,4 +243,9 @@ static inline struct cpuid cpuid(u32 function) return cpuid_indexed(function, 0); } +static inline void pause(void) +{ + asm volatile ("pause"); +} + #endif -- 1.7.1