* [PATCH] Add powerpc dcr callbacks to kvm callback structrure
@ 2008-01-02 20:29 Jerone Young
2008-01-02 20:47 ` [kvm-ppc-devel] " Hollis Blanchard
0 siblings, 1 reply; 4+ messages in thread
From: Jerone Young @ 2008-01-02 20:29 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
# HG changeset patch
# User Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
# Date 1199305658 21600
# Node ID bf828ac70dde1dfa4f67e4774a884669306423e6
# Parent 8161d444f7c37be9bdbfaac338d58301b00f2961
Add powerpc dcr callbacks to kvm callback structrure
This patch adds dcr call back function to the kvm callback structure
for powerpc.
This patch accidently was not submitted with the last patch.
Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h
--- a/libkvm/libkvm.h
+++ b/libkvm/libkvm.h
@@ -65,6 +65,10 @@ struct kvm_callbacks {
void (*post_kvm_run)(void *opaque, int vcpu);
int (*pre_kvm_run)(void *opaque, int vcpu);
int (*tpr_access)(void *opaque, int vcpu, uint64_t rip, int is_write);
+#if defined(__powerpc__)
+ int (*powerpc_dcr_read)(kvm_context_t kvm, uint32_t dcrn, uint32_t *data);
+ int (*powerpc_dcr_write)(kvm_context_t kvm, uint32_t dcrn, uint32_t data);
+#endif
};
/*!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [kvm-ppc-devel] [PATCH] Add powerpc dcr callbacks to kvm callback structrure
2008-01-02 20:29 [PATCH] Add powerpc dcr callbacks to kvm callback structrure Jerone Young
@ 2008-01-02 20:47 ` Hollis Blanchard
2008-01-02 20:54 ` Jerone Young
0 siblings, 1 reply; 4+ messages in thread
From: Hollis Blanchard @ 2008-01-02 20:47 UTC (permalink / raw)
To: Jerone Young
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
What is the plan here, to ifdef the arch-specific callbacks? If so,
'tpr_access' is an obvious candidate...
--
Hollis Blanchard
IBM Linux Technology Center
On Wed, 2008-01-02 at 14:29 -0600, Jerone Young wrote:
> # HG changeset patch
> # User Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> # Date 1199305658 21600
> # Node ID bf828ac70dde1dfa4f67e4774a884669306423e6
> # Parent 8161d444f7c37be9bdbfaac338d58301b00f2961
> Add powerpc dcr callbacks to kvm callback structrure
>
> This patch adds dcr call back function to the kvm callback structure
> for powerpc.
>
> This patch accidently was not submitted with the last patch.
>
> Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
>
> diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h
> --- a/libkvm/libkvm.h
> +++ b/libkvm/libkvm.h
> @@ -65,6 +65,10 @@ struct kvm_callbacks {
> void (*post_kvm_run)(void *opaque, int vcpu);
> int (*pre_kvm_run)(void *opaque, int vcpu);
> int (*tpr_access)(void *opaque, int vcpu, uint64_t rip, int is_write);
> +#if defined(__powerpc__)
> + int (*powerpc_dcr_read)(kvm_context_t kvm, uint32_t dcrn, uint32_t *data);
> + int (*powerpc_dcr_write)(kvm_context_t kvm, uint32_t dcrn, uint32_t data);
> +#endif
> };
>
> /*!
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> kvm-ppc-devel mailing list
> kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [kvm-ppc-devel] [PATCH] Add powerpc dcr callbacks to kvm callback structrure
2008-01-02 20:47 ` [kvm-ppc-devel] " Hollis Blanchard
@ 2008-01-02 20:54 ` Jerone Young
2008-01-03 15:47 ` Avi Kivity
0 siblings, 1 reply; 4+ messages in thread
From: Jerone Young @ 2008-01-02 20:54 UTC (permalink / raw)
To: Hollis Blanchard
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
That would be my sketchy idea. Though I was going to wait and see what
the feedback would be doing this :-) It can go either way. Since it's
just callbacks it really doesn't matter. But it does affect the
structure size never the less.
So what are everyone thoughs about arch specific callbacks ?
On Wed, 2008-01-02 at 14:47 -0600, Hollis Blanchard wrote:
> What is the plan here, to ifdef the arch-specific callbacks? If so,
> 'tpr_access' is an obvious candidate...
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [kvm-ppc-devel] [PATCH] Add powerpc dcr callbacks to kvm callback structrure
2008-01-02 20:54 ` Jerone Young
@ 2008-01-03 15:47 ` Avi Kivity
0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2008-01-03 15:47 UTC (permalink / raw)
To: jyoung5-r/Jw6+rmf7HQT0dZR+AlfA
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Hollis Blanchard
Jerone Young wrote:
> That would be my sketchy idea. Though I was going to wait and see what
> the feedback would be doing this :-) It can go either way. Since it's
> just callbacks it really doesn't matter. But it does affect the
> structure size never the less.
>
> So what are everyone thoughs about arch specific callbacks ?
>
#ifdefs are fine, if only for documenting which tla belongs to which
arch. Actual runtime savings are probably negligible.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-03 15:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02 20:29 [PATCH] Add powerpc dcr callbacks to kvm callback structrure Jerone Young
2008-01-02 20:47 ` [kvm-ppc-devel] " Hollis Blanchard
2008-01-02 20:54 ` Jerone Young
2008-01-03 15:47 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox