public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove ppc functions from callbacks
@ 2009-06-16 13:34 Glauber Costa
  2009-06-16 14:54 ` Hollis Blanchard
  2009-06-18  9:08 ` Avi Kivity
  0 siblings, 2 replies; 3+ messages in thread
From: Glauber Costa @ 2009-06-16 13:34 UTC (permalink / raw)
  To: kvm; +Cc: avi, Hollis Blanchard

handle_powerpc_dcr_read() and handle_powerpc_dcr_write() are two
powerpc specific functions that are called via libkvm callbacks.
However, grepping the source code finds simply no use of them. This
is probably due to the fact that powerpc now relies on a totally
qemu upstream implementation of kvm, and does not need it anymore.

Anyway, I'm providing this patch separatedly, so that if it breaks
for whenever reason, we can identify a bisection point easily

Signed-off-by: Glauber Costa <glommer@redhat.com>
CC: Hollis Blanchard <hollisb@us.ibm.com>
---
 libkvm-all.h |    4 ----
 qemu-kvm.c   |    4 ----
 qemu-kvm.h   |    5 -----
 3 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/libkvm-all.h b/libkvm-all.h
index 4f7b9a3..47855be 100644
--- a/libkvm-all.h
+++ b/libkvm-all.h
@@ -156,10 +156,6 @@ struct kvm_callbacks {
     void (*post_kvm_run)(void *opaque, void *env);
     int (*pre_kvm_run)(void *opaque, void *env);
     int (*tpr_access)(void *opaque, kvm_vcpu_context_t vcpu, uint64_t rip, int is_write);
-#if defined(__powerpc__)
-    int (*powerpc_dcr_read)(kvm_vcpu_context_t vcpu, uint32_t dcrn, uint32_t *data);
-    int (*powerpc_dcr_write)(kvm_vcpu_context_t vcpu, uint32_t dcrn, uint32_t data);
-#endif
 #if defined(__s390__)
     int (*s390_handle_intercept)(kvm_context_t context, kvm_vcpu_context_t vcpu,
 	struct kvm_run *run);
diff --git a/qemu-kvm.c b/qemu-kvm.c
index eefca61..61f5a19 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -2278,10 +2278,6 @@ static struct kvm_callbacks qemu_kvm_ops = {
 #ifdef TARGET_I386
     .tpr_access = handle_tpr_access,
 #endif
-#ifdef TARGET_PPC
-    .powerpc_dcr_read = handle_powerpc_dcr_read,
-    .powerpc_dcr_write = handle_powerpc_dcr_write,
-#endif
     .unhandled = handle_unhandled,
 };
 
diff --git a/qemu-kvm.h b/qemu-kvm.h
index 126b8f3..57e8a2f 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -134,11 +134,6 @@ void kvm_remove_ioperm_data(unsigned long start_port, unsigned long num);
 void kvm_arch_do_ioperm(void *_data);
 #endif
 
-#ifdef TARGET_PPC
-int handle_powerpc_dcr_read(kvm_vcpu_context_t vcpu, uint32_t dcrn, uint32_t *data);
-int handle_powerpc_dcr_write(kvm_vcpu_context_t vcpu,uint32_t dcrn, uint32_t data);
-#endif
-
 #define ALIGN(x, y)  (((x)+(y)-1) & ~((y)-1))
 #define BITMAP_SIZE(m) (ALIGN(((m)>>TARGET_PAGE_BITS), HOST_LONG_BITS) / 8)
 
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] remove ppc functions from callbacks
  2009-06-16 13:34 [PATCH] remove ppc functions from callbacks Glauber Costa
@ 2009-06-16 14:54 ` Hollis Blanchard
  2009-06-18  9:08 ` Avi Kivity
  1 sibling, 0 replies; 3+ messages in thread
From: Hollis Blanchard @ 2009-06-16 14:54 UTC (permalink / raw)
  To: Glauber Costa; +Cc: kvm, avi

On Tue, 2009-06-16 at 09:34 -0400, Glauber Costa wrote:
> handle_powerpc_dcr_read() and handle_powerpc_dcr_write() are two
> powerpc specific functions that are called via libkvm callbacks.
> However, grepping the source code finds simply no use of them. This
> is probably due to the fact that powerpc now relies on a totally
> qemu upstream implementation of kvm, and does not need it anymore.
> 
> Anyway, I'm providing this patch separatedly, so that if it breaks
> for whenever reason, we can identify a bisection point easily
> 
> Signed-off-by: Glauber Costa <glommer@redhat.com>
> CC: Hollis Blanchard <hollisb@us.ibm.com>

Yup, this path is handled via kvm_arch_handle_exit() now. Thanks.

Acked-by: Hollis Blanchard <hollisb@us.ibm.com>

-- 
Hollis Blanchard
IBM Linux Technology Center


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] remove ppc functions from callbacks
  2009-06-16 13:34 [PATCH] remove ppc functions from callbacks Glauber Costa
  2009-06-16 14:54 ` Hollis Blanchard
@ 2009-06-18  9:08 ` Avi Kivity
  1 sibling, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2009-06-18  9:08 UTC (permalink / raw)
  To: Glauber Costa; +Cc: kvm, Hollis Blanchard

On 06/16/2009 04:34 PM, Glauber Costa wrote:
> handle_powerpc_dcr_read() and handle_powerpc_dcr_write() are two
> powerpc specific functions that are called via libkvm callbacks.
> However, grepping the source code finds simply no use of them. This
> is probably due to the fact that powerpc now relies on a totally
> qemu upstream implementation of kvm, and does not need it anymore.
>
> Anyway, I'm providing this patch separatedly, so that if it breaks
> for whenever reason, we can identify a bisection point easily
>
>    

Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-18  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 13:34 [PATCH] remove ppc functions from callbacks Glauber Costa
2009-06-16 14:54 ` Hollis Blanchard
2009-06-18  9:08 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox