* [PATCH] Remove unoptimal code from qemu dcr handles for powerpc
@ 2008-01-29 5:38 Jerone Young
2008-01-29 17:03 ` Hollis Blanchard
0 siblings, 1 reply; 3+ messages in thread
From: Jerone Young @ 2008-01-29 5:38 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
# HG changeset patch
# User Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
# Date 1201585078 21600
# Node ID 34d726145a8ee9d58a4573473e861db2ad695c37
# Parent a568d031723942e1baf77077031d2b77795cbd8a
Remove unoptimal code from qemu dcr handles for powerpc
A patch I submitted yesterday to use the call qemu_kvm_cpu_env() in the dcr handles is not needed since in kvm_arch_post_kvm_run variable cpu_single_env is set to env. So just use cpu_single_env to get env.
Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
diff --git a/qemu/qemu-kvm-powerpc.c b/qemu/qemu-kvm-powerpc.c
--- a/qemu/qemu-kvm-powerpc.c
+++ b/qemu/qemu-kvm-powerpc.c
@@ -182,14 +182,14 @@ void kvm_arch_update_regs_for_sipi(CPUSt
/* map dcr access to existing qemu dcr emulation */
int handle_powerpc_dcr_read(int vcpu, uint32_t dcrn, uint32_t *data)
{
- CPUState *env = qemu_kvm_cpu_env(vcpu);
+ CPUState *env = cpu_single_env;
ppc_dcr_read(env->dcr_env, dcrn, data);
return 0; /* XXX ignore failed DCR ops */
}
int handle_powerpc_dcr_write(int vcpu, uint32_t dcrn, uint32_t data)
{
- CPUState *env = qemu_kvm_cpu_env(vcpu);
+ CPUState *env = cpu_single_env;
ppc_dcr_write(env->dcr_env, dcrn, data);
return 0; /* XXX ignore failed DCR ops */
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove unoptimal code from qemu dcr handles for powerpc
2008-01-29 5:38 [PATCH] Remove unoptimal code from qemu dcr handles for powerpc Jerone Young
@ 2008-01-29 17:03 ` Hollis Blanchard
2008-02-10 11:25 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Hollis Blanchard @ 2008-01-29 17:03 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Mon, 2008-01-28 at 23:38 -0600, Jerone Young wrote:
> A patch I submitted yesterday to use the call qemu_kvm_cpu_env() in
> the dcr handles is not needed since in kvm_arch_post_kvm_run variable
> cpu_single_env is set to env. So just use cpu_single_env to get env.
>
> Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Hollis Blanchard <hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
--
Hollis Blanchard
IBM Linux Technology Center
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove unoptimal code from qemu dcr handles for powerpc
2008-01-29 17:03 ` Hollis Blanchard
@ 2008-02-10 11:25 ` Avi Kivity
0 siblings, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2008-02-10 11:25 UTC (permalink / raw)
To: Hollis Blanchard; +Cc: kvm-devel
Hollis Blanchard wrote:
> On Mon, 2008-01-28 at 23:38 -0600, Jerone Young wrote:
>
>> A patch I submitted yesterday to use the call qemu_kvm_cpu_env() in
>> the dcr handles is not needed since in kvm_arch_post_kvm_run variable
>> cpu_single_env is set to env. So just use cpu_single_env to get env.
>>
>> Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
>>
>
> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
>
>
Please use the DCO only when passing through (and possibly modifying)
patches. Otherwise an Acked-by is more appropriate.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-10 11:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-29 5:38 [PATCH] Remove unoptimal code from qemu dcr handles for powerpc Jerone Young
2008-01-29 17:03 ` Hollis Blanchard
2008-02-10 11:25 ` Avi Kivity
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.