From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: Re: [PATCH] make msrs functions public for x86 Date: Thu, 08 Nov 2007 11:10:57 -0600 Message-ID: <1194541857.13920.2.camel@thinkpad> References: <20071108055700.GA1937@tapir> <4732A4AE.30100@qumranet.com> <20071108063437.GB1937@tapir> Reply-To: jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org 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, Avi Kivity To: Carlo Marcelo Arenas Belon Return-path: In-Reply-To: <20071108063437.GB1937@tapir> 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 would be my bad. Things kept changing and I didn't put these back into libkvm.h. On Thu, 2007-11-08 at 00:34 -0600, Carlo Marcelo Arenas Belon wrote: > 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 > * ------------------------------------------------------------------------- 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/