From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 4/6] test: add cli() and sti() instruction accessors Date: Wed, 28 Jul 2010 19:25:49 +0300 Message-ID: <1280334351-6395-5-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]:64890 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755540Ab0G1QZy (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 | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/kvm/test/lib/x86/processor.h b/kvm/test/lib/x86/processor.h index 0376d04..67d7ca5 100644 --- a/kvm/test/lib/x86/processor.h +++ b/kvm/test/lib/x86/processor.h @@ -248,4 +248,14 @@ static inline void pause(void) asm volatile ("pause"); } +static inline void cli(void) +{ + asm volatile ("cli"); +} + +static inline void sti(void) +{ + asm volatile ("sti"); +} + #endif -- 1.7.1