From: Carlo Marcelo Arenas Belon Subject: [PATCH] make msrs functions public for x86 Date: Thu, 8 Nov 2007 00:34:37 -0600 Message-ID: <20071108063437.GB1937@tapir> References: <20071108055700.GA1937@tapir> <4732A4AE.30100@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Jerone Young To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4732A4AE.30100-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This patch partially reverts 9105435f46ca4e110237eae57272e4f5deaf8dd6 so that kvm_msr_list, kvm_get_msrs and kvm_set_msrs are again public and visible in userspace for x86 as they are used by qemu-kvm Signed-off-by: Carlo Marcelo Arenas Belon --- libkvm/kvm-x86.h | 4 ---- libkvm/libkvm.h | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libkvm/kvm-x86.h b/libkvm/kvm-x86.h index b531a3b..bcc6981 100644 --- a/libkvm/kvm-x86.h +++ b/libkvm/kvm-x86.h @@ -42,8 +42,4 @@ int kvm_run_abi10(kvm_context_t kvm, int vcpu); void kvm_show_code(kvm_context_t kvm, int vcpu); -struct kvm_msr_list *kvm_get_msr_list(kvm_context_t); -int kvm_get_msrs(kvm_context_t, int vcpu, struct kvm_msr_entry *msrs, int n); -int kvm_set_msrs(kvm_context_t, int vcpu, struct kvm_msr_entry *msrs, int n); - #endif diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h index b00d658..8a41df7 100644 --- a/libkvm/libkvm.h +++ b/libkvm/libkvm.h @@ -19,6 +19,12 @@ struct kvm_context; typedef struct kvm_context *kvm_context_t; +#if defined(__x86_64__) || defined(__i386__) +struct kvm_msr_list *kvm_get_msr_list(kvm_context_t); +int kvm_get_msrs(kvm_context_t, int vcpu, struct kvm_msr_entry *msrs, int n); +int kvm_set_msrs(kvm_context_t, int vcpu, struct kvm_msr_entry *msrs, int n); +#endif + /*! * \brief KVM callbacks structure * -- 1.5.2.5 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/